summaryrefslogtreecommitdiff
path: root/touchpad.sh
diff options
context:
space:
mode:
Diffstat (limited to 'touchpad.sh')
-rwxr-xr-xtouchpad.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/touchpad.sh b/touchpad.sh
index bb864e9..2a41ea4 100755
--- a/touchpad.sh
+++ b/touchpad.sh
@@ -6,21 +6,21 @@ 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
+ 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
+ hyprctl keyword "\$LAPTOP_TP_ENABLED" "false" -r
}
if ! [ -f "$STATUS_FILE" ]; then
enable_touchpad
else
- if [ $(cat "$STATUS_FILE") = "true" ]; then
+ if [ "$(cat "$STATUS_FILE")" = "true" ]; then
disable_touchpad
- elif [ $(cat "$STATUS_FILE") = "false" ]; then
+ elif [ "$(cat "$STATUS_FILE")" = "false" ]; then
enable_touchpad
fi
fi