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:
parent
33e5dda5f8
commit
fe777d181e
@ -14,7 +14,7 @@ fi
|
||||
|
||||
|
||||
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)
|
||||
if [ "$MUTE" == "[off]" ]; then
|
||||
ICON=audio-volume-muted
|
||||
|
Loading…
Reference in New Issue
Block a user