aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/status/volume
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2021-07-10 17:11:33 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2021-07-10 17:11:33 +0100
commitc6163358090bc5c4123f634f3bdd91c987c78aa4 (patch)
treee16307bd396db687e18803c02db32937b159f96b /Scripts/.local/scripts/status/volume
parentbe603ca4a273d60992130c658a182380a7984f7c (diff)
downloaddotfiles-c6163358090bc5c4123f634f3bdd91c987c78aa4.tar.gz
dotfiles-c6163358090bc5c4123f634f3bdd91c987c78aa4.tar.bz2
dotfiles-c6163358090bc5c4123f634f3bdd91c987c78aa4.zip
(Scripts/status)~few minor edits for functionality and cleanliness
Status scripts needed some updating for dwmblocks, so did it.
Diffstat (limited to 'Scripts/.local/scripts/status/volume')
-rwxr-xr-xScripts/.local/scripts/status/volume11
1 files changed, 1 insertions, 10 deletions
diff --git a/Scripts/.local/scripts/status/volume b/Scripts/.local/scripts/status/volume
index cbbafbe..eedd657 100755
--- a/Scripts/.local/scripts/status/volume
+++ b/Scripts/.local/scripts/status/volume
@@ -1,11 +1,2 @@
#!/usr/bin/env bash
-sinks="$(pactl list sinks)"
-vol="$(echo "$sinks" | grep '[0-9]\+%' | sed "s,.* \([0-9]\+\)%.*,\1,;1q")"
-mute="$(echo "$sinks" | grep "Mute: " | sed "s/.*Mute: //g")"
-case "$mute" in
- "no")
- printf "";;
- "yes")
- printf "";;
-esac
-echo " $vol%"
+echo "" $(pamixer --get-volume-human)