You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use playerctl play-pause to play/pause sound. I have it in one of my automation scripts and I had no problem with it whatsoever.
I been using spotify on the browser for a while and it worked fine as expected; however, I recently downloaded the Spotify application and it stopped working.
I can get it to work with playerctl -p spotify play-pause but that is inconvenient and breaks my F4 (play-pause key) and my scripts.
I would need to rewrite my script to support the Spotify app now, and I don't really want to do that.
The situation before was:
I play a youtube video
I can play-pause the video with playerctl play-pause
I play music on Spotify web app
I can play-pause the video with playerctl play-pause
It basically remembered the last thing I was playing.
The situation now is:
I have to use playerctl -p spotify play-pause to explicitly play/pause Spotify desktop app, if i use playerctl play-pause, it would work like before but excluding the Spotify desktop app.
My question is, am I missing something that would make both the desktop app and my browser work with a single command, such that I dont have to rewrite my scripts? Or Do I have no choice but to rewrite them?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I use
playerctl play-pauseto play/pause sound. I have it in one of my automation scripts and I had no problem with it whatsoever.I been using spotify on the browser for a while and it worked fine as expected; however, I recently downloaded the Spotify application and it stopped working.
I can get it to work with
playerctl -p spotify play-pausebut that is inconvenient and breaks my F4 (play-pause key) and my scripts.I would need to rewrite my script to support the Spotify app now, and I don't really want to do that.
The situation before was:
playerctl play-pauseplayerctl play-pauseIt basically remembered the last thing I was playing.
The situation now is:
I have to use
playerctl -p spotify play-pauseto explicitly play/pause Spotify desktop app, if i useplayerctl play-pause, it would work like before but excluding the Spotify desktop app.My question is, am I missing something that would make both the desktop app and my browser work with a single command, such that I dont have to rewrite my scripts? Or Do I have no choice but to rewrite them?
Beta Was this translation helpful? Give feedback.
All reactions