fix: fix animation for heart and osk buttons

This commit is contained in:
matt1432 2023-07-27 21:46:32 -04:00
commit 5862efb395
5 changed files with 75 additions and 10 deletions
config/hypr/scripts

View file

@ -3,9 +3,11 @@
state () {
if [[ $(busctl get-property --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 Visible) == "b true" ]]; then
echo "Running"
eww open osk
eww update osk-ts=true
else
echo "Stopped"
eww close osk
eww update osk-ts=false
fi
}
@ -14,10 +16,12 @@ toggle () {
if [[ $(busctl get-property --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 Visible) == "b true" ]]; then
echo "Running"
busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false
eww close osk
eww update osk-ts=false
else
echo "Stopped"
busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true
eww open osk
eww update osk-ts=true
fi
}