dotfiles/.config/eww/volume.yuck

36 lines
914 B
Plaintext

(defwindow volume
:geometry (geometry :x "0px"
:y "40px"
:anchor "top center")
:stacking "overlay"
:monitor "0"
:focusable "false"
:windowtype "dock"
:wm-ignore "true"
(volshow))
(defwidget volshow []
(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}%")))