aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--SXHkD/.config/sxhkd/sxhkdrc14
-rwxr-xr-xScripts/.local/scripts/spotify_volume (renamed from Scripts/.local/scripts/mpc_volume)2
2 files changed, 5 insertions, 11 deletions
diff --git a/SXHkD/.config/sxhkd/sxhkdrc b/SXHkD/.config/sxhkd/sxhkdrc
index 023fa9d..d15357a 100644
--- a/SXHkD/.config/sxhkd/sxhkdrc
+++ b/SXHkD/.config/sxhkd/sxhkdrc
@@ -53,20 +53,14 @@ super + F12
# Music and volume
super + F{6,7,8}
- mpc -q {prev,toggle,next}; \
- notify-send "MPD: Track $(mpc --format '%title%' | head -1)";
+ playerctl -a {previous,play-pause,next};
-XF86Audio{Prev,Next}
- mpc -q {prev,next}; \
- notify-send "MPD: Track $(mpc --format '%title%' | head -1)";
-
-super + {_,shift + }F{9,10}
- kill -44 $(pidof dwmblocks); \
- {pactl set-sink-volume 0,$HOME/.local/scripts/mpc_volume} {-,+}5%;
+XF86Audio{Prev,Play,Next}
+ playerctl -a {previous,play-pause,next};
{_,shift + }XF86Audio{Lower,Raise}Volume
kill -44 $(pidof dwmblocks); \
- {pactl set-sink-volume 0,$HOME/.local/scripts/mpc_volume} {-,+}5%;
+ {pactl set-sink-volume 0,$HOME/.local/scripts/spotify_volume} {-,+}5%;
XF86AudioMute
kill -44 $(pidof dwmblocks); \
diff --git a/Scripts/.local/scripts/mpc_volume b/Scripts/.local/scripts/spotify_volume
index c8d2031..bda2964 100755
--- a/Scripts/.local/scripts/mpc_volume
+++ b/Scripts/.local/scripts/spotify_volume
@@ -5,5 +5,5 @@ then
echo "$(mpc volume | tr -d 'volume: ' | tr -d '%')"
elif [[ $# -eq 1 ]]
then
- mpc volume "$(echo $1 | tr -d '%')"
+ playerctl --player=spotify volume "$(echo $1 | tr -d '%')"
fi