blob: ad43b0e5ca375cd88b02696cfb9d0dad4f24de0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
# Remap stuff
# TODO: fix polish locale
# Increase key speed
xset r rate 200 80
# Switch caps and esc
setxkbmap us,pl -option caps:swapescape
# When caps lock is pressed only once, treat it as escape
killall xcape 2>/dev/null
xcape -e 'Super_L=Escape'
# Turn off caps lock if on since there is no longer a key for it
xset -q | grep -q "Caps Lock:\s*on" && xdotool key Caps_Lock
|