]> git.armaanb.net Git - bin.git/commitdiff
Audio-set: switch to cut for parsing volume
authorArmaan Bhojwani <me@armaanb.net>
Wed, 3 Feb 2021 15:19:48 +0000 (10:19 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Wed, 3 Feb 2021 15:19:48 +0000 (10:19 -0500)
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