fix(sketchybar): sound plugin - use same icons as polybar

This commit is contained in:
winston 2022-07-31 10:04:59 +02:00
parent ada270d130
commit c9711d316e
Signed by: winston
GPG key ID: 3786770EDBC2B481

View file

@ -4,21 +4,21 @@ VOLUME=$(osascript -e "get volume settings" | cut -d " " -d ":" -f2 | cut -d ","
MUTED=$(osascript -e "get volume settings" | grep "muted:true")
if [[ "$MUTED" != "" ]]; then
ICON="ﱝ"
ICON="ﱝ "
else
case ${VOLUME} in
100) ICON="";;
9[0-9]) ICON="";;
8[0-9]) ICON="";;
7[0-9]) ICON="";;
6[0-9]) ICON="";;
5[0-9]) ICON="";;
4[0-9]) ICON="";;
3[0-9]) ICON="";;
2[0-9]) ICON="";;
1[0-9]) ICON="";;
[0-9]) ICON="";;
*) ICON=""
100) ICON="";;
9[0-9]) ICON="";;
8[0-9]) ICON="";;
7[0-9]) ICON="";;
6[0-9]) ICON="奔";;
5[0-9]) ICON="奔";;
4[0-9]) ICON="奔";;
3[0-9]) ICON="奔";;
2[0-9]) ICON="";;
1[0-9]) ICON="";;
[0-9]) ICON="";;
*) ICON=""
esac
fi