Files
colorshell/eww/widgets/volume-control/output-slider.yuck
T
2024-12-19 22:06:54 -03:00

19 lines
554 B
Plaintext

(defwidget output-slider []
(box :class "slider output-slider"
:space-evenly true
(overlay
(scale :min 0
:max 101 ; dirty fix max 99% volume
:value "${json_volume.output}"
:orientation "horizontal"
:draw-value false
:flipped false
:onchange "wpctl set-volume @DEFAULT_AUDIO_SINK@ $(awk -v n={} 'BEGIN { print (n / 100) }')")
(label :text "󰕾"
:xalign 0)
)
)
)