diff options
author | dx <aryadevchavali1@gmail.com> | 2020-06-06 19:35:14 +0100 |
---|---|---|
committer | dx <aryadevchavali1@gmail.com> | 2020-06-06 19:35:14 +0100 |
commit | 6c02553c34fccfe7c7f2d31b91c6d086f3730a1e (patch) | |
tree | 43d0fdf06cef8ea3ba6303a936d7e0dbe8669e72 /Scripts/.local/scripts | |
parent | 4b84e3a3d6b2e2d0bc2240e9d60b1b592baf7f88 (diff) | |
download | dotfiles-6c02553c34fccfe7c7f2d31b91c6d086f3730a1e.tar.gz dotfiles-6c02553c34fccfe7c7f2d31b91c6d086f3730a1e.tar.bz2 dotfiles-6c02553c34fccfe7c7f2d31b91c6d086f3730a1e.zip |
+mpc volume script to get the volume of mpc
Diffstat (limited to 'Scripts/.local/scripts')
-rwxr-xr-x | Scripts/.local/scripts/mpc_volume | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Scripts/.local/scripts/mpc_volume b/Scripts/.local/scripts/mpc_volume new file mode 100755 index 0000000..c8d2031 --- /dev/null +++ b/Scripts/.local/scripts/mpc_volume @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +if [[ $# -eq 0 ]] +then + echo "$(mpc volume | tr -d 'volume: ' | tr -d '%')" +elif [[ $# -eq 1 ]] +then + mpc volume "$(echo $1 | tr -d '%')" +fi |