MPD_Growl is a simple ruby script for creating Growl notifications based on MPD events.
You're going to need bundler
gem install bunder
Simply clone the repo and run
bundle install
Included is a sample configuration file config.yaml.sample
. It's a pretty simple file that has host and port information for your MPD server and the Growl notification method. There are currently 2 supported notification methods:
The ruby-growl method uses the ruby-growl
gem to communicate with Growl via the network. In order to have this method work, you must enable the options:
Listen for incoming notifications
Allow remote application registration
Both of these can be found in your Growl->Network settings pane.
If you have required a password for connecting to your Growl server, set it via the config setting growl_password
.
The growlnotify method uses the growlnotify
application (info here) that is included with Growl. It does not require setting any of the Network options that ruby-growl
does.
MPD_Growl uses Daemons to simplify running the script as a long running, background process. To start the script, simply run:
ruby mpd_growl.rb start
You can stop the process by running:
ruby mpd_growl.rb stop
You can restart a running process by running:
ruby mpd_growl.rb restart
Finally, you can also run the script in the foreground by running:
ruby mpd_growl.rb run