summaryrefslogtreecommitdiff
path: root/x11/capsmap
blob: ad107daaf93839b243e55ae5d984c4557f6f8914 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

# Remap caps to super when held
setxkbmap -option caps:super
# Remap caps to escape when pressed
killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape'

# Turn off caps lock, just in case it was on prior
xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock