You are not logged in.
(sorry for my english, but is not my native language)
When i install Arch, i was want that all aplications in my system will be lightweight... then for the musica i use mpd and ncmpc, but mpd or ncmpc doesn't have a method to notify when something change for example the new change on play.
Well... mpd-notify do this...
mpd-notify i a C program implemented with libmpdclient and libnotify (with the notify-send script).
[VERSION 0.2.2]
Fix some little bugs
Download source
[VERSION 0.2.1]
Revised and rewrite the mpd-notify script
Now if the user only execut mpd-notify (without any argument) all plugins will be exec
You can get the new version from here (Rapidshare)
[VERSION 0.2]
* Now mpd-notify implement a pseudo plugin system
* add icon to notification
* add two "plugins" song-change to notify when mpd change the current song
and vol-change to notify when mpd change the current volume
To use:
mpd-notify <plugin-name> [options]
to song-change plugin:
mpd-notify song-change [time icon]
the time option set the time to show the notification for default 2000ms
the icon option set the icon to use in notification
to vol-change
mpd-notify vol-change
To install the new mpd-notify get the source from here http://rapidshare.com/files/145929201/m … 0.2.tar.gz
unpack, cd to the new folder and run the install.sh script
For more information see www.msdarkici.wordpress.com/mpd-notify (Spanish)
[VERSION 0.1beta]
To install it download the .tar.gz package from: http://rapidshare.com/files/145590017/m … ar.gz.html
extract, cd mpd-notify and run the install.sh script.
This script compile the program, and create 2 files in /usr/local/bin mpd-notify (the binary) and mpd-notify-daemon (a script)
To run mpd-notify you must run mpd-notify-daemon start in your start aplications (in openbox in autostart.sh file) or like me with a alias in my .bashrc file
alias musica='ncmpc && mpd-notify-daemon start'
The mpd-notify shows you when a change the song in mpd with a little libnotify event.
This is a very beta version, any question, suggestion or anything post here please.
Thank You for reading...
Last edited by msdark (2008-09-18 23:52:54)
www.msdarkici.wordpress.com (Spanish) All what i Do in the linux world!!!
Arch User... Feel Free... Feel Speed....
Offline
Very nice work! I would LOVE to see this with a plugin-based system. Here's a pseudocode example:
when song_changes
for executable_file in plugin_directory; do
run executable_file with_parameters song_name song_artist (etc)
Just check if a file in plugin_directory has +x permission, and if so, run it. You could make the "default" plugin use your libnotify action, and anyone who wanted to extend it with their own could do so.
I look forward to future developments.
[git] | [AURpkgs] | [arch-games]
Offline
thanks... great idea....
www.msdarkici.wordpress.com (Spanish) All what i Do in the linux world!!!
Arch User... Feel Free... Feel Speed....
Offline
Thanks for the excellent work! I've been wanting something like this, I'm very pleased with it. I would suggest making a PKGBUILD and putting it onto the AUR. If you need help with that, please feel free to contact me on IRC or send me a PM on here.
EDIT: Also, I'm not sure what SCM you use, if any, but if you're interested I can help you set up a public git repository (Which would make a PKGBUILD easier).
I'm very excited about this project.
Last edited by Daenyth (2008-09-18 20:08:15)
[git] | [AURpkgs] | [arch-games]
Offline
thanks!!! ... this will be asome
www.msdarkici.wordpress.com (Spanish) All what i Do in the linux world!!!
Arch User... Feel Free... Feel Speed....
Offline