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

Support for media keys #84

Closed
SirLeto opened this issue Feb 1, 2011 · 6 comments
Closed

Support for media keys #84

SirLeto opened this issue Feb 1, 2011 · 6 comments

Comments

@SirLeto
Copy link

SirLeto commented Feb 1, 2011

Support for media buttons. (Play, pause, next, bookmark, like, ban) I don't know much about programing, but I'll see if there is a way to implement this while using a wiimote as the remote.

@ZigZagJoe
Copy link

I'm pretty sure this is what the eventcmd mechanism was meant to be used for.

@PromyLOPh
Copy link
Owner

It's the fifo that you're looking for, check the manpage.

Hm, I'll close this issue as "won't fix". You're on your own if you need support for specific devices. But feel free to send a pull request/reopen this issue if you got it working and want to share your solution.

@parkerlreed
Copy link

I have a method setup so scripts get called when I press my media keys. In the scripts it just echos the characters to the ctl fifo. What would be nice is to have pianobar integrate into the media key system and then maybe have some option to enable it in the config. (Would be disabled by default just in case a system doesn't support it.) This would make it so I can remap my media keys back to the default controls and then just use them in whatever application I happen to be using (pianobar, spotify, rhythmbox)

@PromyLOPh
Copy link
Owner

Is there a specification somewhere? Global hotkeys (I believe media keys
belong to this set) are usually the desktop environment’s
responsibility.

@parkerlreed
Copy link

The media keys are usually mapped to functions in the desktop environment
(using the keyboard manager)

If I remember correctly they send out a DBUS call that can then be listened
for.

After some Googling around, I think this is what most things integrate.

http://specifications.freedesktop.org/mpris-spec/latest/

And here is something that mentions MPRIS but then notes that it somehow
intercepts the basic media keys sent by gnome (other DEs may implement this)

https://github.com/jreese/spotify-gnome

I know just enough t get myself in trouble. I usually find the bits and
pieces but don't yet have the knowledge to stitch it all together. Thanks
for the reply.

On Tue, Oct 29, 2013 at 1:55 PM, PromyLOPh notifications@github.com wrote:

Is there a specification somewhere? Global hotkeys (I believe media keys
belong to this set) are usually the desktop environment’s
responsibility.


Reply to this email directly or view it on GitHubhttps://github.com//issues/84#issuecomment-27326894
.

@PromyLOPh
Copy link
Owner

http://specifications.freedesktop.org/mpris-spec/latest/
That’s what I found too. It exposes play/pause commands, but I’m not
sure who actually uses these. Looks nice, but right now I don’t have the
time to investigate if that’s worth implementing or not.

https://github.com/jreese/spotify-gnome
So Gnome’s MediaKeys is yet another interface. I won’t add support for
that (DE-specific), but writing a listener/wrapper for pianobar should
not be too difficult with this example.

This issue was closed.
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

4 participants