summaryrefslogtreecommitdiff
path: root/.scripts
diff options
context:
space:
mode:
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/touchpad-disable-hypr11
1 files changed, 11 insertions, 0 deletions
diff --git a/.scripts/touchpad-disable-hypr b/.scripts/touchpad-disable-hypr
new file mode 100755
index 0000000..d6f634c
--- /dev/null
+++ b/.scripts/touchpad-disable-hypr
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+CACHE_FILE="$XDG_CACHE_HOME/laptop-keyboard-disabled"
+
+if [ -f "$CACHE_FILE" ] ;then
+ rm "$CACHE_FILE"
+ hyprctl keyword -r '$TOUCHPAD_ENABLED' "true"
+else
+ touch "$CACHE_FILE"
+ hyprctl keyword -r '$TOUCHPAD_ENABLED' "false"
+fi