mirror of https://github.com/tiyn/dotfiles
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
269 B
16 lines
269 B
5 years ago
|
#!/bin/sh
|
||
|
|
||
5 years ago
|
[ "$(pulsemixer --get-mute)" = "1" ] && printf "🔇\\n" && exit
|
||
5 years ago
|
|
||
|
vol=$(pulsemixer --get-volume | awk '{print $1}')
|
||
|
|
||
5 years ago
|
if [ "$vol" -gt "70" ]; then
|
||
|
icon="🔊"
|
||
|
elif [ "$vol" -lt "30" ]; then
|
||
|
icon="🔈"
|
||
|
else
|
||
|
icon="🔉"
|
||
|
fi
|
||
|
|
||
5 years ago
|
printf "%s %s\\n" "$vol" "$icon"
|