~alexdavid/dotfiles

dotfiles/i3blocks/volume.sh -rwxr-xr-x 266 bytes
73a15050 — Alex David Update vifminfo ignore path 30 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash

printf "​"

if pamixer --get-mute > /dev/null; then
  echo ""
  exit 0
fi

VOL=$(pamixer --get-volume)
if [ "$VOL" -lt 25 ]; then echo ""
elif [ "$VOL" -lt 40 ]; then echo ""
elif [ "$VOL" -lt 70 ]; then echo ""
else echo ""
fi