2022-07-04 21:36:33 +02:00
|
|
|
#!/bin/sh
|
2022-09-17 00:06:31 +02:00
|
|
|
|
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"
|
|
|
|
xkbcomp -I"$XKBDIR" "$XKBMAPFILE" "${DISPLAY%%.*}"
|
|
|
|
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
|
2023-03-17 16:59:59 +01:00
|
|
|
|