mirror of
https://github.com/sahinakkaya/til.git
synced 2024-12-22 07:09:39 +01:00
TIL: Remapping capslock to ctrl
This commit is contained in:
parent
78cc88403c
commit
6b6b738e1d
16
system/remapping-capslock-to-ctrl.md
Normal file
16
system/remapping-capslock-to-ctrl.md
Normal file
@ -0,0 +1,16 @@
|
||||
Story: I know I'm suffering this from so much. Everytime I install a new system, I'm fooled by the application I'm using whenever I try to do something with 'Ctrl'. My left Ctrl is broken so I remapped my Caps Lock to Ctrl. It was one of the best things I have done ever! I would remap it even if I have a fully functioning Ctrl key now.
|
||||
|
||||
Here is how it should be done:
|
||||
|
||||
If you want to remap it for X server, add the following line to your `~/.xsession` or `~/.xinitrc`. Make sure to add it before `exec whatever_window_manager` you are using:
|
||||
|
||||
```
|
||||
setxkbmap -option 'caps:ctrl_modifier'
|
||||
```
|
||||
[source](https://superuser.com/questions/566871/how-to-map-the-caps-lock-key-to-escape-key-in-arch-linux)
|
||||
|
||||
And for console:
|
||||
- tried the following but it didn't work. Needs investigating.
|
||||
[Arch Wiki](https://wiki.archlinux.org/title/Linux_console/Keyboard_configuration#Creating_a_custom_keymap)
|
||||
[SO](https://stackoverflow.com/questions/28651864/change-capslock-to-ctrl-archlinux-command-line)
|
||||
|
Loading…
Reference in New Issue
Block a user