58 lines
934 B
Plaintext
58 lines
934 B
Plaintext
|
(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 {}"
|
||
|
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
|
||
|
)
|
||
|
)
|