1
0
Fork 0
dotfiles/.local/bin/remaps

7 lines
248 B
Plaintext
Raw Normal View History

2022-07-04 21:36:33 +02:00
#!/bin/sh
2022-08-22 20:33:37 +02:00
mapdir="${KEYMAPS_DIR:-$HOME/.local/bin/keymaps}"
2022-07-04 21:36:33 +02:00
xset r rate 300 50
2022-08-08 01:50:07 +02:00
killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape'
2022-07-04 21:36:33 +02:00
xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock
2022-08-22 20:33:37 +02:00
eval "$mapdir/$(ls "$mapdir" | dmenu -i -p 'Mapping: ')"