CAPSLOCK
isLeft-Ctrl
Left-Ctrl
(and my substitutionCAPSLOCK
) isEsc
when tapped, butCtrl
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:
- My dotfiles https://github.com/deyloop/dot
Tags:
#permanent-note #linux #personalisation #tips