https://github.com/kittykatt/mpd-libnotify
MPD notification via libnotify/notification-daemon
https://github.com/kittykatt/mpd-libnotify
Last synced: about 1 year ago
JSON representation
MPD notification via libnotify/notification-daemon
- Host: GitHub
- URL: https://github.com/kittykatt/mpd-libnotify
- Owner: KittyKatt
- Created: 2010-04-06T20:42:39.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2012-01-31T09:02:58.000Z (over 14 years ago)
- Last Synced: 2025-06-22T19:07:33.873Z (about 1 year ago)
- Language: Shell
- Homepage: http://www.silverirc.com/kittykatt/index.php?page=scripts&sub=mpdnotify
- Size: 446 KB
- Stars: 9
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.mkdn
- Changelog: CHANGELOG
Awesome Lists containing this project
README
mpdnotify - A libnotify daemon for MPD/MPC
===============
What is mpdnotify?
---------------------
This small Bash script is a daemon that runs in the background and will
execute a command when MPD does something, using mpc's idleloop function. In
this case, we are creating a notification window with libnotify. This little
window will pop up for about 2 seconds with the cover art (if available), artist
name, track name, and album name. This is mainly to be used when mpc changes to
the next track.
Dependencies
---------------------
MPD - http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki
mpc - http://mpd.wikia.com/wiki/Client:Mpc
libnotify
imagemagick
How do I get mpdnotify? (Arch Linux)
---------------------
1. Install `mpdnotify-git` from the AUR. That's it!
How do I get mpdnotify? (Others)
---------------------
1. Download the latest source. Found at http://github.com/KittyKatt/mpd-libnotify/raw/master/mpdnotify
2. In a terminal, make the file executable by doing the following: `chmod +x /path/to/mpdnotify`
3. Then, either keep it there, or move it to somewhere in your $PATH to make it available without having to use the full path to the script.
How to run mpdnotify
------------------------
The command to run mpdnotify is the same as most any daemon. Use `mpdnotify` with the arguments
`(start|stop|restart)` to control it. Upon first execution, it will create a default config file at ~/.config/mpdnotify/config. YOU NEED TO EDIT THIS CONFIG TO SUIT YOUR NEEDS.
Credits
------------------------
Thanks brisbin33 for the bashnotify daemon template, which can be found:
Here - http://bbs.archlinux.org/viewtopic.php?id=92351
Here - http://pbrisbin.com:8080/bin/bashnotify
Contact Me
------------------------
If you would like to suggest something new, inform me of an issue in the
script, become part of the project, or talk to me about anything else,
you can either email me at `kittykattATarchlinuxDOTus` or you can connect
to my IRC server on SilverIRC at irc://kittykatt.silverirc.com/me0wz