This commit is contained in:
Bartek Stalewski 2021-08-27 00:27:41 +02:00
parent 6334813951
commit 836e31ce61

View file

@ -14,6 +14,6 @@ if [ "${1}" = "micmute" ]; then
else
vol=$(pactl get-sink-volume @DEFAULT_SINK@ | awk -F' / ' '{print $2}' | tr -d '%')
[ $(pactl get-sink-mute @DEFAULT_SINK@ | awk -F': ' '{print $2}') = yes ] && volinfo="^c#eeeeee^^b#005577^\ue04f mute^d^" || volinfo="\ue050 ${vol}%%"
[ $(pactl get-source-volume @DEFAULT_SOURCE@ | awk -F': ' '{print $2}') = yes ] && micinfo="^c#eeeeee^^b#005577^\ue02b^d^" || micinfo="\ue02a^d^"
[ $(pactl get-source-mute @DEFAULT_SOURCE@ | awk -F': ' '{print $2}') = yes ] && micinfo="^c#eeeeee^^b#005577^\ue02b^d^" || micinfo="\ue02a^d^"
printf "${micinfo} ${volinfo}"
fi