Kali/Keyboard
From charlesreid1
Remapping Caps Lock to Control Key
Remap keyboard: use caps lock as a control key
Edit /etc/default/keyboard
to include the line:
XKBOPTIONS="ctrl:nocaps"
Then reconfigure the current keyboard layout with the command:
dpkg-reconfigure keyboard-configuration
If you're having trouble with keyboard-config not being found or not being complete, you can try prefixing the command with the following?
LC_ALL=C dpkg-reconfigure keyboard-configuration
(suggested via this link)
Alternatively, set the option from the command line with the command:
/usr/bin/setxkbmap -option "ctrl:nocaps"
Flags