diff options
Diffstat (limited to 'Scripts/.local/scripts/mpc_volume')
-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 |