Bar tweaks.

This commit is contained in:
Bartek Stalewski 2021-07-26 23:18:58 +02:00
parent 183a4bb338
commit d2d9bb92e3

View File

@ -4,5 +4,5 @@ vol="$(pamixer --get-volume)"
[ $(echo $vol | wc -c) -lt 4 ] && svol=" ${vol}%%" || svol="${vol}%%"
[ $(pamixer --get-mute) = true ] && volinfo="^c#161616^^b#fd4285^\ue04f mute^d^" || volinfo="\ue050 ${svol}"
device=$(pamixer --list-sources | awk '/Raven/ {print $1}')
[ $(pamixer --source $device --get-mute) = true ] && micinfo="^c#161616^^b#fd4285^\ue02b MM^d^" || micinfo="\ue02a on"
[ $(pamixer --source $device --get-mute) = true ] && micinfo="^c#161616^^b#fd4285^\ue02b silent^d^" || micinfo="\ue02a listen"
printf "${volinfo} ${micinfo}"