From 018007d1a293b7a33dd90b239de36a6b23dd1f03 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Sat, 9 Jul 2022 15:04:46 +0530 Subject: playerctl spotify universal play/pause prev/next keybindings --- .config/sxhkd/sxhkdrc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to '.config') diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index de06c13..9a29cb7 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -25,8 +25,14 @@ XF86Audio{Raise,Lower}Volume #Toggle play/pause in spotify (universal) -#super + F4 -# playerctl -p spotify play-pause +XF86AudioPlay + playerctl -p spotify play-pause + +# Change tracks spotify only + +XF86Audio{Prev,Next} +playerctl -p spotify {previous,next} + #super + ; #dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause @@ -36,11 +42,6 @@ XF86Audio{Raise,Lower}Volume #super + {F3,F5} #spotifyvol{inc,dec}.py -# Change tracks spotify only - -#super + ctrl {Left,Right} -#playerctl -p spotify {previous,next} - ################ # Applications # -- cgit v1.2.3