I'm running Linux and have used a script calling xmodmap (among a couple other things) to remap my Caps_Lock as BackSpace, inspired by the Colemak layout.
Occasionally, though, the lock will be turned on as I switch layouts. To help fix this and to allow me to use the lock if I ever want to, I'd like to move it up to level 3 (Caps Lock = BackSpace; ISOLevel3Shift/AltGr+Caps Lock=Caps_Lock).
But it doesn't look like there's any easy way to do so—unless I include remove Lock = Caps_Lock
the key changes the lock even if it's also set to BackSpace, and it doesn't look like there's any way to specify modifiers in add Lock
, at least that I've found.
I'm wondering if I've missed something in this, or if there is any other way of making it work (doesn't have to be in an xmodmap file, I can call other commands in the script).
EDIT: I have found the setxkbmap -option caps:backspace
to fix the problem, and -option shift:both_capslock
also works in case I ever do want a caps lock.