diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-09 20:07:10 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-09 20:07:10 +0100 |
commit | b3fdb09a1c512738fbe42aefb80a92b4560a5677 (patch) | |
tree | ea7d4736c323646707e33eaa3589ff321df2f622 /.local/bin/statusbar/sb-volume | |
parent | bec891dac2cc69a75e4c5d273b4a1f3893f5b14b (diff) |
Update icons for statusbar scripts
Diffstat (limited to '.local/bin/statusbar/sb-volume')
-rwxr-xr-x | .local/bin/statusbar/sb-volume | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/.local/bin/statusbar/sb-volume b/.local/bin/statusbar/sb-volume index d396108..a62181e 100755 --- a/.local/bin/statusbar/sb-volume +++ b/.local/bin/statusbar/sb-volume @@ -1,28 +1,28 @@ #!/bin/sh -# Prints the current volume or 🔇 if muted. +# Prints the current volume or if muted. case $BLOCK_BUTTON in 1) setsid -f "$TERMINAL" -e pulsemixer ;; 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" ;; esac -[ $(pamixer --get-mute) = true ] && echo 🔇 && exit +[ $(pamixer --get-mute) = true ] && echo && exit 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%" |