diff options
| author | JaKooLit <jimmielovejay.com> | 2024-01-01 18:43:31 +0900 |
|---|---|---|
| committer | JaKooLit <jimmielovejay.com> | 2024-01-01 18:43:31 +0900 |
| commit | 2bbe867a07895b5bfdd00722830324fb1b37cf11 (patch) | |
| tree | d344007ddc9614137c64b6ea4bf619310646e59f /config/hypr/scripts/TouchPad.sh | |
| parent | f7c551d45dee4dee7b2ae7af635506f6bad0c1bc (diff) | |
Just a small tinkering... :)
Diffstat (limited to 'config/hypr/scripts/TouchPad.sh')
| -rwxr-xr-x | config/hypr/scripts/TouchPad.sh | 6 |
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 |
