aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/spotify_volume
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts/.local/scripts/spotify_volume')
-rwxr-xr-xScripts/.local/scripts/spotify_volume9
1 files changed, 9 insertions, 0 deletions
diff --git a/Scripts/.local/scripts/spotify_volume b/Scripts/.local/scripts/spotify_volume
new file mode 100755
index 0000000..bda2964
--- /dev/null
+++ b/Scripts/.local/scripts/spotify_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
+ playerctl --player=spotify volume "$(echo $1 | tr -d '%')"
+fi