mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-25 22:25:29 -08:00
25 lines
680 B
Text
25 lines
680 B
Text
(defwindow vol_osd
|
|
:monitor 1
|
|
:exclusive: false
|
|
:stacking "overlay"
|
|
:geometry (geometry :anchor "top center")
|
|
(volume_osd))
|
|
|
|
(defwidget volume_osd []
|
|
(revealer :transition "slidedown"
|
|
:reveal {open_vol_osd == true ? true : false}
|
|
:duration { ANIM_DURATION }
|
|
(box :orientation "h"
|
|
:class "volume-osd"
|
|
:space-evenly false
|
|
(volume_scale))))
|
|
|
|
(defwidget volume_scale []
|
|
(overlay :hexpand true
|
|
(scale :min 0
|
|
:max 100
|
|
:active {volume != -1}
|
|
:value {volume == "-1" ? 0 : volume}
|
|
:class "volume-scale")))
|
|
|
|
|