diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2024-04-24 15:20:42 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-24 15:20:42 +0900 |
| commit | 6352d78fd42c021094842f63a3a08b31e9177955 (patch) | |
| tree | 26bfe9901e36c204c2fe8434657c703780106b73 /config/hypr/scripts/TouchPad.sh | |
| parent | 8cd047fcde9dc62f80c2afde4dc9a9c8102f4775 (diff) | |
| parent | e25a8a4f487ccb4f68682f4885262152ef955f39 (diff) | |
Merge branch 'development' into rofi
Diffstat (limited to 'config/hypr/scripts/TouchPad.sh')
| -rwxr-xr-x | config/hypr/scripts/TouchPad.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/config/hypr/scripts/TouchPad.sh b/config/hypr/scripts/TouchPad.sh index 47ad48f6..e94ee068 100755 --- a/config/hypr/scripts/TouchPad.sh +++ b/config/hypr/scripts/TouchPad.sh @@ -1,6 +1,9 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # For disabling touchpad. +# Edit the Touchpad_Device according to your system +# use hyprctl devices to get your system touchpad device name + Touchpad_Device="asue1209:00-04f3:319f-touchpad" notif="$HOME/.config/swaync/images/bell.png" @@ -18,7 +21,7 @@ toggle_touchpad() { fi notify-send -u low -i "$notif" "Touchpad $action" - hyprctl keyword "device:$Touchpad_Device:enabled" "$(cat "$STATUS_FILE")" + hyprctl keyword "device[$Touchpad_Device]:enabled" "$(cat "$STATUS_FILE")" } toggle_touchpad |
