aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2021-03-10 16:08:32 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2021-03-10 16:08:32 +0000
commit68498dd7c5fb29b940005ddf6259ab34ec6e4b9f (patch)
tree499e9dd7a33da7466b73be2cbc7ee1df51da9b08 /Scripts/.local
parent78d0281e29d31b81dd5233d7eb6bcc8ff4a982f3 (diff)
downloaddotfiles-68498dd7c5fb29b940005ddf6259ab34ec6e4b9f.tar.gz
dotfiles-68498dd7c5fb29b940005ddf6259ab34ec6e4b9f.tar.bz2
dotfiles-68498dd7c5fb29b940005ddf6259ab34ec6e4b9f.zip
(Scripts)~volume: just display volume of machine rather than mpc
Diffstat (limited to 'Scripts/.local')
-rwxr-xr-xScripts/.local/scripts/status/volume8
1 files changed, 1 insertions, 7 deletions
diff --git a/Scripts/.local/scripts/status/volume b/Scripts/.local/scripts/status/volume
index c8c3dc5..87cb121 100755
--- a/Scripts/.local/scripts/status/volume
+++ b/Scripts/.local/scripts/status/volume
@@ -1,11 +1,5 @@
#!/usr/bin/env bash
sinks="$(pactl list sinks)"
vol="$(echo "$sinks" | grep '[0-9]\+%' | sed "s,.* \([0-9]\+\)%.*,\1,;1q")"
-mpc_vol="$($HOME/.local/scripts/mpc_volume)"
-if [[ $mpc_vol == "n/a" ]]
-then
- echo " $vol%"
-else
- echo " $vol% $mpc_vol%"
-fi
+echo " $vol%"