]> git.armaanb.net Git - bin.git/commitdiff
Status: switch to using `cut` to parse volume
authorArmaan Bhojwani <me@armaanb.net>
Wed, 3 Feb 2021 14:19:11 +0000 (09:19 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Wed, 3 Feb 2021 14:19:11 +0000 (09:19 -0500)
status

diff --git a/status b/status
index 46d9b639e3368c0f503a8313109ffd175e09913b..9ebab1c27a3b8a0a996526649bcdf68067462fa1 100755 (executable)
--- a/status
+++ b/status
@@ -10,7 +10,7 @@ power_set() {
 }
 
 volume_set() {
-  echo "$(amixer sget Master | tail -n 1 | tail -c +21)"
+  echo "$(amixer sget Master | tail -n 1 | cut -d " " -f 7-)"
 }
 
 notify-send "$(time_set)" "$(power_set)\n$(volume_set)"