diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2021-07-06 19:02:25 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2021-07-06 19:02:25 +0100 |
commit | 325d8b4ef7a02459172d6b6a423e36d7b3cadb88 (patch) | |
tree | 8543383279142b59510e3f0e5a7920cb58bbb2bf /Scripts/.local/scripts/status/volume | |
parent | 9fa164dc1148c3bab801d636f24873efe673fc3a (diff) | |
download | dotfiles-325d8b4ef7a02459172d6b6a423e36d7b3cadb88.tar.gz dotfiles-325d8b4ef7a02459172d6b6a423e36d7b3cadb88.tar.bz2 dotfiles-325d8b4ef7a02459172d6b6a423e36d7b3cadb88.zip |
(General)~loads of commits, getting ready to port dotfiles to another machine
Diffstat (limited to 'Scripts/.local/scripts/status/volume')
-rwxr-xr-x | Scripts/.local/scripts/status/volume | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Scripts/.local/scripts/status/volume b/Scripts/.local/scripts/status/volume index 87cb121..cbbafbe 100755 --- a/Scripts/.local/scripts/status/volume +++ b/Scripts/.local/scripts/status/volume @@ -1,5 +1,11 @@ #!/usr/bin/env bash sinks="$(pactl list sinks)" vol="$(echo "$sinks" | grep '[0-9]\+%' | sed "s,.* \([0-9]\+\)%.*,\1,;1q")" - -echo " $vol%" +mute="$(echo "$sinks" | grep "Mute: " | sed "s/.*Mute: //g")" +case "$mute" in + "no") + printf "";; + "yes") + printf "";; +esac +echo " $vol%" |