NotifyAmarok (Gnome)
Amarok 2.x Scripts
Score 46%
Description:

Alternative OSD through Gnome Notification Daemon

This script shows information about the currently played track as a notification using a notification daemon that implements the freedesktop.org dbus interface (e.g. libnotify or notify-osd). It is intended to replace Amaroks own OSD, so its recommend to deactivate this via the configuration menu.

Dependings:
* Amarok 2.x
* notify-osd (recommend) or libnotify-bin
* imagemagick
(if you use libnotify)

Some example strings for the configuration are available on my blog: http://mantis.blogsport.de/2009/07/08/notifyamarok-configuration/

UPDATE (1.11.09):
ubuntu karmic (9.10):

Due to some changes in notify-osd for karmic some issue evolved concerning amarok notifications:
1. The update seems to have become slower which first of all sometimes causes empty notifications.
2. Newlines in the title are prevented by design now.
3. The destruction of notifications stopped working so there is an additional standard duration without update after the duration time thats set in the NotifyAmarok configuration.
As I unfortunately dont have time for this project at the moment I most likely wont fix this in the near future. Sorry!

KDE 4.3:
KDE 4.3 now support the freedesktop.org specifications, but unfortunately no smooth update. If you are using KDE, i recommend you to use thesalus' amaroknotify (http://www.kde-apps.org/content/show.php/amaroKnotify?content=103197), which provides nearly the same functionality now, but is developed for KDE.
Last changelog:

8 years ago

1.0
Major development step with stunning new features ;)
* Full Configurable Notification Title, Body and Duration with all song information available and nice unicode symbols
* A nice Help Window that (i hope) explains the configuration accurately
* set Keybinding to trigger a notification when ever you wonder which song is playing atm (though not very straightforward yet) see "Questions and Answers" for Details
* finally just using the same cover images Amarok does without searching for fitting covers
* new code concept/structure that benefits future development of more new features
* now works on Amarok 2.1 Beta as well

Hyperion1984

8 years ago

The download link for NotifyAmarok 0.4.1 leads to version 0.3.

Also, for unknown reasons, sometimes the script doesn't seem to be able to fetch the album cover.

Report

C

meerkat

8 years ago

1. thats actually the version 0.4.1, its just the wrong version number in the script.spec (sorry for that)
2. at the moment the cover is taken from the amarok cover folder (if there is one with the right hashcode), or the folder where the music file is stored (if there is any image-file at all). if there is no cover show in notification but in amarok there is, that can be caused for example by changed tags since the cover storage or manual assignment of a file in a different folder.
as i have found out in the meantime how to simply use exactly the same image file amarok uses i will fix that in the next release, but that will take some time as im really busy at the moment.

Report

Hyperion1984

8 years ago

1- Thanks for the info

2- By looking more precisely in amarok "albumcovers" folder, I found out two different folders. The first one, "large", is composed of album covers directly fetched with amarok while the second one, "tagcover", contains covers from the song tag. Covers from this second folder are not displayed by NotifyAmarok.

Report

C

meerkat

8 years ago

ok, thanks for the hint, thats easy to include (if the filenames there are calculated the same way). please test if it works with the new version.

Report

Hyperion1984

8 years ago

Thanks for the fast update though it doesn't seem to work. I'm a little bit busy right now, but I'll try to do further tests.

Report

C

meerkat

8 years ago

The new version should solve this problem, as the cover path is now directly taken from Amaroks DBus interface.

Report

Hyperion1984

8 years ago

Nice Job! It works perfectly and the new look is awesome.

Report

lacrimstein

8 years ago

Is Amarok 1.4 going to be supported?

Report

C

meerkat

8 years ago

thats not planned at the moment and i dont think it will. it would mean rewriting half of the code which uses the new amarok qt api. besides there are already two notification scripts for Amarok 1.4:
http://www.kde-apps.org/content/show.php/Amarok+libnotify?content=75979
http://www.kde-apps.org/content/show.php/amarok+libnotify?content=49372

Report

browner

8 years ago

Does exactly what it says on the tin without any fuss. Really helps integration with the Gnome desktop :)

Report

browner

8 years ago

Couple of suggestions:
1) When pressing stop or exiting amarok the current song is displayed first before the stop message. I think as it triggers both Amarok.Engine.trackChanged and Amarok.Engine.trackFinished?

2) When rapidly skipping two or three tracks the notifications come sequentially which leads to rather a long delay. Is it possible to not wait for one notification to disappear before submitting the next so they just stack up on screen?

But anyway, minor niggles :p

Report

C

meerkat

8 years ago

thanks for your feedback.
about 1) you are absolutely right, ill look into it next week.
about 2) as i just use the command line tool notify-send thats in the hand of the notification daemon. the standard gnome notification daemon just behaves as you wish. notify-osd in contrast just shows one amarok notification at a time. as notify-osd limits the number of notifications been displayed at the same time (i think it just allows 2), the stacking on screen behavior isn't possible at all for skipping through several tracks, nevertheless it might be possible to gain another solution for skipping through problem. notify-send doesn't povide any helpful options for this case, but ill have a look at the libnotify-api.

Report

browner

8 years ago

yes your right about notify-send - i just tried it from the command line and it will only show one message at a time so not sure how you can solve that one. nevermind ;)

Report

browner

8 years ago

notify.py does the trick.

Works a treat now, really polished :)

Report

8 years ago

1.0
Major development step with stunning new features ;)
* Full Configurable Notification Title, Body and Duration with all song information available and nice unicode symbols
* A nice Help Window that (i hope) explains the configuration accurately
* set Keybinding to trigger a notification when ever you wonder which song is playing atm (though not very straightforward yet) see "Questions and Answers" for Details
* finally just using the same cover images Amarok does without searching for fitting covers
* new code concept/structure that benefits future development of more new features
* now works on Amarok 2.1 Beta as well

product-maker mea5 Nov 05 2013

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