mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-16 20:00:50 +01:00
0db520b429
This completes the process of updating all the old READMEs to the new format.
24 lines
640 B
Markdown
24 lines
640 B
Markdown
# xmodmap
|
|
|
|
[xmodmap][xmodmap] is used to change the functionality of keys on your keyboard.
|
|
|
|
## Use Cases
|
|
|
|
xmodmap can be used to:
|
|
|
|
- Make Caps Lock function as Ctrl when held down
|
|
- Used with [xcape][xcape] to make Caps Lock function as Escape when pressed
|
|
|
|
You should not use xmodmap if:
|
|
|
|
- You do not need to modify keys
|
|
|
|
## Usage
|
|
|
|
Run `xmodmap ~/.xmodmap` in one of your init scripts to make Caps Lock function as Ctrl when held down.
|
|
|
|
Then, use `xcape -e 'Control_L=Escape'` to make Caps Lock (left Ctrl) function as Escape when pressed.
|
|
|
|
[xmodmap]: https://wiki.archlinux.org/index.php/Xmodmap
|
|
[xcape]: https://github.com/alols/xcape
|