scripts reorganize

This commit is contained in:
2026-10-06 22:34:05 +02:00
parent a2a056a68d
commit 0734bee219
60 changed files with 824 additions and 5 deletions

View File

@@ -0,0 +1,28 @@
#!/usr/bin/env bash
touchpad="uniw0001:00-093a:0255-touchpad"
statFile="/tmp/tpEnabled"
if [ ! -f "$statFile" ]; then
echo "false" > "$statFile"
fi
current=$(cat "$statFile")
if [[ "$current" = "true" ]]; then
newState="false"
msg="disabled"
else
newState="true"
msg="enabled"
fi
hyprctl eval "hl.device({ name = \"$touchpad\", enabled = $newState})"
echo "$newState" > "$statFile"
dunstify -u low \
-a Touchpad \
-i ~/.icons/candy-icons/apps/scalable/cs-desktop.svg \
-r 365 \
-t 1000 \
"Touchpad $msg"