summaryrefslogtreecommitdiffstats
path: root/local/.bin/hornet
diff options
context:
space:
mode:
Diffstat (limited to 'local/.bin/hornet')
-rwxr-xr-xlocal/.bin/hornet/setup-inputs4
-rwxr-xr-xlocal/.bin/hornet/watch-kbd4
2 files changed, 4 insertions, 4 deletions
diff --git a/local/.bin/hornet/setup-inputs b/local/.bin/hornet/setup-inputs
index 572feb1..cd1b4cf 100755
--- a/local/.bin/hornet/setup-inputs
+++ b/local/.bin/hornet/setup-inputs
@@ -14,5 +14,5 @@ xinput set-prop "$touchpad" "libinput Accel Speed" 0.4
xinput set-prop "$touchpad" "libinput Tapping Enabled" 1
# needs to happen after xmodmap stuff
-svre xcape
-svre xbindkeys
+systemctl --user restart xcape
+systemctl --user restart xbindkeys
diff --git a/local/.bin/hornet/watch-kbd b/local/.bin/hornet/watch-kbd
index a4d504e..269213e 100755
--- a/local/.bin/hornet/watch-kbd
+++ b/local/.bin/hornet/watch-kbd
@@ -4,10 +4,10 @@ set -o pipefail
trap 'kill $(jobs -p)' EXIT
-inotifywait -mq -e create -e delete -e moved_to --exclude '.*tmp.*' /dev/input/by-id/ |
+inotifywait -mq -e create -e delete -e moved_to --exclude '.*tmp.*' /dev/input/by-path/ |
while read -r event; do
echo "$event"
- if echo "$event" | grep -q USB_Keyboard; then
+ if echo "$event" | grep -q -- '-usb.*-kbd'; then
setup-inputs
fi
done &