2018-10-23 18:54:47 +02:00
|
|
|
# xmodmap
|
|
|
|
|
2018-11-23 06:12:40 +01:00
|
|
|
[xmodmap][xmodmap] is used to change the functionality of keys on your keyboard.
|
2018-10-23 18:54:47 +02:00
|
|
|
|
2018-11-23 06:12:40 +01:00
|
|
|
## Use Cases
|
2018-10-23 18:54:47 +02:00
|
|
|
|
2018-11-23 06:12:40 +01:00
|
|
|
xmodmap can be used to:
|
2018-10-23 18:54:47 +02:00
|
|
|
|
2018-11-23 06:12:40 +01:00
|
|
|
- Make Caps Lock function as Ctrl when held down
|
|
|
|
- Used with [xcape][xcape] to make Caps Lock function as Escape when pressed
|
2018-10-23 18:54:47 +02:00
|
|
|
|
2018-11-23 06:12:40 +01:00
|
|
|
You should not use xmodmap if:
|
2018-10-23 18:54:47 +02:00
|
|
|
|
2018-11-23 06:12:40 +01:00
|
|
|
- You do not need to modify keys
|
2018-10-23 18:54:47 +02:00
|
|
|
|
2018-11-23 06:12:40 +01:00
|
|
|
## Usage
|
2018-10-23 18:54:47 +02:00
|
|
|
|
2018-11-23 06:12:40 +01:00
|
|
|
Run `xmodmap ~/.xmodmap` in one of your init scripts to make Caps Lock function as Ctrl when held down.
|
2018-10-23 18:54:47 +02:00
|
|
|
|
2018-11-23 06:12:40 +01:00
|
|
|
Then, use `xcape -e 'Control_L=Escape'` to make Caps Lock (left Ctrl) function as Escape when pressed.
|
2018-10-23 18:54:47 +02:00
|
|
|
|
2018-11-23 06:12:40 +01:00
|
|
|
[xmodmap]: https://wiki.archlinux.org/index.php/Xmodmap
|
|
|
|
[xcape]: https://github.com/alols/xcape
|