fix: fix animation for heart and osk buttons
This commit is contained in:
parent
49f2c8dbca
commit
5862efb395
5 changed files with 75 additions and 10 deletions
config/hypr/scripts
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue