nixos-configs/config/eww/quick-settings/quick-settings.yuck

78 lines
1.8 KiB
Text
Raw Normal View History

(defvar showqs false)
2023-07-23 22:30:05 -04:00
(defwidget quick-settings-smol []
(box :class "quick-settings-smol"
:orientation "h"
(label :text "  ")
)
)
(defwindow quick-settings-smol
:monitor 0
:stacking "overlay"
:exclusive "ignore"
:geometry (geometry :x "5px"
:y "10px"
:width "0px"
:height "0px"
:anchor "top right"
)
(revealer
:transition "crossfade"
:reveal showqs
:duration "550ms"
(quick-settings-smol)
)
2023-07-23 22:30:05 -04:00
)
(defwidget quick-settings-logo []
(eventbox :class "quick-settings-logo"
:onclick "eww close quick-settings-smol; eww close quick-settings-logo; eww close quick-settings; eww update showqs=false"
2023-07-23 22:30:05 -04:00
:cursor "pointer"
(box :class "quick-settings-logo"
:orientation "h"
(label :text "  ")
)
)
)
(defwindow quick-settings-logo
:monitor 0
:stacking "overlay"
:exclusive "ignore"
:geometry (geometry :x "5px"
:y "10px"
:width "0px"
:height "0px"
:anchor "top right"
)
(revealer
:transition "crossfade"
:reveal showqs
:duration "550ms"
(quick-settings-logo)
)
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defwidget quick-settings []
(box :class "quick-settings"
:orientation "h"
)
)
(defwindow quick-settings
: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
)