Use fontawesome instead of emojis
This commit is contained in:
8
.local/bin/statusbar/sb-volume
Normal file → Executable file
8
.local/bin/statusbar/sb-volume
Normal file → Executable file
@@ -7,7 +7,7 @@ case $BLOCK_BUTTON in
|
||||
2) pamixer -t ;;
|
||||
4) pamixer --allow-boost -i 1 ;;
|
||||
5) pamixer --allow-boost -d 1 ;;
|
||||
3) notify-send "📢 Volume module" "\- Shows volume 🔊, 🔇 if muted.
|
||||
3) notify-send "📢 Volume module" "\- Shows volume , if muted.
|
||||
- Middle click to mute.
|
||||
- Scroll to change." ;;
|
||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||
@@ -18,11 +18,11 @@ esac
|
||||
vol="$(pamixer --get-volume)"
|
||||
|
||||
if [ "$vol" -gt "70" ]; then
|
||||
icon="🔊"
|
||||
icon=""
|
||||
elif [ "$vol" -lt "30" ]; then
|
||||
icon="🔈"
|
||||
icon=""
|
||||
else
|
||||
icon="🔉"
|
||||
icon=""
|
||||
fi
|
||||
|
||||
echo "$icon$vol%"
|
||||
|
||||
Reference in New Issue
Block a user