KDE and MPRIS plugin

From Exaile

Jump to: navigation, search

Exaile 0.2 has X Multimedia keys plugin which works with any desktop environment.

How to configure global shortcuts to control Exaile from KDE

First, you have to enable MPRIS plugin in Exaile:


Image:KDE_config_screenie1.png


Then, go to K menu -> System -> System Settings (that's for KDE 4, in KDE 3 it's called Control Panel) Go to Input Actions:


Image:KDE_config_screenie2.png


Right-click in shortcuts area, and select "New global shortcut" -> "D-Bus command".


Click "Shortcut" button, then press the key combination you want to control Exaile.
In "Remote Application" field, enter "org.mpris.exaile"
In "Remote Object" field, enter "/Player"
In "Function" field, enter "org.freedesktop.MediaPlayer.Play"
Leave "Arguments" field empty


Create more shortcuts with different actions - put "Pause", "Stop", "Next", or "Prev" instead of "Play" in "Function" field.


Image:KDE_config_screenie3.png


If you use KDE3 and cannot create D-Bus command shortcut, you can choose "Add new shell command", and as command specify:

"dbus-send --type=method_call --dest=org.mpris.exaile /Player org.freedesktop.MediaPlayer.Play"
Personal tools