Skip to main content

mpdnotify

Notifies when mpd's song changes.

mpdnotify

Installation

It has been test on Debian 9.5, it shall work on any other Linux distribution with Python >= 3.2. Please let me now if it works on OSX.

PyPa

For now, mpdnotify is not a PyPa's package.

Manual

Requirements

Installation

git clone https://github.com/chuugar/mpdnotify.git
cd mpdnotify
pip3 install -r requirements.txt -e .

Usage

A few arguments can be passed to mpdnotify :

  • -a / --appname : specifies the app name for notify-send.
  • -c / --config : path to the configuration file.
  • --host : mpd's address.
  • -m / --musicdir : path to mpd's music library folder.
  • -p / --port : mpd's server port.
  • -o / --oneshot : send a notification and exit immediately.

All this arguments can be save in a configuration file, please see mpdnotifyrc.sample for further informations.

Once running, mpdnotify will wait for the next song to send a notification (unless -o / --oneshot has been passed). Cover is used as notification icon if a file (cover/front/album).(png/jpg) is find in the same folder as the music file.

TODO

  • Add a test suite.
  • Allow user to change the notification format.
  • If cover cannot be found as an image, look at the tags.

Metadata

Release files for mpdnotify 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mpdnotify 1.0
File Size Uploaded
mpdnotify-1.0.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mpdnotify 1.0
File Interpreter ABI Platform
mpdnotify-1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.7 kB

Release files / mpdnotify-1.0.tar.gz

Download URL mpdnotify-1.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1461b80cb4772640c25bc03b19977789523b5f918ae15588b8860e0409bef0e7
BLAKE2b-256 checksum
How to use checksums
535cbb77aa9aefe97274ec57c8215d119e41ccf39ebeeef0f5107bcc1e2c03fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.3

Release files / mpdnotify-1.0-py3-none-any.whl

Download URL mpdnotify-1.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d99d0d6d56403dc5e6ba7bd467c7d2f184c740800641269fbd05df670045cee
BLAKE2b-256 checksum
How to use checksums
71ba1141fd7bdbc0cf9650353cb4d06f469a559d9cf9938e0bb499112a33cc3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.3

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page