~yerinalexey/dotfiles

ref: a20b9321f36d731891bfadcdd178e7cf1c1e5af7 dotfiles/scripts/sway/update-volume-bar -rwxr-xr-x 211 bytes
a20b9321Alexey Yerin rel: make unknown type error more descriptive 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

# Updates wob according to current Pulseaudio volume

vol=$(pulsemixer --get-volume | cut -d' ' -f 1)

# Prevent wob from crashing
[ $vol -gt 100 ] && vol=100

printf "%s\n" "$vol" >> "$SWAYSOCK.wob"