Kali/Keyboard: Difference between revisions
From charlesreid1
No edit summary |
|||
| Line 15: | Line 15: | ||
</pre> | </pre> | ||
or | If you're having trouble with keyboard-config not being found or not being complete, you can try prefixing the command with the following? | ||
<pre> | |||
LC_ALL=C dpkg-reconfigure keyboard-configuration | |||
</pre> | |||
(suggested via [https://forums.debian.net/viewtopic.php?t=142651 this link]) | |||
Alternatively, set the option from the command line with the command: | |||
<pre> | <pre> | ||
Latest revision as of 14:58, 8 August 2025
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