profile: move swapping caps and escape to a script
This commit is contained in:
parent
80e6430342
commit
a0bececb43
2 changed files with 18 additions and 10 deletions
14
.config/shell/bin/swap-caps-escape
Executable file
14
.config/shell/bin/swap-caps-escape
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
# This will swap caps and escape. Will ask for root privilage.
|
||||
# Requires: sudo
|
||||
# Usage: swap-caps-escape
|
||||
|
||||
TMP_KEYMAP=/tmp/keymap_tmp.kmap
|
||||
cat <<-EOF > "$TMP_KEYMAP"
|
||||
keycode 1 = Caps_Lock
|
||||
keycode 58 = Escape
|
||||
EOF
|
||||
|
||||
sudo loadkeys "$TMP_KEYMAP"
|
||||
|
||||
rm "$TMP_KEYMAP"
|
Loading…
Add table
Add a link
Reference in a new issue