Colors + work scratchpad.

This commit is contained in:
Bartek Stalewski 2022-03-07 18:57:13 +01:00
parent a85fe068bd
commit f9fe3327a0
7 changed files with 21 additions and 20 deletions

View file

@ -17,12 +17,12 @@ else
volmute=$(pactl get-sink-mute @DEFAULT_SINK@ | awk -F': ' '{print $2}')
micmute=$(pactl get-source-mute @DEFAULT_SOURCE@ | awk -F': ' '{print $2}')
if [ "$volmute" = yes ] && [ "$micmute" = yes ]; then
printf "^c#161616^^b#fd4285^\ue02b mute \ue04f mute^d^"
printf "^c#ffffff^^b#770000^\ue02b mute \ue04f mute^d^"
elif [ "$vol" -eq 0 ] && [ "$mic" -eq 0 ]; then
printf "^c#161616^^b#fd4285^\ue02b mute \ue04f mute^d^"
printf "^c#ffffff^^b#770000^\ue02b mute \ue04f mute^d^"
else
[ $(pactl get-sink-mute @DEFAULT_SINK@ | awk -F': ' '{print $2}') = yes ] || [ "$vol" -eq 0 ] && volinfo="^c#161616^^b#fd4285^\ue04f mute^d^" || volinfo="\ue050 ${vol}%%"
[ $(pactl get-source-mute @DEFAULT_SOURCE@ | awk -F': ' '{print $2}') = yes ] || [ "$mic" -eq 0 ] && micinfo="^c#161616^^b#fd4285^\ue02b mute^d^" || micinfo="\ue029 ${mic}%%"
[ $(pactl get-sink-mute @DEFAULT_SINK@ | awk -F': ' '{print $2}') = yes ] || [ "$vol" -eq 0 ] && volinfo="^c#ffffff^^b#770000^\ue04f mute^d^" || volinfo="\ue050 ${vol}%%"
[ $(pactl get-source-mute @DEFAULT_SOURCE@ | awk -F': ' '{print $2}') = yes ] || [ "$mic" -eq 0 ] && micinfo="^c#ffffff^^b#770000^\ue02b mute^d^" || micinfo="\ue029 ${mic}%%"
printf "${micinfo} ${volinfo}"
fi
fi