diff options
| author | Caroline Larimore <caroline@larimo.re> | 2025-02-08 20:28:49 -0800 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2025-04-14 18:58:53 -0700 |
| commit | 1cfb12afdddce77ab2a8c430b53faf9d8d31d920 (patch) | |
| tree | 9f69be31594e436aa692edc5f15a3fa1efe511c9 /roles/home/desktop/eww/panels/volume.yuck | |
| parent | 1eb21c10c217c60e226d168875def24967570a19 (diff) | |
migration: eww
Diffstat (limited to 'roles/home/desktop/eww/panels/volume.yuck')
| -rw-r--r-- | roles/home/desktop/eww/panels/volume.yuck | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/roles/home/desktop/eww/panels/volume.yuck b/roles/home/desktop/eww/panels/volume.yuck deleted file mode 100644 index 0c342c3..0000000 --- a/roles/home/desktop/eww/panels/volume.yuck +++ /dev/null @@ -1,40 +0,0 @@ -(defwidget volume [] - (box :class "volume panel" - :orientation "v" - :space-evenly false - - (label :markup "<b>Volume</b>") - - (box - :orientation "h" - :vexpand true - - (box - :orientation "v" - :space-evenly false - :vexpand true - - (scale - :orientation "v" - :flipped true - :value {sink-volume} - :max 101 - :onchange `pactl set-sink-volume @DEFAULT_SINK@ {}%` - :vexpand true - ) - - {sink-volume + "%"} - ) - ) - ) -) - -(defpoll sink-volume - :interval "0.2s" - `pactl get-sink-volume @DEFAULT_SINK@ | head -n1 | awk '{print substr($5, 1, length($5)-1)}'` -) - -;(defpoll source-volume -; :interval "0.2s" -; `pactl get-source-volume @DEFAULT_SOURCE@ | head -n1 | awk '{print substr($5, 1, length($5)-1)}'` -;) |