1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

Works for desktop as well now

This commit is contained in:
Ryan Kes 2020-03-09 12:22:42 +01:00
parent 33e5dda5f8
commit fe777d181e

View File

@ -14,7 +14,7 @@ fi
AMIXER=$(amixer sget Master) AMIXER=$(amixer sget Master)
VOLUME=$(echo "$AMIXER" | grep 'Mono:' | awk -F'[][]' '{ print $2 }' | tr -d "%") VOLUME=$(echo "$AMIXER" | grep 'Mono\|Front Right:' | awk -F'[][]' '{ print $2 }' | tr -d "%")
MUTE=$(echo "$AMIXER" | grep -o '\[off\]' | tail -n 1) MUTE=$(echo "$AMIXER" | grep -o '\[off\]' | tail -n 1)
if [ "$MUTE" == "[off]" ]; then if [ "$MUTE" == "[off]" ]; then
ICON=audio-volume-muted ICON=audio-volume-muted