]> git.armaanb.net Git - bin.git/blobdiff - audio-set
Audio-set: switch to cut for parsing volume
[bin.git] / audio-set
index bce49e93084b0459aef83c0be3b80d1c7320c5c0..e916889f07a2b3401a545826e87be82568415a0c 100755 (executable)
--- a/audio-set
+++ b/audio-set
@@ -9,4 +9,4 @@ else
   pactl set-sink-mute 0 toggle
 fi
 
-notify-send "Volume" "$(amixer sget Master | tail -n 1 | tail -c +21)" -t 1000
+notify-send "Volume" "$(amixer sget Master | tail -n 1 | cut -d ' ' -f 7-)" -t 1000