1
0
Fork 0
dotfiles/.local/bin/remaps-no-change

12 lines
422 B
Plaintext
Raw Normal View History

2023-02-04 22:15:35 +01:00
#!/bin/sh
current="$(setxkbmap -query | grep -oP '(layout|variant):\s*\K\w+' | sed ':a;N;s/\n/:/')"
setxkbmap -layout "$(echo "$current" | cut -d ':' -f1)" -variant "$(echo "$current" | cut -d ':' -f2)" -option caps:super -option terminate:ctrl_alt_bksp
xset r rate 300 50
2023-02-07 17:19:53 +01:00
killall xcape 2>/dev/null
xcape -e 'Super_L=Escape'
2023-02-04 22:15:35 +01:00
xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock
sleep 0.03
pkill -RTMIN+15 dwmblocks