From 067c7cb8d9673a2e8a05ca9ab228e15802880cfa Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Tue, 30 Aug 2022 09:48:33 +0200 Subject: [PATCH] I don't need to see the numeric value of volume. --- _desktop/_scripts/sb-volume | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/_desktop/_scripts/sb-volume b/_desktop/_scripts/sb-volume index 5a14d47..92149c5 100755 --- a/_desktop/_scripts/sb-volume +++ b/_desktop/_scripts/sb-volume @@ -1,7 +1,6 @@ #!/bin/bash -icon='\uf028 ' mic=$(pactl get-source-volume @DEFAULT_SOURCE@ | awk -F' / ' '{print $2}' | tr -d '%') -[ $(pactl get-source-mute @DEFAULT_SOURCE@ | awk -F': ' '{print $2}') = yes ] || [ "$mic" -eq 0 ] && micmute=" \uf131 " || micmute="" +[ $(pactl get-source-mute @DEFAULT_SOURCE@ | awk -F': ' '{print $2}') = yes ] || [ "$mic" -eq 0 ] && micmute=" \uf131 " || micmute="" vol=$(pactl get-sink-volume @DEFAULT_SINK@ | awk -F' / ' '{print $2}' | tr -d '%') -[ $(pactl get-sink-mute @DEFAULT_SINK@ | awk -F': ' '{print $2}') = yes ] || [ "$vol" -eq 0 ] && printf "${micmute}$icon mute" || printf "$micmute$icon ${vol}%%" +[ $(pactl get-sink-mute @DEFAULT_SINK@ | awk -F': ' '{print $2}') = yes ] || [ "$vol" -eq 0 ] && printf "${micmute} \ufc5d " || printf "$micmute"