diff options
author | zachir <zachir@librem.one> | 2025-07-15 20:50:37 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2025-07-15 20:50:37 -0500 |
commit | b57c4b69d461ac785d793b8aedfd75db899c1bc9 (patch) | |
tree | 9da78a27832b41fde890af813fc914845cdbace0 /touchpad.sh | |
parent | c4ce28f4bc2ab0fb74707cd7f321da449ffd948e (diff) | |
parent | 4f5fb6b16fb0dc03ed2aae56658cc0fa0265a7ff (diff) |
Merge branch 'master' into artix
Diffstat (limited to 'touchpad.sh')
-rwxr-xr-x | touchpad.sh | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/touchpad.sh b/touchpad.sh deleted file mode 100755 index bb864e9..0000000 --- a/touchpad.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-$HOME/.local/share}" -export STATUS_FILE="$XDG_RUNTIME_DIR/touchpad.status" - -enable_touchpad() { - printf "true" >"$STATUS_FILE" - notify-send -u normal "Enabling touchpad" - hyprctl keyword '$LAPTOP_TP_ENABLED' "true" -r -} - -disable_touchpad() { - printf "false" >"$STATUS_FILE" - notify-send -u normal "Disabling touchpad" - hyprctl keyword '$LAPTOP_TP_ENABLED' "false" -r -} - -if ! [ -f "$STATUS_FILE" ]; then - enable_touchpad -else - if [ $(cat "$STATUS_FILE") = "true" ]; then - disable_touchpad - elif [ $(cat "$STATUS_FILE") = "false" ]; then - enable_touchpad - fi -fi |