summaryrefslogtreecommitdiff
path: root/x11/capsmap
blob: 36c5eb1f929d2357645dee5a975820fca4524bfd (plain)
1
2
3
4
5
6
7
8
#!/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