Skip to content

A simple script to generate Growl notifications when the current song changes in MPD.

Notifications You must be signed in to change notification settings

moorecp/MPD-Growl

Repository files navigation

MPD_Growl

MPD_Growl is a simple ruby script for creating Growl notifications based on MPD events.

Requirements

You're going to need bundler

gem install bunder

Installation

Simply clone the repo and run

bundle install

Configuration

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:

ruby-growl

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.

growlnotify

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.

Usage

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

About

A simple script to generate Growl notifications when the current song changes in MPD.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages