Page 1 of 1

Media Key handles?

Posted: Wed Dec 29, 2010 8:14 am
by Figlesquidge
Having installed Guayadeque onto Ubuntu10.10 running Gnome, I was impressed with it. I've switched desktop engine to my preference - KDE. However, KDE maps the media keys (play-pause/stop/forward/back) to Amarok. Removing this link, but I haven't been able to add Guayadeque instead.
I was wondering what command line instructions I should associate with these keys? Which script(s) should I run, and with what arguments?

Media Key handles?

Posted: Wed Dec 29, 2010 11:52 am
by anonbeat

Media Key handles?

Posted: Wed Dec 29, 2010 3:06 pm
by Figlesquidge
Thanks very much. Sorry I didn't see that, didn't realise that's what cli was.

For anyone with the same issue, on 10.10 you open
System Settings->Shortcuts&Gestures->Custom Shortcuts
Then Make a new group (Edit->New Group) for guayadeque.
use the link anonbeat gave above for the functions, then its as simple as adding them as new global shortcuts with Edit->New->Global Shortcut->Command
----

I do have a slight problem running it at the moment though. All shortcuts now set up and working, but the play/pause option is actually play/stop?

Thanks very much for the lovely little player, really like it.

Media Key handles?

Posted: Sat Jan 01, 2011 2:27 pm
by anonbeat
froestel wrote: Be aware that you can only leave the Pause-status by again pressing Pause, any other key (like prev, next, stop) will cause guayadeque to freeze. But this isn't specific to hotkeys as documented here:
http://guayadeque.org/forums/index.php? ... ussion/115
Are you using latest svn ? this problem should be fixed in current svn version and I cant reproduce it on my system. Could you please confirm it ?

Thanks for your help

Media Key handles?

Posted: Sat Jan 08, 2011 9:20 am
by Lysias
I had a slightly different approach to this. I used the Global Hotkey utility's ability to send DBUS commands directly:

http://wwww.ubuntuforums.org/showpost.p ... count=2091

Media Key handles?

Posted: Wed Jan 26, 2011 1:53 am
by Jogarem
Hello anonbeat and all the others.

Thanks for the link to the DBSU commands!!!!! That was REALLY important because now the hotkeys are working for me very well. I had the same issue mentioned here (play/stop/pause problem) when I use the mentioned DBUS command at the above link. The not working command is:

To Play / Pause (will play/stop)
dbus-send --print-reply --type=method_call --dest=org.mpris.guayadeque /Player org.freedesktop.MediaPlayer.Play

--> this works NOT for me to pause a track. When I use this command the track plays when pressed the first time and stopped when pressed (not paused) the second time.

The solution working for me is simply to use the following command instead:

To Play / Pause (will play/pause)
dbus-send --print-reply --type=method_call --dest=org.mpris.guayadeque /Player org.freedesktop.MediaPlayer.Pause

I'm using Kubuntu Maverick (10.10) and the latest guayadeque SVN version (1456~maverick-1).
Maybe this helps someone out ;-)

Media Key handles?

Posted: Wed Jan 26, 2011 2:22 am
by anonbeat
If you see the MPRIS specifications
http://xmms2.org/wiki/MPRIS#Play
http://xmms2.org/wiki/MPRIS#Pause
you will see that Play and Pause method are working as expected

Thanks for your help

Want to add that guayadeque should support the global mutimedia keys defined. If your keyboard dont support that keys you can redefine it via System->Preferences->Key bindings editor

dont knwo if that is the proper name as I have it in spanish