From charlesreid1

Revision as of 14:58, 8 August 2025 by Unknown user (talk) (→‎Remapping Caps Lock to Control Key)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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