aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/TouchPad.sh
diff options
context:
space:
mode:
authorJa.KooLit <jimmielovejay@gmail.com>2024-01-02 01:21:53 +0900
committerGitHub <noreply@github.com>2024-01-02 01:21:53 +0900
commit1acea95602ecd292f4c806ce946c0ab33176e4ce (patch)
treea43d4ccfd313a4effa92919fef8d96934c23bac8 /config/hypr/scripts/TouchPad.sh
parent3d0283f6c0f323bf504d99aadb0019e6357048a8 (diff)
parente2bcb89ce79d0a0469e3eb362cc0cc802ddac208 (diff)
Merge pull request #116 from JaKooLit/development
Development
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