fix(eww): fix animation not playing when toggling button
This commit is contained in:
parent
b480353548
commit
cc3ada059e
3 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
eww update toggle-state=false
|
|
||||||
|
|
||||||
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled 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 autorotate.sh
|
||||||
killall -r evtest
|
killall -r evtest
|
||||||
|
|
||||||
|
eww update toggle-state=false
|
||||||
|
|
|
@ -13,12 +13,12 @@ state () {
|
||||||
toggle () {
|
toggle () {
|
||||||
if [[ $(busctl get-property --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 Visible) == "b true" ]]; then
|
if [[ $(busctl get-property --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 Visible) == "b true" ]]; then
|
||||||
echo "Running"
|
echo "Running"
|
||||||
eww update osk-toggle-state=false
|
|
||||||
busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false
|
busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false
|
||||||
|
eww update osk-toggle-state=false
|
||||||
else
|
else
|
||||||
echo "Stopped"
|
echo "Stopped"
|
||||||
eww update osk-toggle-state=true
|
|
||||||
busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true
|
busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true
|
||||||
|
eww update osk-toggle-state=true
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
eww update toggle-state=true
|
|
||||||
|
|
||||||
echo $XDG_DATA_DIRS >> ~/log.log
|
echo $XDG_DATA_DIRS >> ~/log.log
|
||||||
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true
|
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-AMDI0010:02-event-mouse" &
|
||||||
evtest --grab "/dev/input/by-path/platform-thinkpad_acpi-event" &
|
evtest --grab "/dev/input/by-path/platform-thinkpad_acpi-event" &
|
||||||
evtest --grab "/dev/video-bus" &
|
evtest --grab "/dev/video-bus" &
|
||||||
|
|
||||||
|
eww update toggle-state=true
|
||||||
|
|
Loading…
Reference in a new issue