2023-07-23 22:58:28 -04:00
|
|
|
(defvar showqs false)
|
|
|
|
|
2023-07-23 22:30:05 -04:00
|
|
|
(defwidget quick-settings-smol []
|
|
|
|
(box :class "quick-settings-smol"
|
|
|
|
:orientation "h"
|
|
|
|
(label :text " ")
|
|
|
|
)
|
|
|
|
)
|
2023-07-27 23:07:22 -04:00
|
|
|
(defwindow quick-settings-smol-reveal
|
2023-07-23 22:30:05 -04:00
|
|
|
:monitor 0
|
|
|
|
:stacking "overlay"
|
|
|
|
:exclusive "ignore"
|
|
|
|
:geometry (geometry :x "5px"
|
|
|
|
:y "10px"
|
|
|
|
:width "0px"
|
|
|
|
:height "0px"
|
|
|
|
:anchor "top right"
|
|
|
|
)
|
2023-07-23 22:58:28 -04:00
|
|
|
(revealer
|
|
|
|
:transition "crossfade"
|
|
|
|
:reveal showqs
|
|
|
|
:duration "550ms"
|
|
|
|
(quick-settings-smol)
|
|
|
|
)
|
2023-07-23 22:30:05 -04:00
|
|
|
)
|
|
|
|
|
2023-08-13 18:26:59 -04:00
|
|
|
(defvar qs-run-off "false")
|
2023-07-23 22:30:05 -04:00
|
|
|
(defwidget quick-settings-logo []
|
|
|
|
(eventbox :class "quick-settings-logo"
|
2023-08-13 18:26:59 -04:00
|
|
|
:onclick "$EWW_PATH/run.sh '$EWW_PATH/qs-toggle.sh off' qs-run-off &"
|
2023-07-23 22:30:05 -04:00
|
|
|
:cursor "pointer"
|
2023-08-13 18:26:59 -04:00
|
|
|
:onhover "eww update qs-run-off=true"
|
|
|
|
:onhoverlost "eww update qs-run-off=false"
|
2023-07-23 22:30:05 -04:00
|
|
|
|
|
|
|
(box :class "quick-settings-logo"
|
|
|
|
:orientation "h"
|
|
|
|
(label :text " ")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2023-07-27 23:07:22 -04:00
|
|
|
(defwindow quick-settings-logo-reveal
|
2023-07-23 22:30:05 -04:00
|
|
|
:monitor 0
|
|
|
|
:stacking "overlay"
|
|
|
|
:exclusive "ignore"
|
|
|
|
:geometry (geometry :x "5px"
|
|
|
|
:y "10px"
|
|
|
|
:width "0px"
|
|
|
|
:height "0px"
|
|
|
|
:anchor "top right"
|
|
|
|
)
|
2023-07-23 22:58:28 -04:00
|
|
|
(revealer
|
|
|
|
:transition "crossfade"
|
|
|
|
:reveal showqs
|
|
|
|
:duration "550ms"
|
|
|
|
(quick-settings-logo)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
|
|
|
(defwidget quick-settings []
|
2023-07-29 00:32:42 -04:00
|
|
|
(box :class "quick-settings"
|
|
|
|
:orientation "v"
|
|
|
|
:space-evenly false
|
|
|
|
(label :text "Control Center"
|
|
|
|
:class "title"
|
|
|
|
:xalign 0.04
|
|
|
|
)
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; Button Grid
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
(box :class "button-grid"
|
|
|
|
:orientation "v"
|
|
|
|
:valign "start"
|
|
|
|
:width 0
|
|
|
|
:height 0
|
|
|
|
:halign "center"
|
2023-08-06 23:01:18 -04:00
|
|
|
:space-evenly false
|
2023-07-29 00:32:42 -04:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; Row ONE
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
(box :class "button-row"
|
|
|
|
:orientation "h"
|
|
|
|
:space-evenly true
|
|
|
|
:width 0
|
|
|
|
:height 0
|
|
|
|
:halign "center"
|
2023-07-30 19:13:59 -04:00
|
|
|
:style "margin-top: 15px;
|
|
|
|
margin-bottom: 7px"
|
2023-07-29 00:32:42 -04:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
(box :class "grid-button"
|
|
|
|
:orientation "h"
|
|
|
|
:space-evenly false
|
|
|
|
:width 0
|
|
|
|
:height 0
|
|
|
|
|
|
|
|
(eventbox :class "left-part"
|
|
|
|
:cursor "pointer"
|
2023-08-07 20:37:41 -04:00
|
|
|
:onclick "$EWW_PATH/network.sh toggle"
|
|
|
|
(label :text " ${network_icon} "
|
2023-07-29 00:32:42 -04:00
|
|
|
:class "grid-label"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(eventbox :class "right-part"
|
|
|
|
:cursor "pointer"
|
2023-07-30 19:13:59 -04:00
|
|
|
:onclick "nm-connection-editor &"
|
|
|
|
|
2023-07-29 00:32:42 -04:00
|
|
|
(label :text " " :class "grid-chev")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
(box :class "grid-button"
|
|
|
|
:orientation "h"
|
|
|
|
:space-evenly false
|
|
|
|
:width 0
|
|
|
|
:height 0
|
|
|
|
|
|
|
|
(eventbox :class "left-part"
|
|
|
|
:cursor "pointer"
|
2023-08-07 20:37:41 -04:00
|
|
|
:onclick "$EWW_PATH/bluetooth.sh toggle"
|
2023-07-30 22:15:44 -04:00
|
|
|
|
2023-08-07 20:37:41 -04:00
|
|
|
(label :text " ${bluetooth_icon} "
|
2023-07-29 00:32:42 -04:00
|
|
|
:class "grid-label"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(eventbox :class "right-part"
|
|
|
|
:cursor "pointer"
|
2023-07-30 22:15:44 -04:00
|
|
|
:onclick "blueberry &"
|
|
|
|
|
2023-07-29 00:32:42 -04:00
|
|
|
(label :text " " :class "grid-chev")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
(box :class "grid-button"
|
|
|
|
:orientation "h"
|
|
|
|
:space-evenly false
|
|
|
|
:width 0
|
|
|
|
:height 0
|
|
|
|
|
|
|
|
(eventbox :class "left-part"
|
|
|
|
:cursor "pointer"
|
2023-08-07 21:07:42 -04:00
|
|
|
:onclick "$EWW_PATH/network.sh toggle-radio"
|
2023-07-30 22:15:44 -04:00
|
|
|
|
2023-08-07 21:07:42 -04:00
|
|
|
(label :text "${network_radio == 'on' ? ' ' : ' '}"
|
2023-07-29 00:32:42 -04:00
|
|
|
:class "grid-label"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(eventbox :class "right-part"
|
|
|
|
:cursor "pointer"
|
2023-07-30 22:15:44 -04:00
|
|
|
:onclick "notify-send 'set this up moron'"
|
|
|
|
|
|
|
|
(label :text " "
|
|
|
|
:class "grid-chev"
|
|
|
|
)
|
2023-07-29 00:32:42 -04:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2023-08-06 23:01:18 -04:00
|
|
|
;; SUB ROW
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
(box :orientation "h"
|
|
|
|
:space-evenly true
|
2023-08-08 21:36:21 -04:00
|
|
|
:spacing 34
|
2023-08-06 23:01:18 -04:00
|
|
|
:width 0
|
|
|
|
:height 0
|
|
|
|
:halign "center"
|
|
|
|
|
|
|
|
|
|
|
|
(label :text "${network_ssid}"
|
|
|
|
:class "sub-label"
|
|
|
|
:width 0
|
|
|
|
:height 0
|
2023-08-08 21:36:21 -04:00
|
|
|
:xalign 0.4
|
|
|
|
:limit-width 12
|
2023-08-06 23:01:18 -04:00
|
|
|
)
|
|
|
|
|
2023-08-07 20:37:41 -04:00
|
|
|
(label :text "${bluetooth_dev}"
|
2023-08-06 23:01:18 -04:00
|
|
|
:class "sub-label"
|
|
|
|
:width 0
|
|
|
|
:height 0
|
2023-08-08 21:36:21 -04:00
|
|
|
:xalign 0.4
|
|
|
|
:limit-width 12
|
2023-08-06 23:01:18 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
(label :text ""
|
|
|
|
:class ""
|
|
|
|
:width 0
|
|
|
|
:height 0
|
2023-08-08 21:36:21 -04:00
|
|
|
:xalign 0.4
|
|
|
|
:limit-width 12
|
2023-08-06 23:01:18 -04:00
|
|
|
)
|
|
|
|
)
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2023-07-29 00:32:42 -04:00
|
|
|
;; Row TWO
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
(box :class "button-row"
|
|
|
|
:orientation "h"
|
|
|
|
:space-evenly true
|
|
|
|
:width 0
|
|
|
|
:height 0
|
|
|
|
:halign "center"
|
2023-07-30 19:13:59 -04:00
|
|
|
:style "margin-top: 7px;
|
|
|
|
margin-bottom: 15px;"
|
2023-07-29 00:32:42 -04:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
(box :class "grid-button"
|
|
|
|
:orientation "h"
|
|
|
|
:space-evenly false
|
|
|
|
:width 0
|
|
|
|
:height 0
|
|
|
|
|
|
|
|
(eventbox :class "left-part"
|
|
|
|
:cursor "pointer"
|
2023-07-30 22:15:44 -04:00
|
|
|
:onclick "swayosd --output-volume mute-toggle"
|
|
|
|
|
|
|
|
(label :text " ${volume_icon} "
|
2023-07-29 00:32:42 -04:00
|
|
|
:class "grid-label"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(eventbox :class "right-part"
|
|
|
|
:cursor "pointer"
|
2023-07-30 22:15:44 -04:00
|
|
|
:onclick "pavucontrol &"
|
|
|
|
|
2023-07-29 00:32:42 -04:00
|
|
|
(label :text " " :class "grid-chev")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
(box :class "grid-button"
|
|
|
|
:orientation "h"
|
|
|
|
:space-evenly false
|
|
|
|
:width 0
|
|
|
|
:height 0
|
|
|
|
|
|
|
|
(eventbox :class "left-part"
|
|
|
|
:cursor "pointer"
|
2023-08-04 23:01:46 -04:00
|
|
|
:onclick "$EWW_PATH/mic.sh toggle-muted"
|
2023-07-30 22:15:44 -04:00
|
|
|
|
2023-08-04 23:01:46 -04:00
|
|
|
(label :text " ${mic_icon} "
|
2023-07-29 00:32:42 -04:00
|
|
|
:class "grid-label"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(eventbox :class "right-part"
|
|
|
|
:cursor "pointer"
|
2023-07-30 22:15:44 -04:00
|
|
|
:onclick "pavucontrol &"
|
|
|
|
|
2023-07-29 00:32:42 -04:00
|
|
|
(label :text " " :class "grid-chev")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
(box :class "grid-button"
|
|
|
|
:orientation "h"
|
|
|
|
:space-evenly false
|
|
|
|
:width 0
|
|
|
|
:height 0
|
|
|
|
|
|
|
|
(eventbox :class "left-part"
|
|
|
|
:cursor "pointer"
|
2023-08-07 21:39:05 -04:00
|
|
|
:onclick "$LOCK_PATH/lock.sh &"
|
2023-07-30 22:15:44 -04:00
|
|
|
|
2023-08-07 21:07:42 -04:00
|
|
|
(label :text " "
|
2023-07-29 00:32:42 -04:00
|
|
|
:class "grid-label"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(eventbox :class "right-part"
|
|
|
|
:cursor "pointer"
|
2023-08-07 21:07:42 -04:00
|
|
|
:onclick "$EWW_PATH/open.sh powermenu"
|
2023-07-30 22:15:44 -04:00
|
|
|
|
2023-07-29 00:32:42 -04:00
|
|
|
(label :text " " :class "grid-chev")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2023-07-30 19:13:59 -04:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(box :class "slider-box"
|
|
|
|
:orientation "v"
|
|
|
|
:space-evenly true
|
|
|
|
:spacing 0
|
|
|
|
:width 0
|
|
|
|
:height 0
|
|
|
|
:halign "center"
|
2023-07-29 00:32:42 -04:00
|
|
|
|
2023-07-30 19:13:59 -04:00
|
|
|
(box :class "slider"
|
|
|
|
:orientation "h"
|
|
|
|
:valign "start"
|
|
|
|
:halign "center"
|
|
|
|
:width 0
|
|
|
|
:height 0
|
|
|
|
:space-evenly false
|
|
|
|
|
2023-07-30 22:15:44 -04:00
|
|
|
(label :text "${volume_icon}" :class "slider-label")
|
2023-07-30 19:13:59 -04:00
|
|
|
|
2023-07-30 22:15:44 -04:00
|
|
|
(scale :value volume_value
|
|
|
|
:onchange "$EWW_PATH/volume.sh set {}"
|
2023-07-30 19:13:59 -04:00
|
|
|
:min 0
|
|
|
|
:max 101
|
|
|
|
:height 0
|
|
|
|
:width 0
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(box :class "slider"
|
|
|
|
:orientation "h"
|
|
|
|
:valign "start"
|
|
|
|
:halign "center"
|
|
|
|
:width 0
|
|
|
|
:height 0
|
|
|
|
:space-evenly false
|
|
|
|
|
2023-07-30 22:15:44 -04:00
|
|
|
(label :text " ${br_icon} " :class "slider-label" :style "margin-left: 6px;
|
|
|
|
margin-right: -6px")
|
2023-07-30 19:13:59 -04:00
|
|
|
|
2023-07-30 22:15:44 -04:00
|
|
|
(scale :value br
|
|
|
|
:onchange "$EWW_PATH/brightness.sh set {}"
|
2023-07-30 19:13:59 -04:00
|
|
|
:min 0
|
|
|
|
:max 101
|
|
|
|
:height 0
|
|
|
|
:width 0
|
2023-07-29 00:32:42 -04:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2023-07-30 22:15:44 -04:00
|
|
|
|
2023-07-23 22:58:28 -04:00
|
|
|
)
|
|
|
|
)
|
2023-07-27 23:07:22 -04:00
|
|
|
(defwindow quick-settings-reveal
|
2023-07-23 22:58:28 -04:00
|
|
|
:monitor 0
|
|
|
|
:stacking "overlay"
|
|
|
|
:geometry (geometry :x "5px"
|
|
|
|
:y "7px"
|
|
|
|
:width "0px"
|
|
|
|
:height "0px"
|
|
|
|
:anchor "top right"
|
|
|
|
)
|
|
|
|
(revealer
|
|
|
|
:transition "crossfade"
|
|
|
|
:reveal showqs
|
|
|
|
:duration "550ms"
|
|
|
|
(quick-settings)
|
|
|
|
)
|
2023-07-23 22:30:05 -04:00
|
|
|
)
|