fix(eww): fix animation not playing when toggling button

This commit is contained in:
matt1432 2023-07-15 11:52:57 -04:00
parent b480353548
commit cc3ada059e
3 changed files with 6 additions and 4 deletions

View file

@ -1,5 +1,4 @@
#!/usr/bin/env bash
eww update toggle-state=false
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false
@ -7,3 +6,5 @@ brightnessctl -d tpacpi::kbd_backlight s 2
killall -r autorotate.sh
killall -r evtest
eww update toggle-state=false

View file

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

View file

@ -1,5 +1,4 @@
#!/usr/bin/env bash
eww update toggle-state=true
echo $XDG_DATA_DIRS >> ~/log.log
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true
@ -13,3 +12,5 @@ evtest --grab "/dev/input/by-path/platform-i8042-serio-1-event-mouse" &
evtest --grab "/dev/input/by-path/platform-AMDI0010:02-event-mouse" &
evtest --grab "/dev/input/by-path/platform-thinkpad_acpi-event" &
evtest --grab "/dev/video-bus" &
eww update toggle-state=true