feat(eww): make osk toggle button also on-release
This commit is contained in:
parent
568876794b
commit
3fbf72ff5a
1 changed files with 8 additions and 2 deletions
|
@ -2,10 +2,13 @@
|
|||
;; On-Screen Keyboard Toggle
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
(defvar osk-ts false)
|
||||
(defvar osk-run-off "false")
|
||||
(defwidget osk-toggle-on []
|
||||
(eventbox :class "toggle-on"
|
||||
:onclick "$HYPR_PATH/osk-toggle.sh toggle &"
|
||||
:onclick "$EWW_PATH/run.sh '$HYPR_PATH/osk-toggle.sh toggle' osk-run-off &"
|
||||
:cursor "pointer"
|
||||
:onhover "eww update osk-run-off=true"
|
||||
:onhoverlost "eww update osk-run-off=false"
|
||||
|
||||
(box :class "osk-toggle"
|
||||
:orientation "h"
|
||||
|
@ -13,10 +16,13 @@
|
|||
)
|
||||
)
|
||||
)
|
||||
(defvar osk-run-on "false")
|
||||
(defwidget osk-toggle-off []
|
||||
(eventbox :class "toggle-off"
|
||||
:onclick "$HYPR_PATH/osk-toggle.sh toggle &"
|
||||
:onclick "$EWW_PATH/run.sh '$HYPR_PATH/osk-toggle.sh toggle' osk-run-on &"
|
||||
:cursor "pointer"
|
||||
:onhover "eww update osk-run-on=true"
|
||||
:onhoverlost "eww update osk-run-on=false"
|
||||
|
||||
(box :class "osk-toggle"
|
||||
:orientation "h"
|
||||
|
|
Loading…
Reference in a new issue