SOLVED
I am using keyd
and this is my /etc/keyd/defailt.conf
:
[ids]
* # not clear what this does, something about defaulting
# in everything normal, not sure it is necessary.
[main]
capslock = toggle(altarrows) # tapping once capslock turns on
# altarrows layer, tapping again turns
# off the layer.
[altarrows] # defines that layer, remaps the following keys
up = pageup
down = pagedown
left = home
right = end
[global]
layer_indicator = 1 # makes any layer light the capslock LED, because
# all the meta keys start out as layers, this
# means all the meta keys will light the LED
# while held down, but also the capslock toggle
# itself, because it is triggering a layer,
# making the capslock toggle its LED per normal,
# except it will no longer work as a capslock
The caps lock now controls whether the arrow keys are arrwo keys or are page up, down, home, and end. And if I am not touching the keyboard, the LED shows whether I am in that alternate mode. If I am holding some meta key (shift, ctrl, alt, etc.) the capslock LED will also light, as I hold it. Okay.
This remapping of the keyboard does mean I no longer have a caps lock that produces capital letters, but that isn’t so useful a feature, so…so what?
Thanks for everyone’s help! (Um, how do I mark this as solved? And it looks like it is now marked as solved. Because I used the word “SOLVED”?)
-kb