My chromebook doesn't have a caps lock key, it has a "search" key. When running crouton xfce4 is unaware of this key in the keybaord mappings GUI. This is how I ended up mapping the search/capslock key to escape.
- Run xev(1)
- Strike the capslock (aka search, or super_L key) and ook for entries like the following:
KeyPress event, serial 28, synthetic NO, window 0x2600001,
root 0xd3, subw 0x0, time 16308538, (449,411), root:(1043,703),
state 0x0, keycode 133 (keysym 0xff1b, Escape), same_screen YES,
XKeysymToKeycode returns keycode: 9
XLookupString gives 1 bytes: (1b)
XmbLookupString gives 1 bytes: (1b)
XFilterEvent returns: False
- In the above note the number next to
keycode
xmodmap -e "keycode <keycode> = Escape"
echo 'keycode <keycode> = Escape' >> ~/.Xmodmap