2019-09-07 17:42:18 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-10-14 03:17:34 +02:00
|
|
|
vol="$(pulsemixer --get-volume | awk '{print $1}')"
|
2019-09-07 17:42:18 +02:00
|
|
|
|
2023-10-13 23:24:38 +02:00
|
|
|
if [ "$vol" -eq "0" ]; then
|
2023-10-15 05:55:51 +02:00
|
|
|
icon=""
|
2023-10-13 23:24:38 +02:00
|
|
|
elif [ "$vol" -gt "70" ]; then
|
|
|
|
icon=""
|
2020-03-29 11:27:53 +02:00
|
|
|
else
|
2020-05-29 18:31:15 +02:00
|
|
|
icon=""
|
2020-03-29 11:27:53 +02:00
|
|
|
fi
|
|
|
|
|
2023-10-15 05:55:51 +02:00
|
|
|
[ "$(pulsemixer --get-mute)" = "1" ] && icon="" && vol="-"
|
2023-10-13 23:24:38 +02:00
|
|
|
|
|
|
|
if amixer get Capture | tail -2 | grep -q '\[on\]'; then
|
|
|
|
mic=""
|
|
|
|
else
|
2023-10-15 05:55:51 +02:00
|
|
|
mic=""
|
2023-10-13 23:24:38 +02:00
|
|
|
fi
|
|
|
|
|
2023-10-14 02:31:34 +02:00
|
|
|
printf "%s %s %s\\n" "$mic" "$icon" "$vol%"
|