Forums Search Login Register
Login
Username
Password
New Posts Todays Posts Find Users Posts Unanswered Threads Help Mark Forums as Read

Thread Options  Subscribe to this thread Subscribed Users  Add Reply 
Posts: 1,133
Trophies:
1
Annoyed that you can't use your keyboard multimedia keys (play, pause, previous, next) in XFCE/Xubuntu?

Here's an easy solution. Actually, this method will let you use any key combination as if it were a multimedia key, so if you prefer SUPER+P for "pause," that will work, too. Yay!

This works for any application that supports "GNOME Multimedia Keys." In effect, it emulates the GNOME interface without actually having GNOME.

1. Download mkd.py.

2. Make it executable. (chmod +x mkd.py)

3. Settings Manager -> Session and Startup -> Application Autostart. Add a new item and call it "MediaKeys Daemon". The command should be the full path to mkd.py plus the "-d" switch. In my case, it looked like this: "/Depot/Scripts/mkd.py -d".

4. Settings Manager -> Keyboard -> Application Shortcuts. Let's add a shortcut for the "pause" key. The command is again the full path, but this time with the "-a" switch. In my case, it looked like this: "/Depot/Scripts/mkd.py -a". For the key, press the "pause" key on your keyboard (or any other key combination you prefer).

Repeat step #4 for all multimedia keys. Supported switches:

-p Play
-a Pause
-s Stop
-n Next
-p Previous

That's it! Log out, log in again, and the daemon should have been started with your keys properly mapped. Supported application will respond correctly.
03-15-2013, 12:20 AM
Reply
Subscribe to this thread Subscribed Users  Add Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Scanner support for Raven Original keiraleach 0 2 09-26-2020 01:01 PM
Last Post: keiraleach
  [xubuntu] In emergency mode after installing windows and running Boot-Repair medoebler82 0 4 09-23-2020 01:38 PM
Last Post: medoebler82
  [xubuntu] Autologin doesn't work bfrankgonzaluuu 0 7 09-17-2020 12:42 PM
Last Post: bfrankgonzaluuu
  [xubuntu] Smart phone will only connect for calls & audio with Bluetooth qkathlinewillish 0 17 09-04-2020 06:44 PM
Last Post: qkathlinewillish
  [xubuntu] Issue with VLC and SMB network paths benitooshiro 0 16 08-31-2020 02:12 PM
Last Post: benitooshiro
  [xubuntu] Can't open ZOOM client ogerardosandovaln 0 16 08-27-2020 08:20 PM
Last Post: ogerardosandovaln
  [xubuntu] how to install this theme xkentonhenslyyy 0 16 08-25-2020 09:11 AM
Last Post: xkentonhenslyyy
  [xubuntu] Laptop shuts down at suspend attempt FrancheskaF 0 16 08-09-2020 11:45 PM
Last Post: FrancheskaF
  Blank screen at random intervals, all operating systems (xubuntu 20.04, Windows 10) xkentonhenslyyy 0 22 07-13-2020 11:34 PM
Last Post: xkentonhenslyyy
  [xubuntu] Double directory listing in Thunar vbasilshawh 0 21 07-13-2020 02:37 PM
Last Post: vbasilshawh

Forum Jump:



User(s) browsing this thread: 1 Guest(s)



Contact Us Privacy Policy Top RSS
Forum Software By: MyBB, © 2002-2020