Is it possible to toggle the locked/unlocked state of the current layer via keyboard shortcut? I'd love to be able to toggle show/hide for layers as well.
here's a one-liner script that toggles active layer visibility
app.activeDocument.activeLayer.visible ^= 1;
this other one-liner toggles lock/unlock
app.activeDocument.activeLayer.locked ^= 1;
install those 2 scripts into your default scripts folder, then create two actions to run them, assign them shortcut keys and you're all set.