moved hypr scripts
This commit is contained in:
1 parent
37fb63549e
commit
f338147907
22 files changed
+610
-5
No files matched your search
Executable
+28
@@ -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"
|
||||