aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/TouchPad.sh
diff options
context:
space:
mode:
authorJaKooLit <jimmielovejay.com>2024-01-01 18:43:31 +0900
committerJaKooLit <jimmielovejay.com>2024-01-01 18:43:31 +0900
commit2bbe867a07895b5bfdd00722830324fb1b37cf11 (patch)
treed344007ddc9614137c64b6ea4bf619310646e59f /config/hypr/scripts/TouchPad.sh
parentf7c551d45dee4dee7b2ae7af635506f6bad0c1bc (diff)
Just a small tinkering... :)
Diffstat (limited to 'config/hypr/scripts/TouchPad.sh')
-rwxr-xr-xconfig/hypr/scripts/TouchPad.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/hypr/scripts/TouchPad.sh b/config/hypr/scripts/TouchPad.sh
index 1fcb3249..47ad48f6 100755
--- a/config/hypr/scripts/TouchPad.sh
+++ b/config/hypr/scripts/TouchPad.sh
@@ -1,6 +1,8 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# For disabling touchpad.
-HYPRLAND_DEVICE="asue1209:00-04f3:319f-touchpad"
+Touchpad_Device="asue1209:00-04f3:319f-touchpad"
notif="$HOME/.config/swaync/images/bell.png"
XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:-/run/user/$(id -u)}
@@ -16,7 +18,7 @@ toggle_touchpad() {
fi
notify-send -u low -i "$notif" "Touchpad $action"
- hyprctl keyword "device:$HYPRLAND_DEVICE:enabled" "$(cat "$STATUS_FILE")"
+ hyprctl keyword "device:$Touchpad_Device:enabled" "$(cat "$STATUS_FILE")"
}
toggle_touchpad
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage