MPROMPT(1)
π MPROMPT(1) β the manual, but make it cute π
okay bestie, sit down, hydrate, because we're learning mprompt today and it's genuinely iconic. this is the mprompt page from the mprompt manual, and yes i'm gonna walk you through every single bit of it. no skips. periodt. π
β¨ NAME β¨
mprompt β simple prompt-based control for mpd π΅
like. the name literally tells you the whole vibe. it's a prompt. it's for mpd. it's simple. slay.
π¦ SYNOPSIS π¦
mpompt [-s] [-m key=key] [-t n] [-f] [tty] [-T] [host]
okay so first thing: yes, that's exactly how it's written on the page, character for character, and i am not touching it. i copy, i do not edit. that's the rule. π«Ά (the flags you're actually gonna read about below are -s, -m key=key, -t n, and -T β plus -f, tty, and host hanging out in the synopsis. we're just reporting, not inventing.)
πΈ DESCRIPTION πΈ
mprompt is an mpd client with a prompt-based interface. it's built to be usable on a headless machine β meaning no fancy GUI, no window manager, just you and a terminal and your music. main character energy, honestly. π
at the prompt, you type the name of a playlist β or part of the name of an album, an artist, or a song. anything that matches 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. so your chaotic little fingers are safe. π)
use the left and right arrow keys to adjust volume, and the up and down arrow keys to move through the playlist. lowkey the most intuitive control scheme ever.
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 β like, if you already typed something, Enter is doing its own thing, bestie.)
here's an example of how to run mprompt in /etc/inittab:
1:2345:respawn:/usr/bin/mprompt /dev/tty1
π OPTIONS π
-sβ this option allows shell commands to be typed in tomprompt, to be run by whatever user it is running as. (typically root if it's being run from/etc/inittab.)
to enter a shell command, type a "!", followed by the command to run, followed by Enter.
β οΈ bestie. listen to me. that's shell commands running as whatever user it's running as. if that's root, that's root. the original says it, i'm saying it louder. π
-m key=keyβ this option allows remapping keys. any key can be remapped to any other key, which is useful to support keyboards with unusual key layouts, or missing keys. π§
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:
<return><tab><space><up><down><left><right><backspace>
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. π (the manpage said it. i'm just agreeing. it is a nice choice.)
-t nβ 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. πβ¬ literally the most relatable feature ever, cats walk on keyboards and ruin everything.-Tβ enables terse output mode. this mode tries to avoid displaying excessive or complex things, with the intent thatmprompt's output can be piped into a speech synthesiser, such asespeak. π£οΈ accessibility queen. we love to see it.
π SEE ALSO π
go read those too, bestie. iykyk. π
π AUTHOR π
Copyright 2009 Joey Hess <joey@kitenet.net>
Licensed under the GNU GPL version 2 or higher.
http://kitenet.net/~joey/code/mpdtoys
and that's the whole page!! π this was perl v5.36.0, dated 2023-02-01, and that's your sign-off from the mprompt manual. you ate this. go play some music. πβ¨ππ¦πΈπ
π«Άπ₯π
π¦ where this page comes from
- debian bookworm: mpdtoys 0.26-1 Β· GPL-2.0-or-later
- debian trixie: mpdtoys 0.26-1 Β· GPL-2.0-or-later
- ubuntu noble: mpdtoys 0.26-1 Β· GPL-2.0-or-later
- ubuntu questing: mpdtoys 0.26-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms