adding brightness widget

This commit is contained in:
Chris Cochrun 2023-01-10 09:39:46 -06:00
parent 7863e720c3
commit f9139f1b85

32
eww/bright.yuck Normal file
View file

@ -0,0 +1,32 @@
(defwindow brightness
:geometry (geometry :x "0px"
:y "40px"
:anchor "top center")
:stacking "fg"
:monitor "0"
(brightshow))
(defwidget brightshow []
(box
:class "volume-container"
:orientation "h"
:space-evenly "false"
:spacing 5
(button
:class "volume-icon"
:valign "center"
:halign "center"
:onclick "" "墳")
(scale
:class "volume-value"
:value {volume_percent}
:valign "center"
:halign "start"
:orientation "h"
:max 150
:min 0)
(label
:class "volume-label"
:halign "start"
:valign "center"
:text "${volume_percent}%")))