Upload scripts

This commit is contained in:
Samuel Webb 2025-01-07 17:57:17 -05:00
parent 6e5095f3cf
commit a54da6dbbe
15 changed files with 70 additions and 37 deletions

View file

@ -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