From a024e3cde10f3b712cdb2e046e4503df9282a444 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 17 Nov 2019 23:11:54 -0500 Subject: [PATCH] sxhkd: bind media keys to spotify --- config/sxhkd/sxhkdrc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/config/sxhkd/sxhkdrc b/config/sxhkd/sxhkdrc index 396eaddd..8dfa5c1e 100644 --- a/config/sxhkd/sxhkdrc +++ b/config/sxhkd/sxhkdrc @@ -72,9 +72,11 @@ XF86AudioRaiseVolume amixer -q set Master 10%+ unmute XF86Audio{Play,Pause} - mpc -q toggle -XF86Audio{Prev,Next} - mpc -q {prev,next} + dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause +XF86AudioNext + dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next +XF86AudioPrev + dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous # X86Search