fix(sketchybar): sound plugin - use same icons as polybar
This commit is contained in:
parent
ada270d130
commit
c9711d316e
1 changed files with 13 additions and 13 deletions
|
@ -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")
|
MUTED=$(osascript -e "get volume settings" | grep "muted:true")
|
||||||
|
|
||||||
if [[ "$MUTED" != "" ]]; then
|
if [[ "$MUTED" != "" ]]; then
|
||||||
ICON="ﱝ"
|
ICON="ﱝ "
|
||||||
else
|
else
|
||||||
case ${VOLUME} in
|
case ${VOLUME} in
|
||||||
100) ICON="";;
|
100) ICON="墳";;
|
||||||
9[0-9]) ICON="";;
|
9[0-9]) ICON="墳";;
|
||||||
8[0-9]) ICON="";;
|
8[0-9]) ICON="墳";;
|
||||||
7[0-9]) ICON="";;
|
7[0-9]) ICON="墳";;
|
||||||
6[0-9]) ICON="";;
|
6[0-9]) ICON="奔";;
|
||||||
5[0-9]) ICON="";;
|
5[0-9]) ICON="奔";;
|
||||||
4[0-9]) ICON="";;
|
4[0-9]) ICON="奔";;
|
||||||
3[0-9]) ICON="";;
|
3[0-9]) ICON="奔";;
|
||||||
2[0-9]) ICON="";;
|
2[0-9]) ICON="奄";;
|
||||||
1[0-9]) ICON="";;
|
1[0-9]) ICON="奄";;
|
||||||
[0-9]) ICON="";;
|
[0-9]) ICON="奄";;
|
||||||
*) ICON=""
|
*) ICON="奄"
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue