From 78d0281e29d31b81dd5233d7eb6bcc8ff4a982f3 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 10 Mar 2021 16:06:09 +0000 Subject: (SXHkD)~playerctl controls instead of mpc based commands playerctl is a bit more generic and makes it easier to script interactions. --- Scripts/.local/scripts/mpc_volume | 9 --------- Scripts/.local/scripts/spotify_volume | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) delete mode 100755 Scripts/.local/scripts/mpc_volume create mode 100755 Scripts/.local/scripts/spotify_volume (limited to 'Scripts') diff --git a/Scripts/.local/scripts/mpc_volume b/Scripts/.local/scripts/mpc_volume deleted file mode 100755 index c8d2031..0000000 --- a/Scripts/.local/scripts/mpc_volume +++ /dev/null @@ -1,9 +0,0 @@ -#!/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 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 -- cgit v1.2.3-13-gbd6f