dotfiles-remastered/.config/eww/modules/volume/volume.yuck

58 lines
934 B
Plaintext
Raw Normal View History

2023-11-26 23:34:43 +00:00
(deflisten volume
:initial 100
"modules/volume/volume.sh"
)
(defwidget volume []
(eventbox
:onscroll "modules/volume/scroll-volume.sh {}"
(label
:class "volume"
:text "${volume}%"
)
)
)
(defvar vol_reveal false)
(defwidget volume_slider []
(eventbox
:onhover "eww update vol_reveal=true"
:onhoverlost "eww update vol_reveal=false"
:onscroll "modules/volume/scroll-volume.sh {}"
(box
:space-evenly false
:orientation "h"
:spacing "3"
(button
:class "pill"
(label
:text "${volume}%"
)
)
(revealer
:transition "slideleft"
:reveal vol_reveal
(scale
:class "volume_slider"
:value volume
:orientation "h"
:min 0
:max 101
:onchange "modules/volume/set-volume.sh {}"
)
)
)
)
)