From 43538312ec0172f60acc283be83f48ae0f942abc Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Thu, 9 Mar 2023 10:51:53 +0100 Subject: [PATCH] Change mute notifications. --- _desktop/_scripts/sb-volume | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_desktop/_scripts/sb-volume b/_desktop/_scripts/sb-volume index 0896bb9..bc53a87 100755 --- a/_desktop/_scripts/sb-volume +++ b/_desktop/_scripts/sb-volume @@ -9,7 +9,7 @@ if [ $1 ]; then notify-send -t 2000 -u low "volume: $volume" else 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="mic muted" || 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} \ufc5d" || printf "$micmute" + [ $(pactl get-sink-mute @DEFAULT_SINK@ | awk -F': ' '{print $2}') = yes ] || [ "$vol" -eq 0 ] && printf "${micmute} audio muted" || printf "$micmute" fi