Gnome Multimedia Keys
Amarok 1.x Scripts
Score 50%
Description:

This script will allow the use of keyboard multimedia keys in Gnome 2.18 and above (eg. ubuntu feisty/gusty/hardy) to control playback. This includes most multimedia buttons found on many laptops. Support for this was broken due to changes in the handling of keyboard shortcuts by gnome 2.18 and later.

Amarok 2 Version is here: http://www.kde-apps.org/content/show.php?content=103448

Currently supported operations are:
Play/Pause
Pause
Stop
Next Track
Previous Track

Simply run the script, no configuration of the script itself is required. The desired keyboard shortcuts can be configured by selecting "System-->Prefrences-->Keyboard Shortcuts" from the Gnome pannel.

Requires:
python >2.4
python-dbus
libdbus-glib
Last changelog:

10 years ago

0.2: Added checks to make sure we only run on an affected system.
0.3: Locale fix.
0.4: Add configuration dialogue, add checks to avoid multiple instances.
0.5: add gnome 2.21/22 support
0.5.2: locale fix

rahulthewall3000

9 years ago

This works perfectly for me, thanks a ton!

Report

shevegen

10 years ago

This should not be here. It is part of Gnome. If amarok users need that, post it at amarok.

This site is KDE specific, not Gnome specific. For me, this app is useless, and thus I am forced to vote negatively on it. Can we move this away please?

Report

Rinse

10 years ago

This script is for amarok, which is a kde-application.

Who cares if it is meant for the gnome environment, windows environment or even macos.

kde-software can run on all kinds of platforms and desktops, so you can expect to find kde software meant for a specific situation.

Report

skatox

10 years ago

congratulations, good script.

Report

ReMoot

10 years ago

ReMoot can control multiple programs like Xmms, Kmplayer, RhythmBox, Kaffeine, Banshee, Quodlibet, Totem, Xine, Juk, Noatun and Amarok.

Toghether with LinEAK or KlinEAK ReMoot can make your multimedsia keys work for all those apps without the need to remap keys between use.

ReMoot
http://kde-apps.org/content/show.php/ReMoot?content=63140

LinEAK
http://lineak.sourceforge.net/index.php?nav=download

Report

subscribed-lists

10 years ago

Thank you. I just upgraded from FC6 to F7 and lost the Amarok key functions for my Logitech keyboard. After a couple of days, I finally hit the right combination in Google to turn up your script.

Report

ChaosWars

10 years ago

This is www.kde-apps.org. WTF is wrong with people nowadays, are they incapable of reading? Go post this on a GNOME site.

Report

C

browner

10 years ago

It needs to be posted here to be available for download from the Amarok script manager. Gnome users enjoy Amarok too.

Report

AndreSomers

10 years ago

What a crap argument. It's still for GNOME on a KDE website. If Amarok can't find it if not posted here, adapt Amarok instead of bothering KDE users with GNOME stuff. Nothing against GNOME, but I don't see why it should be advertised on a KDE website.

Report

C

browner

10 years ago

I can see your point however I do feel that since the Amarok developers are unwilling/unable to fix this issue until Amarok 2 is rolled out with dbus support an alternative should be provided for Gnome users.
Why post it here? Simply because it gives the script the widest possible exposure to all Amarok users that MAY require it. The first place I searched for a fix was the script manager and had there been one there it would have saved me much time spent digging around. Surly you can sympathise with the Gnome users? If there was a viable alternative I would have taken it.
I'm sorry to have angered anyone and don't mean to insult the KDE crowd. I have total respect for you guys.

Report

csanchisb

10 years ago

Are you really "bothered" with this? Amarok is a KDE app and so this is a script for a KDE _app_, which happens to also run outside the KDE _desktop_. You really should look for a better hobby instead of _bothering_ creative people who write scripts.

Report

bugmenot

10 years ago

Traceback (most recent call last):
File "/home/xavy/.kde/share/apps/amarok/scripts/gnome_media_keys/gnome_media_keys.py", line 30, in ?
if (int(major) < 2) | ((int(major) == 2) & (int(minor) < 17)):
NameError: name 'major' is not defined

Report

bugmenot

10 years ago

if we avoid the error by deleting the check og gnome version ( I use 2.18.2) the following error is obtained:
Traceback (most recent call last):
File "./gnome_media_keys.py", line 38, in ?
object = bus.get_object('org.gnome.SettingsDaemon', '/org/gnome/SettingsDaem on')
File "/var/lib/python-support/python2.4/dbus/bus.py", line 240, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/var/lib/python-support/python2.4/dbus/proxies.py", line 236, in __init_ _
self._named_service = conn.activate_name_owner(bus_name)
File "/var/lib/python-support/python2.4/dbus/bus.py", line 179, in activate_na me_owner
self.start_service_by_name(bus_name)
File "/var/lib/python-support/python2.4/dbus/bus.py", line 277, in start_servi ce_by_name
'su', (bus_name, flags)))
File "/var/lib/python-support/python2.4/dbus/connection.py", line 602, in call _blocking
reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The na me org.gnome.SettingsDaemon was not provided by any .service files

Report

s3tsk8

10 years ago

I get the same error


version 0.1 works..
but this new one I couldn't even run the script

Report

C

browner

10 years ago

Sorry about that. Someone has kindly pointed out to me that this error occurs on systems with a non english locale due to some errors in my code. this was an oversight on my part and should now be fixed in v0.3 Thanks go to Jean-Luc Coulon for his fix.

Report

BorgQueen

10 years ago

I agree, the script is for a KDE app, helping it to intergrate into a alien environment.

Report

Hyperion

9 years ago

Yes in this case it might be ok! But I can understand that people are quickly annoyed by NON-KDE-apps! We have so much alien applications here, which have nothing todo with KDE, that you just wanna kick these tools out here.

However in this case I see the direct relation to KDE.

Unfortunately most other alien-apps argue just like this: "U can run it under KDE too!" - which is - to be honest - just crap! So we have a lot of GTK and Java-Apps here around ... and no "inform the admin"-Button!!! That would be a great feature...

Report

10 years ago

0.2: Added checks to make sure we only run on an affected system.
0.3: Locale fix.
0.4: Add configuration dialogue, add checks to avoid multiple instances.
0.5: add gnome 2.21/22 support
0.5.2: locale fix

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
0.5.2
updated Apr 25 2009
added Jun 22 2007
downloads today
0
page views today 0