Giter Club home page Giter Club logo

mpd-libnotify's Introduction

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

mpd-libnotify's People

Contributors

kittykatt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mpd-libnotify's Issues

Volume state appears in notify-osd when stopping playback.

Hello:
First, thanks for the awesome app I've been searching for so long. A good mpd notifier :)

Now, sadly, the issue, almost entirely described in the title. The volume state appears after a few seconds from stopping playback. This is what I get with mpc and ncmpcpp

volume:+37%+++repeat:+off+++random:+off+++single:+off+++consume:+off

I get this under every entry in the notification (from, by, etc..). Isn't there a way to make your program "deaf" to certain mpd states, like pause and stop? (there is another extra notification there)

Project page link broken/down

The github main page of mpd-libnotify uses two lines of description in the top area below the project name.

There is a link in the second line, that seems to point to something like a project home page;
http://www.silverirc.com/kittykatt/index.php?page=scripts&sub=mpdnotify
The link is broken, because the domain name registration expired (Mar 08 2015 02:37AM).

It's unclear whether the problem is - the hostname may be unavailable temporarily only (it's still held by the hosting company); The server itself may be reachable by an different name, or may no longer exist.

If the link can not be restored, this issue could be closed by noting the status of the server, like "temporary hosting issue", "unavailable, but may be fixed eventually" or "lost forever".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.