Simple prompt-based control for mpd
mpompt [-s] [-m key=key] [-t n] [-f] [tty] [-T] [host]
mprompt is a mpd client with a prompt-based interface. It is designed to be usable on a headless machine.
At the prompt, enter the name of a playlist, or part of the name of an album, artist, or song. Matching items will start playing. You can also paste in urls to stream.
(If the perl String::Approx module is available, it will be used to handle typos, etc in the names you enter.)
Use the left and right arrow keys to adjust volume, and the up and down arrow keys to move through the playlist.
The Tab and Enter keys can both be used to pause and unpause playback. (Enter toggles pause only if nothing has been entered at the prompt.)
Example of how to run mprompt in /etc/inittab:
1:2345:respawn:/usr/bin/mprompt /dev/tty1
This option allows shell commands to be typed in to mprompt, to be run by whatever user it is running as. (Typically root if it is run from /etc/inittab). To enter a shell command, type a \*(L"!\*(R", followed by the command to run, followed by Enter.
This option allows remapping keys. Any key can be remapped to any other key, which is useful to support keyboard with unusual key layouts, or missing keys. For alphanumeric and punctuation keys, individual symbols can be remapped. For example, \*(L"-m a=b\*(R" will turn each entered \*(L"a\*(R" into \*(L"b\*(R". For other keys, use the following names:
For example, -m \*(L"n=<down>\*(R" will map the \*(L"n\*(R" key to the down arrow, causing that key to change to the next track; -m \*(L"<space>=<return>\*(R" will make the space bar act as a pause. It's possible to swap keys too. For example, -m \*(L"<down>=<up>\*(R" -m \*(L"<up>=<down>\*(R" A single key can also be bound to a series of keystrokes. For example, -m \*(L"1=Mule Variations<return>\*(R" will cause the \*(L"1\*(R" key to play the \*(L"Mule Variations\*(R" album, a nice choice.
Adds a timeout, a specified number of seconds after which the entry on the command line will be cleared. Useful for headless systems, to avoid cat-on-keyboard confusing your later commands.
Enables terse output mode. This mode tries to avoid displaying excessive or complex things, with the intent that mprompt's output can be piped into a speech synthesiser, such as espeak.
vipl\|(1) mptoggle\|(1) mpd\|(1)
Copyright 2009 Joey Hess <[email protected]>
Licensed under the \s-1GNU\s0 \s-1GPL\s0 version 2 or higher.
http://kitenet.net/~joey/code/mpdtoys