feat(eww): add qs toggle and notif to on-release buttons

This commit is contained in:
matt1432 2023-08-13 18:26:59 -04:00
parent 3fbf72ff5a
commit fddcc8dc04
2 changed files with 16 additions and 5 deletions

View file

@ -24,10 +24,13 @@
)
)
(defvar qs-run-off "false")
(defwidget quick-settings-logo []
(eventbox :class "quick-settings-logo"
:onclick "$EWW_PATH/qs-toggle.sh off"
:onclick "$EWW_PATH/run.sh '$EWW_PATH/qs-toggle.sh off' qs-run-off &"
:cursor "pointer"
:onhover "eww update qs-run-off=true"
:onhoverlost "eww update qs-run-off=false"
(box :class "quick-settings-logo"
:orientation "h"

View file

@ -177,11 +177,13 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Quick Settings Toggle
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defvar qs-run-on "false")
(defwidget quick-settings-toggle []
(eventbox :class "toggle-off"
:onclick "$EWW_PATH/qs-toggle.sh on"
:onclick "$EWW_PATH/run.sh '$EWW_PATH/qs-toggle.sh on' qs-run-on &"
:cursor "pointer"
:onhover "eww update qs-run-on=true"
:onhoverlost "eww update qs-run-on=false"
(box :class "quick-settings-toggle"
:orientation "h"
@ -206,10 +208,13 @@
;; Notification Panel Toggle
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defvar notif-panel-state false)
(defvar notif-run-off "false")
(defwidget notif-panel-on []
(eventbox :class "toggle-on"
:onclick "$EWW_PATH/notif-toggle.sh off"
:onclick "$EWW_PATH/run.sh '$EWW_PATH/notif-toggle.sh off' notif-run-off &"
:cursor "pointer"
:onhover "eww update notif-run-off=true"
:onhoverlost "eww update notif-run-off=false"
(box :class "notif-panel"
:orientation "h"
@ -217,10 +222,13 @@
)
)
)
(defvar notif-run-on "false")
(defwidget notif-panel-off []
(eventbox :class "toggle-off"
:onclick "$EWW_PATH/notif-toggle.sh on"
:onclick "$EWW_PATH/run.sh '$EWW_PATH/notif-toggle.sh on' notif-run-on &"
:cursor "pointer"
:onhover "eww update notif-run-on=true"
:onhoverlost "eww update notif-run-on=false"
(box :class "notif-panel"
:orientation "h"