Use media keys to play/pause to either control spotify, vlc or firefox
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
Before I switched to bspwm, I used KDE/Plasma 5. In KDE, I could use my media keys to play/pause, etc in vlc, spotify and even in Firefox with an addon (youtube, netflix, pretty much everything worked). When both VLC, Firefox and Spotify were open, the media keys controlled the last used player, regardless if the window is open or not.
I'd like to get the same functionality in bspwm.
Right now I'm using playerctl -p spotify play-pause
to control spotify, which is bound to XF86AudioPlay in sxhkdrc
. I'd also like to do this with VLC, but playerctl needs to know which player to play/pause, if both are open.
Is there a way to get the same KDE/Plasma functionality for both VLC, Firefox and Spotify? If not, is there a way to determine which player was last active? That way I could write a script to play/pause only the last active player.
d-bus vlc mediaplayer
add a comment |Â
up vote
0
down vote
favorite
Before I switched to bspwm, I used KDE/Plasma 5. In KDE, I could use my media keys to play/pause, etc in vlc, spotify and even in Firefox with an addon (youtube, netflix, pretty much everything worked). When both VLC, Firefox and Spotify were open, the media keys controlled the last used player, regardless if the window is open or not.
I'd like to get the same functionality in bspwm.
Right now I'm using playerctl -p spotify play-pause
to control spotify, which is bound to XF86AudioPlay in sxhkdrc
. I'd also like to do this with VLC, but playerctl needs to know which player to play/pause, if both are open.
Is there a way to get the same KDE/Plasma functionality for both VLC, Firefox and Spotify? If not, is there a way to determine which player was last active? That way I could write a script to play/pause only the last active player.
d-bus vlc mediaplayer
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Before I switched to bspwm, I used KDE/Plasma 5. In KDE, I could use my media keys to play/pause, etc in vlc, spotify and even in Firefox with an addon (youtube, netflix, pretty much everything worked). When both VLC, Firefox and Spotify were open, the media keys controlled the last used player, regardless if the window is open or not.
I'd like to get the same functionality in bspwm.
Right now I'm using playerctl -p spotify play-pause
to control spotify, which is bound to XF86AudioPlay in sxhkdrc
. I'd also like to do this with VLC, but playerctl needs to know which player to play/pause, if both are open.
Is there a way to get the same KDE/Plasma functionality for both VLC, Firefox and Spotify? If not, is there a way to determine which player was last active? That way I could write a script to play/pause only the last active player.
d-bus vlc mediaplayer
Before I switched to bspwm, I used KDE/Plasma 5. In KDE, I could use my media keys to play/pause, etc in vlc, spotify and even in Firefox with an addon (youtube, netflix, pretty much everything worked). When both VLC, Firefox and Spotify were open, the media keys controlled the last used player, regardless if the window is open or not.
I'd like to get the same functionality in bspwm.
Right now I'm using playerctl -p spotify play-pause
to control spotify, which is bound to XF86AudioPlay in sxhkdrc
. I'd also like to do this with VLC, but playerctl needs to know which player to play/pause, if both are open.
Is there a way to get the same KDE/Plasma functionality for both VLC, Firefox and Spotify? If not, is there a way to determine which player was last active? That way I could write a script to play/pause only the last active player.
d-bus vlc mediaplayer
d-bus vlc mediaplayer
asked 4 mins ago
zjeffer
285
285
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f477823%2fuse-media-keys-to-play-pause-to-either-control-spotify-vlc-or-firefox%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password