Upload scripts
This commit is contained in:
parent
6e5095f3cf
commit
a54da6dbbe
15 changed files with 70 additions and 37 deletions
|
|
@ -7,20 +7,23 @@ esac
|
|||
|
||||
mute=$(amixer get Master | sed -n 5p | sed -E 's/.*\[//;s/\]//')
|
||||
volume=$(amixer get Master | sed -n 5p | sed -E 's/[^\[]*\[//;s/\].*//')
|
||||
head=$(amixer | grep -m 1 'Front Right:' | sed -E 's/.+\[/[/')
|
||||
icon=""
|
||||
phones=$(amixer | grep -m 1 'Front Right:' | sed -E 's/.+\[/[/')
|
||||
case $mute in
|
||||
|
||||
on)
|
||||
mute="^c#bbbbbb^"
|
||||
if [ $head == "[off]" ]; then
|
||||
icon=""
|
||||
if [ $phones == "[off]" ]; then
|
||||
icon=""
|
||||
else
|
||||
icon=""
|
||||
fi
|
||||
;;
|
||||
off)
|
||||
mute="^c#F75341^"
|
||||
if [ $head == "[off]" ]; then
|
||||
icon=""
|
||||
if [ $phones == "[off]" ]; then
|
||||
icon=""
|
||||
else
|
||||
icon="ﳌ"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue