2023-07-26 20:21:02 -04:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; On-Screen Keyboard Toggle
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2023-07-22 00:19:46 -04:00
|
|
|
(defvar osk-ts false)
|
2023-08-13 16:48:35 -04:00
|
|
|
(defvar osk-run-off "false")
|
2023-07-27 21:46:32 -04:00
|
|
|
(defwidget osk-toggle-on []
|
|
|
|
(eventbox :class "toggle-on"
|
2023-08-13 16:48:35 -04:00
|
|
|
:onclick "$EWW_PATH/run.sh '$HYPR_PATH/osk-toggle.sh toggle' osk-run-off &"
|
2023-07-27 21:46:32 -04:00
|
|
|
:cursor "pointer"
|
2023-08-13 16:48:35 -04:00
|
|
|
:onhover "eww update osk-run-off=true"
|
|
|
|
:onhoverlost "eww update osk-run-off=false"
|
2023-07-27 21:46:32 -04:00
|
|
|
|
|
|
|
(box :class "osk-toggle"
|
|
|
|
:orientation "h"
|
|
|
|
(label :text " ")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2023-08-13 16:48:35 -04:00
|
|
|
(defvar osk-run-on "false")
|
2023-07-27 21:46:32 -04:00
|
|
|
(defwidget osk-toggle-off []
|
|
|
|
(eventbox :class "toggle-off"
|
2023-08-13 16:48:35 -04:00
|
|
|
:onclick "$EWW_PATH/run.sh '$HYPR_PATH/osk-toggle.sh toggle' osk-run-on &"
|
2023-07-27 21:46:32 -04:00
|
|
|
:cursor "pointer"
|
2023-08-13 16:48:35 -04:00
|
|
|
:onhover "eww update osk-run-on=true"
|
|
|
|
:onhoverlost "eww update osk-run-on=false"
|
2023-07-23 13:40:45 -04:00
|
|
|
|
2023-07-15 00:46:04 -04:00
|
|
|
(box :class "osk-toggle"
|
|
|
|
:orientation "h"
|
|
|
|
(label :text " ")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2023-07-27 21:46:32 -04:00
|
|
|
(defwindow osk
|
|
|
|
:monitor 0
|
|
|
|
:stacking "overlay"
|
|
|
|
:exclusive "ignore"
|
|
|
|
:geometry (geometry :x "5px"
|
|
|
|
:y "10px"
|
|
|
|
:width "0px"
|
|
|
|
:height "0px"
|
|
|
|
:anchor "top left"
|
|
|
|
)
|
|
|
|
(revealer
|
|
|
|
:transition "crossfade"
|
|
|
|
:reveal osk-ts
|
2023-08-19 00:54:04 -04:00
|
|
|
:duration anim_duration
|
2023-07-27 21:46:32 -04:00
|
|
|
(osk-toggle-on)
|
|
|
|
)
|
|
|
|
)
|
2023-07-15 00:46:04 -04:00
|
|
|
|
2023-07-26 20:21:02 -04:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; Tablet Mode Toggle
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2023-07-22 00:19:46 -04:00
|
|
|
(defvar tablet-ts false)
|
2023-08-13 15:12:49 -04:00
|
|
|
(defvar tablet-run-off "false")
|
2023-07-27 22:00:08 -04:00
|
|
|
(defwidget tablet-toggle-on []
|
|
|
|
(eventbox :class "toggle-on"
|
2023-08-13 15:12:49 -04:00
|
|
|
:onclick "$EWW_PATH/run.sh '$HYPR_PATH/laptop-mode.sh' tablet-run-off &"
|
2023-07-27 22:00:08 -04:00
|
|
|
:cursor "pointer"
|
2023-08-13 15:12:49 -04:00
|
|
|
:onhover "eww update tablet-run-off=true"
|
|
|
|
:onhoverlost "eww update tablet-run-off=false"
|
2023-07-27 22:00:08 -04:00
|
|
|
|
|
|
|
(box :class "tablet-toggle"
|
|
|
|
:orientation "h"
|
|
|
|
(label :text " ")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2023-08-13 15:12:49 -04:00
|
|
|
(defvar tablet-run-on "false")
|
2023-07-27 22:00:08 -04:00
|
|
|
(defwidget tablet-toggle-off []
|
|
|
|
(eventbox :class "toggle-off"
|
2023-08-13 15:12:49 -04:00
|
|
|
:onclick "$EWW_PATH/run.sh '$HYPR_PATH/tablet-mode.sh' tablet-run-on &"
|
2023-07-23 22:28:26 -04:00
|
|
|
:cursor "pointer"
|
2023-08-13 15:12:49 -04:00
|
|
|
:onhover "eww update tablet-run-on=true"
|
|
|
|
:onhoverlost "eww update tablet-run-on=false"
|
2023-07-23 17:12:32 -04:00
|
|
|
|
2023-07-23 13:40:45 -04:00
|
|
|
(box :class "tablet-toggle"
|
|
|
|
:orientation "h"
|
2023-06-27 10:13:14 -04:00
|
|
|
(label :text " ")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2023-07-27 22:00:08 -04:00
|
|
|
(defwindow tablet
|
|
|
|
:monitor 0
|
|
|
|
:stacking "overlay"
|
|
|
|
:exclusive "ignore"
|
|
|
|
:geometry (geometry :x "72px"
|
|
|
|
:y "10px"
|
|
|
|
:width "0px"
|
|
|
|
:height "0px"
|
|
|
|
:anchor "top left"
|
|
|
|
)
|
|
|
|
(revealer
|
|
|
|
:transition "crossfade"
|
|
|
|
:reveal tablet-ts
|
2023-08-19 00:54:04 -04:00
|
|
|
:duration anim_duration
|
2023-07-27 22:00:08 -04:00
|
|
|
(tablet-toggle-on)
|
|
|
|
)
|
|
|
|
)
|
2023-06-27 10:13:14 -04:00
|
|
|
|
2023-07-26 20:21:02 -04:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; Heart Toggle
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2023-08-16 23:31:04 -04:00
|
|
|
(defvar heart-ts "false")
|
2023-08-13 13:39:44 -04:00
|
|
|
(defvar heart-run-off "false")
|
2023-07-27 21:46:32 -04:00
|
|
|
(defwidget heart-toggle-on []
|
|
|
|
(eventbox :class "toggle-on"
|
2023-08-13 13:39:44 -04:00
|
|
|
:onclick "$EWW_PATH/run.sh '$EWW_PATH/heart.sh toggle' heart-run-off &"
|
2023-07-23 22:28:26 -04:00
|
|
|
:cursor "pointer"
|
2023-08-13 13:39:44 -04:00
|
|
|
:onhover "eww update heart-run-off=true"
|
|
|
|
:onhoverlost "eww update heart-run-off=false"
|
2023-07-23 13:40:45 -04:00
|
|
|
|
|
|
|
(box :class "heart-toggle"
|
|
|
|
:orientation "h"
|
2023-07-22 14:22:33 -04:00
|
|
|
(label :text " ${heart_icon} ")
|
2023-07-22 00:19:46 -04:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2023-08-13 13:39:44 -04:00
|
|
|
(defvar heart-run-on "false")
|
2023-07-27 21:46:32 -04:00
|
|
|
(defwidget heart-toggle-off []
|
|
|
|
(eventbox :class "toggle-off"
|
2023-08-13 13:39:44 -04:00
|
|
|
:onclick "$EWW_PATH/run.sh '$EWW_PATH/heart.sh toggle' heart-run-on &"
|
2023-07-27 21:46:32 -04:00
|
|
|
:cursor "pointer"
|
2023-08-13 13:39:44 -04:00
|
|
|
:onhover "eww update heart-run-on=true"
|
|
|
|
:onhoverlost "eww update heart-run-on=false"
|
2023-07-27 21:46:32 -04:00
|
|
|
|
|
|
|
(box :class "heart-toggle"
|
|
|
|
:orientation "h"
|
|
|
|
(label :text " ${heart_icon} ")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(defwindow heart
|
|
|
|
:monitor 0
|
|
|
|
:stacking "overlay"
|
|
|
|
:exclusive "ignore"
|
|
|
|
:geometry (geometry :x "140px"
|
|
|
|
:y "10px"
|
|
|
|
:width "0px"
|
|
|
|
:height "0px"
|
|
|
|
:anchor "top left"
|
|
|
|
)
|
|
|
|
(revealer
|
|
|
|
:transition "crossfade"
|
|
|
|
:reveal heart-ts
|
2023-08-19 00:54:04 -04:00
|
|
|
:duration anim_duration
|
2023-07-27 21:46:32 -04:00
|
|
|
(heart-toggle-on)
|
|
|
|
)
|
|
|
|
)
|
2023-07-22 00:19:46 -04:00
|
|
|
|
2023-07-26 20:21:02 -04:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; Left Bar
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2023-07-22 00:19:46 -04:00
|
|
|
(defwidget left-bar []
|
|
|
|
(box :class "transparent"
|
|
|
|
:space-evenly true
|
2023-07-23 13:40:45 -04:00
|
|
|
:spacing 12
|
2023-07-22 00:19:46 -04:00
|
|
|
:orientation "h"
|
2023-07-27 21:46:32 -04:00
|
|
|
(osk-toggle-off)
|
2023-07-27 22:00:08 -04:00
|
|
|
(tablet-toggle-off)
|
2023-07-27 21:46:32 -04:00
|
|
|
(heart-toggle-off)
|
2023-07-22 00:19:46 -04:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(defwindow left-bar
|
2023-06-27 10:13:14 -04:00
|
|
|
:monitor 0
|
|
|
|
:stacking "overlay"
|
|
|
|
:exclusive "ignore"
|
2023-07-23 13:40:45 -04:00
|
|
|
:geometry (geometry :x "5px"
|
|
|
|
:y "10px"
|
2023-06-27 10:13:14 -04:00
|
|
|
:width "0px"
|
|
|
|
:height "0px"
|
|
|
|
:anchor "top left"
|
|
|
|
)
|
2023-07-22 00:19:46 -04:00
|
|
|
(left-bar)
|
2023-06-27 10:13:14 -04:00
|
|
|
)
|
|
|
|
|
2023-07-22 14:22:33 -04:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2023-07-26 20:21:02 -04:00
|
|
|
;; Quick Settings Toggle
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2023-08-13 18:26:59 -04:00
|
|
|
(defvar qs-run-on "false")
|
2023-07-23 13:40:45 -04:00
|
|
|
(defwidget quick-settings-toggle []
|
2023-07-23 22:28:26 -04:00
|
|
|
(eventbox :class "toggle-off"
|
2023-08-13 18:26:59 -04:00
|
|
|
:onclick "$EWW_PATH/run.sh '$EWW_PATH/qs-toggle.sh on' qs-run-on &"
|
2023-07-23 22:28:26 -04:00
|
|
|
:cursor "pointer"
|
2023-08-13 18:26:59 -04:00
|
|
|
:onhover "eww update qs-run-on=true"
|
|
|
|
:onhoverlost "eww update qs-run-on=false"
|
2023-07-23 17:12:32 -04:00
|
|
|
|
2023-07-23 13:40:45 -04:00
|
|
|
(box :class "quick-settings-toggle"
|
|
|
|
:orientation "h"
|
|
|
|
(label :text " ")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(defwindow quick-settings-toggle
|
|
|
|
:monitor 0
|
|
|
|
:stacking "overlay"
|
|
|
|
:exclusive "ignore"
|
|
|
|
:geometry (geometry :x "5px"
|
|
|
|
:y "10px"
|
|
|
|
:width "0px"
|
|
|
|
:height "0px"
|
|
|
|
:anchor "top right"
|
|
|
|
)
|
|
|
|
(quick-settings-toggle)
|
|
|
|
)
|
2023-07-15 00:46:04 -04:00
|
|
|
|
2023-07-26 20:21:02 -04:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; Notification Panel Toggle
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2023-06-27 10:13:14 -04:00
|
|
|
(defvar notif-panel-state false)
|
2023-08-13 18:26:59 -04:00
|
|
|
(defvar notif-run-off "false")
|
2023-08-03 23:07:22 -04:00
|
|
|
(defwidget notif-panel-on []
|
|
|
|
(eventbox :class "toggle-on"
|
2023-08-13 18:26:59 -04:00
|
|
|
:onclick "$EWW_PATH/run.sh '$EWW_PATH/notif-toggle.sh off' notif-run-off &"
|
2023-07-23 22:28:26 -04:00
|
|
|
:cursor "pointer"
|
2023-08-13 18:26:59 -04:00
|
|
|
:onhover "eww update notif-run-off=true"
|
|
|
|
:onhoverlost "eww update notif-run-off=false"
|
2023-07-23 22:28:26 -04:00
|
|
|
|
2023-07-23 13:40:45 -04:00
|
|
|
(box :class "notif-panel"
|
|
|
|
:orientation "h"
|
2023-06-27 10:13:14 -04:00
|
|
|
(label :text " ${notif_icon} ")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2023-08-13 18:26:59 -04:00
|
|
|
(defvar notif-run-on "false")
|
2023-08-03 23:07:22 -04:00
|
|
|
(defwidget notif-panel-off []
|
|
|
|
(eventbox :class "toggle-off"
|
2023-08-13 18:26:59 -04:00
|
|
|
:onclick "$EWW_PATH/run.sh '$EWW_PATH/notif-toggle.sh on' notif-run-on &"
|
2023-08-03 23:07:22 -04:00
|
|
|
:cursor "pointer"
|
2023-08-13 18:26:59 -04:00
|
|
|
:onhover "eww update notif-run-on=true"
|
|
|
|
:onhoverlost "eww update notif-run-on=false"
|
2023-08-03 23:07:22 -04:00
|
|
|
|
|
|
|
(box :class "notif-panel"
|
|
|
|
:orientation "h"
|
|
|
|
(label :text " ${notif_icon} ")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2023-07-23 13:40:45 -04:00
|
|
|
(defwindow notif-panel
|
2023-06-27 10:13:14 -04:00
|
|
|
:monitor 0
|
|
|
|
:stacking "overlay"
|
|
|
|
:exclusive "ignore"
|
2023-07-23 13:40:45 -04:00
|
|
|
:geometry (geometry :x "60px"
|
|
|
|
:y "10px"
|
2023-06-27 10:13:14 -04:00
|
|
|
:width "0px"
|
|
|
|
:height "0px"
|
|
|
|
:anchor "top right"
|
|
|
|
)
|
2023-08-03 23:07:22 -04:00
|
|
|
(notif-panel-off)
|
|
|
|
)
|
|
|
|
(defwindow notif-panel-on
|
|
|
|
:monitor 0
|
|
|
|
:stacking "overlay"
|
|
|
|
:exclusive "ignore"
|
|
|
|
:geometry (geometry :x "60px"
|
|
|
|
:y "10px"
|
|
|
|
:width "0px"
|
|
|
|
:height "0px"
|
|
|
|
:anchor "top right"
|
|
|
|
)
|
|
|
|
(revealer
|
|
|
|
:transition "crossfade"
|
|
|
|
:reveal notif-panel-state
|
2023-08-19 00:54:04 -04:00
|
|
|
:duration anim_duration
|
2023-08-03 23:07:22 -04:00
|
|
|
(notif-panel-on)
|
|
|
|
)
|
2023-06-27 10:13:14 -04:00
|
|
|
)
|