+mpc volume script to get the volume of mpc
This commit is contained in:
9
Scripts/.local/scripts/mpc_volume
Executable file
9
Scripts/.local/scripts/mpc_volume
Executable 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
|
||||||
Reference in New Issue
Block a user