MPROMPT(1) | mprompt | MPROMPT(1) |
mprompt - 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
To enter a shell command, type a "!", followed by the command to run, followed by Enter.
For alphanumeric and punctuation keys, individual symbols can be remapped. For example, "-m a=b" will turn each entered "a" into "b".
For other keys, use the following names:
For example, -m "n=<down>" will map the "n" key to the down arrow, causing that key to change to the next track; -m "<space>=<return>" will make the space bar act as a pause.
It's possible to swap keys too. For example, -m "<down>=<up>" -m "<up>=<down>"
A single key can also be bound to a series of keystrokes. For example, -m "1=Mule Variations<return>" will cause the "1" key to play the "Mule Variations" album, a nice choice.
Copyright 2009 Joey Hess <joey@kitenet.net>
Licensed under the GNU GPL version 2 or higher.
http://kitenet.net/~joey/code/mpdtoys
2021-02-13 | perl v5.32.1 |