mirror of
https://github.com/stumpwm/stumpwm-contrib.git
synced 2026-09-10 07:26:25 -04:00
In certain cases, usually around loss of connection to the network, it was possible for the MPD connection to be dropped while *mpd-timer* was still active and scheduled. This led to mpd-ping being called on the timer every *mpd-timeout* seconds, and uselessly popping up an error message. This fixes that bug by replacing the simple mpd-ping call in the timer with a lambda that checks for *mpd-socket* and, if not connected, cancels the timer. It also makes mpd-disconnect cancel the timer outside the with-mpd-connection form, which means that in the case of a dangling timer mpd-disconnect will still cancel it. |
||
|---|---|---|
| .. | ||
| mpd.asd | ||
| mpd.lisp | ||
| package.lisp | ||
| README.org | ||
Usage
Put:
(load-module "mpd")
into your ~/.stumpwmrc
Then you can use "%m" in your mode line format, as well as various commands defined at the end of the file.
You can customize the modeline format (mpd-modeline-fmt), the status message displayed by the command mpd-status (mpd-status-fmt; note that this is also used on the modeline), and the status message displayed by the command mpd-current-song (mpd-current-song-fmt). See the documentation for mpd-modeline-fmt for more information.
Notes
See The Music Player Daemon protocol for more details.