aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts/.local')
-rwxr-xr-xScripts/.local/scripts/mpc_volume9
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