0

Turns out the canonical way to swap CapsLock and Ctrl on Debian-based systems is to set XKBOPTIONS="ctrl:nocaps" in /etc/default/keyboard.

Reference: https://unix.stackexchange.com/questions/452391/execute-command-to-swap-caps-lock-and-ctrl-at-startup

12 earlier thoughts