+mpc volume script to get the volume of mpc

This commit is contained in:
dx
2020-06-06 19:35:14 +01:00
parent 4b84e3a3d6
commit 6c02553c34

View File

@@ -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