CAPSLOCK is Left-CtrlLeft-Ctrl (and my substitution CAPSLOCK) is Esc when tapped, but Ctrl
when pressed with other keys. (Ctrl+A, for example)This is achieved using the following commands, which are run on startup.
# Remaps Left Control to Escape
xcape -e 'Control_L=Escape'
and
# Remaps the CapsLock to Ctrl
/usr/bin/setxkbmap -option "ctrl:nocaps"
Related:
Tags:
#permanent-note #linux #personalisation #tips