volumeNotificaton.sh (245B)
1 #! /bin/sh 2 3 output=$(amixer get Master | grep -c '\[on\]') 4 volume=$(amixer get Master | grep 'Front Left:' | awk -F'[][]' '{print $2}') 5 if [ "$output" -eq 0 ]; then 6 notify-send "Volume" " Muted" 7 else 8 notify-send "Volume" " $volume" 9 fi