pms(1)
pms(1) β General Commands Manual π Bestie, this is the manual for pms, aka Practical Music Search, an ncurses-based MPD client. Buckle up, we're doing Unix but make it cute.
β¨ NAME β¨
pms β Practical Music Search, an ncurses-based MPD client. That's the whole vibe: it's a client for MPD, and it's built on ncurses. π
π¦ SYNOPSIS π¦
pms [-?] [-v] [-d] [-h hostname ] [-c configfile ] [-p port ] [-P
password ]
π DESCRIPTION π
Practical Music Search aims to be a highly accessible and configurable client to the Music Player Daemon. It features key mapping, customized colors, a command-line mode, several modes of play, and an easy but powerful interface. No cap, that's the pitch. β¨
β OPTIONS β
-?β Show command-line options and exit. It shows the options and then dips. π-vβ Print version and exit.-dβ Turn on debugging to stderr.-hhostname β Connect to MPD server hostname.-cconfigfile β Use configfile as an additional configuration file.-pport β Connect to port on MPD server.-Ppassword β Specify password for the MPD server.
π CONFIGURATION π
Configuration is done in three parts: options, key bindings, and colors. Okay so, three little sections, all iconic. π
Options, bindings and colors can be set at runtime by entering command mode (default binding :) or can be preset in a configuration file.
Configuration files are loaded in a specific order in line (almost) with the XDG Base Directory Specification (http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html). Possible directories are collected from the environment variables XDG_CONFIG_DIRS and XDG_CONFIG_HOME (the former defaults in PMS to /usr/local/etc/xdg:/etc/xdg rather than just /etc/xdg as in the spec, the latter defaults to $HOME/.config as in the spec).
Each path in order from lowest priority (the last entry in XDG_CONFIG_DIRS) to highest (XDG_CONFIG_HOME) is suffixed with /pms/rc and if this file exists it is loaded. Finally, if a configuration file was specified on the commandline this file is loaded.
β¨ Setting options β¨
String, integer and enumerated options are set with:
set option=value
Boolean options are set with:
set option
and reset with:
set nooption
They can be toggled with:
set option!
or:
set invoption
Values can be retrieved with:
set option?
se is an alias for set and : can be used in place of =.
π Setting bindings π
Key bindings are set with:
bind key command
and removed with:
unbind key
key can be any single character, in addition to these special characters: up, down, left, right, pageup, pagedown, home, end, space, delete, insert, backspace, return, kpenter, tab and F1 through F63. When unbinding, you can specify all as a parameter to remove all bindings.
map is an alias for bind, while unmap and unm are aliases for unbind.
π¨ Setting colors π¨
Colors are defined with:
color item foreground [background]
colour is an alias for color.
β¨ OPTIONS β¨
Now the config options. This is the long part. Don't skip. π
host=stringβ The hostname to connect to. Default:localhostport=integerβ The port on the MPD server to connect to. Default:6600password=stringβ The password to give to the MPD server. Default:nonelibraryroot=stringβ Optional path to the library's root. See!stringbelow. If used, it should have a trailing slash. Default: empty string (nothing is prepended)xtermtitle=stringβ If set, the XTerm window title will be set to the specified string. Default:PMS: %playstate%%ifcursong% %artist% β %title%%endif%reconnectdelay=integerβ If a connection is lost, this is how many seconds between each connection retry. Default:30msg_buffer_size=integerβ How many log lines to keep in the console. A value of0keeps all lines. Default:1024mpd_timeout=integerβ Sets MPD connection timeout in seconds. Leave this lower than your MPD setting. Default:30debug (boolean)β Turn debugging mode on or off. Default:setrepeat=enumβ Choose betweensingleor a boolean value. Default:offstopdelay=integerβ MPD does not support manual progression within the playlist. A hack is necessary to stop when the song is done. If manual song progression is not working correctly, increase this value. Default:1nextinterval=integerβ This setting controls how many seconds from the current song ends until PMS automatically adds the next song to MPD's playlist. Default:5crossfade=integerβ Set crossfade time in seconds.0turns crossfade off completely. Default: MPD's settingsonplaylistfinish=stringβ Specify a shell command to run when the playlist finishes and playback stops. Default:noneaddtoreturns (boolean)β If set, theadd-tocommand will return focus to the original window. Else, the destination will be focused. Default:unsetfollowplayback (boolean)β If set, the cursor will go to the currently playing song and playlist when it changes. Default:unsetfollowwindow (boolean)β If set, playback will continue in the active window. Default:unsetfollowcursor (boolean)β If set, playback will follow cursor position. Default:unsetnextafteraction (boolean)β Move cursor to next item after the song is selected, unselected or added to a playlist. Default:setstartuplist=enumβ The list which is activated and shown at program startup. This can beplaylist,libraryor an arbitrary name of an existing playlist. Default:playlistregexsearch (boolean)β Use regular expressions for search terms. Default:setignorecase (boolean)β Ignore case when sorting and searching. The aliasiccan also be used. Default:setscroll=enumβ Set scroll mode
The following modes are available:
normalβ The list only scrolls when the cursor is about to go off the top or bottom of the window. See thescrolloffoption.centeredβ The cursor is always in the middle of the window except when it is near the top or bottom of the list. The spellingcentredis also accepted.relativeβ The position of the cursor in the confines of the window is proportional to the position of the visible songs relative to the whole song list. Try it out to get a better idea of how it works.
Default: normal
scrolloff=integerβ Whenscrollis set tonormal, try to keep this many songs above and below the cursor at all times. The aliassocan also be used. Default:0playmode=enumβ Set song progression mode tomanual,linearorrandom. Inmanualprogression mode playback will stop at the end of each song. Default:linearresetstatus=integerβ Set how many seconds before resetting the statusbar text. Default:3sort=field [field [...]]β Fields by which to sort the library. You can specify multiple fields, separated by whitespace. SeeFIELDSbelow. Default:track disc album albumartistsortcolumns=column [column [...]]β Columns to show in the list. SeeFIELDSbelow. Default:artist track title album lengthstatus_unknown=string,status_play=string,status_pause=string,status_stop=stringβ Status strings. Defaults:??,|>,||,[]or, when Unicode is available, single characters which I can't figure out how to print in this manpage.mouse (boolean)β If set, the mouse is active. Mouse support is incomplete and the slightly hacky mousewheel support available with standard versions of ncurses is less than ideal, but the actions below have been implemented.
Mouse actions:
topbarβ Click to toggle play/pause, doubleclick to stop, mousewheel down to skip to the next track, mousewheel up to skip to the previous track, control-mousewheel to turn volume up or downheader ('Playlist', 'Library' etc)β Click or scroll mousewheel down to switch to the next window, doubleclick or scroll mousewheel up to switch to the previous windowplaylistβ Click to place the cursor, control-click or click right button to place cursor and toggle selection, doubleclick to place cursor and play, tripleclick to place cursor and add to playlist (if there is a selection, the selection will be added and the song clicked will just be selected), scroll mousewheel to scroll the list up and downstatusbarβ Click to enter command mode
Default: unset
topbarspace (boolean)β Whether or not to leave an extra space at the end of fixed-width columns. Default:settopbarvisible (boolean)β If set, the topbar is visible. Default:settopbarborders (boolean)β Whether or not to draw borders on the topbar window. Default:unsetcolumnspace(boolean) β okay so bestie, this one's a vibe check: whether or not to leave a blank row between the topbar and the playlist windows. Default: set πtopbarclear(boolean) β Start out with an empty topbar. Default: unset π«Άtopbar[1-99].(left|center|right)=stringβ Modify what is displayed in the topbar. The spellingcentreis also accepted. See TOPBAR below for format syntax, available fields and defaults. iykyk β¨
π¦ TOPBAR π¦
Available variables to put in the topbar:
librarysizelistsizequeuesizelivequeuesizetime_elapsedtime_remainingprogresspercentageprogressbarplaystatevolumerepeatrepeatshortrandomrandomshortmutemuteshortmanualmanualshortbitratesampleratebitschannels
All FIELDS below can also be used.
Conditionals (if-else) are supported. Currently available conditionals: ifcursong, ifplaying, ifpaused, ifstopped
See the defaults below for how conditionals are used.
The topbar syntax allows free customization of the top area of the display. The best way to understand the syntax is to take a look at the defaults:
set topbar1.left=%time_elapsed% %playstate% %time%%ifcursong%(%progresspercentage%%%)%endif%
set topbar1.center=%ifcursong%%artist%%endif%
set topbar1.right=Vol: %volume%%% Mode:%muteshort%%repeatshort%%randomshort%%manualshort%
set topbar2.center=%ifcursong%==> %title% <==%else%No current song%endif%
set topbar3.left=%listsize%
set topbar3.center=%ifcursong%%album% (%year%)%endif%
set topbar3.right=Q: %livequeuesize%
πΈ FIELDS πΈ
Available fields are:
numfileartistartistsortalbumartistalbumartistsorttitlealbumtracktrackshorttimedateyearnamegenrecomposerperformerdisccomment
π COLORS π
Items available for coloring: background, foreground, statusbar, error, position, borders, headers, title, current, cursor, selection, lastlist, playinglist, fields.* topbar.foreground, topbar.time_elapsed, topbar.time_remaining, topbar.progresspercentage, topbar.progressbar, topbar.repeat, topbar.random, topbar.mute, topbar.repeatshort, topbar.randomshort, topbar.muteshort, topbar.librarysize, topbar.listsize, topbar.queuesize, topbar.livequeuesize, topbar.playstate, topbar.fields.*
Replace the wildcard * with any of the FIELDS described above.
The following colors can be used only as foreground colors: gray, brightred, brightgreen, yellow, brightblue, brightmagenta, brightcyan
The following colors can be used either for background or foreground colors: black, red, green, brown, blue, magenta, cyan, brightgray
The special color trans can only be used as a background color, and provides a transparent background.
The alternative spelling grey can be used in the place of gray, and light can be used in place of bright.
π COMMANDS π
π§ Playback
playβ Play the song under the cursor πaddβ Add the selected song(s) to the playlist
If a playlist is selected in windowlist mode, that list is appended to the playlist.
add-toβ Add the selected song(s) to a chosen playlistnextβ Play the next song from the playlist or library based on current play modereally-nextβ Play the next song from playlist or library, regardless of play modeprevβ Play previous songpauseβ Pause playback or play if playback was paused; do nothing if playback is stoppedstopβ Stop playbackplaymodeβ Rotate mode of playback through linear, random from playlist and manual (stop when each track finishes)toggle-playβ Toggle playback
Play from the current song if playback was stopped or paused, otherwise pause.
volume [string]β Set volume
string can be delta (+/-value, for instance +4) or absolute value (0~100). If run without any parameters, return the current volume.
muteβ Toggle mutecrossfade [integer]β Set crossfade time in seconds. If no integer is given, or integer is0, toggle crossfade. If set to a negative value, turn crossfade off.seek integerβ Seekintegerseconds (can be negative) in the playing song.repeatβ Rotate repeat mode through none, repeat one and repeat list
πΆ Adding and playing
play-albumβ Play all songs from the album of the song under the cursorplay-artistβ Play all songs from the selected artistplay-random [n]β Play one ornrandom songs from the library or visible list.add-albumβ Add all songs from the selected album to playlistadd-allβ Add all songs from the currently visible list to playlist
If part of the album already is at the bottom of the playlist the remainder is added.
add-artistβ Add all songs from the selected artist to the playlistadd-random [n]β Add one ornrandom songs from the visible list to the playlist.removeβ Remove selected song from playlist
π Playlist management
create stringβ Create a new empty playlist with given namesave stringβ Saves the current list view into a new playlist file with given filenamedelete-list [string]β Permanently delete the named playlist if given or else the current playlistactivate-listβ Activate currently viewed list for playbackcropβ Crop the current playlist to the currently playing songcropselβ Crop the current playlist to the selected songs, or song under cursorclearβ Clear the playlistshuffleβ Shuffle the playlistmove integerβ Move the selected songs by the given offset
A positive offset moves songs down; a negative offset moves songs up.
update [string]β Ask MPD to update the music library.stringcan be a file in the music library, or one ofthis,thisdir,currentorcurrentdir.select [string]/unselect [string]/toggle-select [string]β Select, unselect or toggle selection of songs matching a search term
If no parameter is given, the song under the cursor is affected.
clear-selectionβ Unselect all songs in the playlist
π οΈ Application
infoβ Show info in the status bar about the current songhelpβ Show current key bindingscommand-modeβ Enter command mode, where you can enter configuration options or perform other commands (including those which are not mapped to any key)change-window enumβ Change the active window toplaylist,libraryorwindowlistnext-windowβ Move to the next windowprev-windowβ Move to the previous windowlast-windowβ Switch to the previously viewed windowredrawβ Force screen redrawrehashβ Reload the configuration fileversionβ Show version informationclear-topbar [integer]β Clear out all contents of the topbar or, if a parameter is given, only that line!stringβ Run a shell command
Some vim-like placeholders are available:
%β The current song's file path, not escaped in any way#β The currently highlighted song's file path, not escaped in any way##β The file path of each of the songs in the current selection or, if there is no selection, each song in the currently visible list. Each path is enclosed in double quotes.
Examples:
!echo "%" | xclip
Copy the current song's file path to the X clipboard
!rox-filer "$(dirname "#")"
Browse the directory containing the currently highlighted song with Rox-filer
!transcribe ##
Open the selected songs (or, with no selection, all songs on the playlist) in Transcribe
!cp ## /media/removabledriveβ copy the selected songs (or, if you literally have nothing selected, every single song on the playlist) onto a USB stick or portable media player. π
Heads up bestie: every path you give it gets prefixed with the string in the config variable libraryroot. So it's not starting from /, it's starting from wherever libraryroot says. iykyk.
quit,qβ Exit PMS. Bye bestie, closing the app, no take-backs π
β¨ Movement and search β¨
move-upβ Move the cursor up β¬οΈ
Bonus mode: in command or quick-find mode it moves to the previous item in the command or search history. Nostalgic.
move-downβ Move the cursor down β¬οΈ
Bonus mode: in command or quick-find mode it moves to the next item in the command or search history.
move-halfpgupβ Move the cursor one half screen upmove-halfpgdnβ Move the cursor one half screen downmove-pgupβ Move the cursor one full screen upmove-pgdnβ Move the cursor one full screen downmove-homeβ Move the cursor to the start of the list πmove-endβ Move the cursor to the end of the listscroll-upβ Scroll the list up one line
ngl: this only acts differently from move-up if scroll is set to normal. Otherwise it's giving the exact same energy.
scroll-downβ Scroll the list down one line
Same deal fr fr β it only acts differently from move-up if scroll is set to normal.
center-cursorβ Scroll the list so that the cursor is centered π― (only has an effect whenscrollis set tonormal, so don't come for me if nothing happens)filterβ Enter filter mode: type to filter the current view for songs. Songs that don't match get removed from the view β¨ Use theclear-filterscommand to return to the original view. (Yes, you can get them back. Breathe.)clear-filtersβ Clear all filters from the current playlist. Fresh start, main character energy π¦quick-findβ Enter quick-find mode: type to jump to the next matched song πnext-resultβ Find the next search result from the last quick-findprev-resultβ Find the previous search result from the last quick-findnext-ofstring β The parameter should be a field name (seeFIELDSabove) β jump to the next track in the list for which the field differsprev-ofstring β The parameter should be a field name (seeFIELDSabove) β jump up the list to the first (topmost) of a set of tracks which have in common the next differing value of the given field
Okay let me say that again in human: the cursor moves up until the given field changes, then keeps going until just before it would change again. That's it, that's the whole vibe π§
goto-currentβ Jumps to the currently playing song, if any π§goto-randomβ Jump to a random song in the playlist π² (chaos mode, respectfully)
π FILES π
/etc/xdg/pms/rc,/usr/local/xdg/pms/rc,~/.config/pms/rcβ the default paths to configuration files, loaded in this order (see the configuration section above βοΈ)
πΏ ENVIRONMENT πΏ
HOMEβ Used to generate the default path to the configuration file ifXDG_CONFIG_HOMEis not set or emptyXDG_CONFIG_HOMEβ The prefix for the user-specific configuration fileXDG_CONFIG_DIRSβ Prefixes for the system-wide configuration filesMPD_HOSTβ Specifies the host which MPD runs onMPD_PORTβ Specifies the port on which MPD listensMPD_PASSWORDβ Specifies a password to send to MPD on connection π
π AUTHOR π
Written by Kim Tore Jensen <kimtjen@gmail.com> with help from Bart Nagel <bart@tremby.net>.
The newest version can be obtained at <http://pms.sourceforge.net>. π«Ά
π SEE ALSO π
and that's a wrap on pms(1) bestie π thank u for reading the whole thing, you ate, no crumbs. this was the pms(1) page, and if you ever need it again it's literally right there in your terminal waiting for you like the loyal icon it is β¨ππ¦
π¦ where this page comes from
- debian trixie: pms 0.42-1.1+b1 Β· GPL-3.0-or-later
- ubuntu jammy: pms 0.42-1build4 Β· GPL-3.0-or-later
- ubuntu noble: pms 0.42-1.1build2 Β· GPL-3.0-or-later
- ubuntu questing: pms 0.42-1.1build2
- ubuntu resolute: pms 0.42-2 Β· GPL-3.0-or-later
- ubuntu stonking: pms 0.42-2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms