Showing posts with label gmusicbrowser. Show all posts
Showing posts with label gmusicbrowser. Show all posts

Monday, November 28, 2011

Use multimedia keys with gmusicbrowser

gmusicbrowser is the default music player for Xubuntu 11.10. Among its main features are the support for large libraries, customizable window layouts, a powerful browser which doesn't interfere with the playlist and a tray icon with player controls.

There is a plugin called "Gnome mmkeys" that allows to control playback with keyboard's multimedia keys, albeit not compatible with Xfce4. If you try to enable the plugin, the message below will be shown:

Error: org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SettingsDaemon was not provided by any .service files

So I created a little bash script to control the gmusicbrowser playback and another one for assigning each function with the correspondent multimedia key.

Install

Open a terminal window and run (it'll need admin permissions for installing gmusicbrowser-mmkeys.sh to /usr/local/bin/):

wget -q -O /tmp/gmb.sh https://goo.gl/18uaAO && bash /tmp/gmb.sh install

The multimedia keys should now be working. Enjoy.

Uninstall

Open a terminal window and run (it'll ask for admin permissions for removing the gmusicbrowser-mmkeys.sh script):

gmusicbrowser-mmkeys.sh uninstall

Note: The installer has been updated to install gmusicbrowser-mmkeys.sh in /usr/local/bin. If you install it elsewhere, please remove manually.

References

gmusicbrowser man page (oneiric)
Xfce Settings (xfconf-query reference)