Material Icons.
This commit is contained in:
parent
9e0d48b35f
commit
4508f38520
13 changed files with 121 additions and 117 deletions
|
@ -1,10 +1,8 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$1" != "mic" ]; then
|
||||
vol="$(pamixer --get-volume)"
|
||||
[ $(echo $vol | wc -c) -lt 4 ] && svol=" ${vol}%" || svol="${vol}%"
|
||||
[ $(pamixer --get-mute) = true ] && echo "🔇 ^c#161616^^b#fd4285^mute^d^" || echo "🔊 ${svol}"
|
||||
else
|
||||
device=$(pamixer --list-sources | awk '/Raven/ {print $1}')
|
||||
[ $(pamixer --source $device --get-mute) = true ] && echo "^c#161616^^b#fd4285^MM^d^" || echo "on"
|
||||
fi
|
||||
vol="$(pamixer --get-volume)"
|
||||
[ $(echo $vol | wc -c) -lt 4 ] && svol=" ${vol}%%" || svol="${vol}%%"
|
||||
[ $(pamixer --get-mute) = true ] && volinfo="\ue04f ^c#161616^^b#fd4285^mute^d^" || volinfo="\ue050 ${svol}"
|
||||
device=$(pamixer --list-sources | awk '/Raven/ {print $1}')
|
||||
[ $(pamixer --source $device --get-mute) = true ] && micinfo="\ue02b ^c#161616^^b#fd4285^MM^d^" || micinfo="\ue02a on"
|
||||
printf "${volinfo} (${micinfo})"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue