Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to ignore specific player(s) #2

Closed
ceribik opened this issue May 24, 2014 · 6 comments
Closed

Add option to ignore specific player(s) #2

ceribik opened this issue May 24, 2014 · 6 comments
Milestone

Comments

@ceribik
Copy link

ceribik commented May 24, 2014

It would be nice to have an option to ignore certain players, e.g. VLC.

@acrisci
Copy link
Member

acrisci commented May 26, 2014

You can target a particular player with the --player=PLAYER command-line flag. For instance:

playerctl --player=spotify play

You can see the available players that are running with dbus-send --session --dest=org.freedesktop.DBus --type=method_call --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames and using the name like org.mpris.MediaPlayer2.[PLAYER]

Is that what you had in mind, or did you want some other kind of feature?

@ceribik
Copy link
Author

ceribik commented May 26, 2014

I want the opposite of that. E.g. say I have VLC open and another media player (I use more than one), I want to be able to control anything other than VLC. Alternatively, a way to specify multiple players would be nice (although in retrospect, I suppose you can just run playerctl multiple times)

@vivien
Copy link

vivien commented May 26, 2014

I think managing whitelist and blacklist may cause headaches. Specifying multiple players as @ceribik mentioned, would be more intuitive. The simplest usage I have in mind would be to specify the --player option multiple times:

playerctl --player xmms2 --player spotify

@acrisci
Copy link
Member

acrisci commented May 27, 2014

I think something like that would make sense for the commands. It should probably send the command to each player specified by the switch.

However, it would be less useful for queries, such as for metadata and volume. I'm not sure how to best handle that case.

@ceribik
Copy link
Author

ceribik commented May 27, 2014

You could always just make it only usable for the control commands.

@acrisci
Copy link
Member

acrisci commented Oct 8, 2018

Ok, I'm going to do a --ignore-player flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants