2022-07-04 21:36:33 +02:00
|
|
|
#!/bin/sh
|
2022-09-17 00:06:31 +02:00
|
|
|
|
2023-03-18 13:34:06 +01:00
|
|
|
DISPLAY=:0
|
|
|
|
|
2023-03-17 16:59:59 +01:00
|
|
|
XKBDIR="${XDG_CONFIG_HOME:-$HOME/.config}/X11/xkb"
|
|
|
|
XKBMAPFILE="$XKBDIR/keymap/$(hostname --fqdn)"
|
|
|
|
[ -r "$XKBMAPFILE" ] || XKBMAPFILE="$XKBDIR/keymap/default"
|
2023-03-18 13:34:06 +01:00
|
|
|
xkbcomp -I"$XKBDIR" "$XKBMAPFILE" "${DISPLAY%%.*}" 1>/dev/null 2>&1
|
2023-03-17 16:59:59 +01:00
|
|
|
unset XKBDIR XKBMAPFILE
|
2022-10-27 09:36:59 +02:00
|
|
|
|
2022-07-04 21:36:33 +02:00
|
|
|
xset r rate 300 50
|
2023-03-17 16:59:59 +01:00
|
|
|
xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock
|
2023-02-07 17:19:53 +01:00
|
|
|
killall xcape 2>/dev/null
|
|
|
|
xcape -e 'Super_L=Escape'
|
2023-03-17 16:59:59 +01:00
|
|
|
|
2022-10-27 09:36:59 +02:00
|
|
|
sleep 0.03
|
2023-02-09 14:51:03 +01:00
|
|
|
[ "$1" != "-n" ] && pkill -RTMIN+15 dwmblocks
|