playerctl icon indicating copy to clipboard operation
playerctl copied to clipboard

Feature: Raise player

Open Nickwiz opened this issue 1 year ago • 0 comments

Would be nice if one could raise players, especially when playing a tab among hundreds in browsers :P.

I can use:

gdbus call --session --dest org.mpris.MediaPlayer2.firefox.instance1234 \
--object-path /org/mpris/MediaPlayer2 --method org.mpris.MediaPlayer2.Raise

Which, at least on Linux, results in the active tab being raised and focused.

Had a quick look at the source and tried to add it by simply copying most of pause code but quickly realized it was based on "wrong" interface; MediaPlayer2.Player vs MediaPlayer2. Would have to read more of the code to even have a probable inkling to add it.

  • Raise: https://specifications.freedesktop.org/mpris-spec/2.2/Media_Player.html#Method:Raise
  • CanRaise: https://specifications.freedesktop.org/mpris-spec/2.2/Media_Player.html#Property:CanRaise

Nickwiz avatar Jun 30 '23 08:06 Nickwiz