mptoggle(1)

mptoggle1

Single button control for mpd

Usage

mptoggle [host] [playlist ...]

Overview

mptoggle allows mpd to be controlled by a single physical button. It was designed for a linksys nslu2 running mpd, for which the only available physical control is a power button that can be remapped to run an arbitrary program.

mptoggle toggles playback each time it's run. So press the button once to start, and a second time to stop. Each time it starts playing. By default it selects a new different playlist, at random, to play. If playlist names are specified at the command line, it will choose between those at random.

Example of how to make the nslu2's power button run mptoggle, in /etc/inittab:

        ca:12345:ctrlaltdel:/usr/bin/mptoggle localhost

Releases

9 releases since Debian 5.0 (Lenny); the text changed 4 times.

  1. 5.0
  2. 6.0–8
  3. 9–10
  4. 11
  5. 12–13

Author

Copyright 2007 Joey Hess <[email protected]>

Licensed under the GNU GPL version 2 or higher.

http://kitenet.net/~joey/code/mpdtoys

From mpdtoys 0.26-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.