XMMS2(1)
๐ NAME ๐
xmms2 โ the official XMMS2 command line interface. That's the whole name, bestie. (And yes, you're reading XMMS2(1), General Commands Manual โ it's giving iconic.)
โจ SYNOPSIS โจ
xmms2 [command] [arguments]
xmms2 help [command]
๐ฆ DESCRIPTION ๐ฆ
Okay so picture this: XMMS2 is a full-on redesign of the XMMS music player (yes, that one โ https://en.wikipedia.org/wiki/XMMS). It's got a client-server model, which means multiple user interfaces can be connected at the same time โ even simultaneously! โ and they can be textual or graphical. Literally both, no cap. All common audio formats are supported using plugins, and on top of that there's a flexible media library to organise your music. ๐
And xmms2? It's the official CLI XMMS2 client. Main character energy fr fr.
๐ INVOCATION ๐
๐ธ Inline mode ๐ธ
If xmms2 is passed a command as an argument, that command will be interpreted and xmms2 will exit after it is finished. One command, in and out, done. โจ
๐ฆ Interactive mode ๐ฆ
xmms2 features a powerful shell-like environment via readline that allows you to enter commands at a prompt and have the usual cool features such as pathname expansion and line editing. It's giving cozy little command shell and we're obsessed. ๐ซถ
๐ COMMANDS ๐
All commands accept the option -h/--help which displays the command's help. ๐
pattern refers to a collection definition. (See PATTERN below.)
position is a pattern to match playlist positions. When absent in a command, the default is the end of the playlist. (See POSITION PATTERN below.)
๐ General Commands ๐
โจ add โจ
add [ -f [-N] [-P] [-A key=value]... ] [-p playlist] [-n | -a position] [-o prop[,...]] [-j] arguments...
add [-p playlist] [-n | -a position] [-o prop[,...]] [-j] pattern...
Add media to a playlist. It will attempt to guess whether arguments constitute a pattern or represent file paths. This behaviour can be overridden by forcing the type with -f and -t. If file paths contain * or ? characters, it will attempt to expand them. Failing to find a match, the * and ? characters will be attempted to be added as a part of the URL.
-f,--fileโ Force treating arguments as file paths.-P,--plsโ Force treating arguments as playlist files. This option implies-f.-t,--patternโ Force treating arguments as a pattern.-N,--non-recursiveโ Do not add directories recursively.-p,--playlistplaylist โ Add media to playlist instead of the active playlist.-n,--nextโ Add media after the current track.-a,--atposition โ Add media at the given position.-A,--attributekey=value โ Add media with given key=value attribute. May occur multiple times. Only valid when adding new files to the media library.-o,--orderprop[,...] โ Add media sorted by the given comma-separated list of properties. If a property is prefixed by-, media are sorted in reverse order on that property.-j,--jumpโ Jump to and start playing the newly-added media.
exit
Exit the shell-like interface. Bye bestie. ๐
help
help [-a] command
Show the help on command. This is equivalent to command -h. If command is an alias, show the alias definition. If no command is provided, list all available commands.
-a,--aliasโ List available aliases ifcommandis not provided. Otherwise, have no effect.
info
info [pattern | positions...]
Display the properties of all media matching pattern or at the given positions. Without argument, display the properties of the current track.
jump
jump [-b] pattern|position
Jump to the first media matching pattern or to the given position.
-b,--backwardโ Jump backward to the first media matching the pattern.
list
list [-p name] [pattern | positions...]
List the contents of a playlist (the active one by default). If pattern is provided, contents are further filtered and only the matching media are displayed.
-p,--playlistโ List playlist, instead of the active playlist.
move
move [-p playlist] [-n | -a position] pattern | positions...
Move entries inside a playlist (the active one by default).
-p,--playlistplaylist โ The playlist to act on.-n,--nextโ Move the matching tracks after the current track.-a,--atposition โ Move the matching tracks by an offset or to a position.
next
next [offset]
Jump to the next song. If offset is provided, act like jump +offset.
pause
Pause playback.
play
Start playback.
prev
prev [offset]
Jump to the previous song. If offset is provided, act like jump -offset.
remove
remove [-p playlist] pattern | positions...
Remove the matching media from a playlist (the active one by default).
-p,--playlistplaylist โ Remove from playlist, instead of the active playlist.
current
current [-r seconds] [-f format]
Display playback status, either continuously or once.
-r,--refreshseconds โ Set the delay, in seconds, between each refresh of the current playback metadata. If0, the metadata is only printed once (default) and the command exit immediately. When in refresh mode, basic control is provided on the active playlist.-f,--formatformat โ Set the format string used to display status information, instead of the one from the configuration file (see FORMAT STRING below).
search
search [-o prop1[,prop2...]] [-l prop1[,prop2...] ] pattern
Search and print all media matching pattern.
-o,--orderprop1[,prop2...] โ Display search results sorted by the given list of properties. If a property is prefixed by-, results are sorted in reverse order on that property.-l,--columnsprop1[,prop2...] โ List of properties to use as columns.
seek
seek time | offset
Seek to a relative or an absolute time in the current track.
stop
Stop playback.
toggle
Toggle playback.
๐ต Playlist Commands ๐ต
playlist clear
playlist clear [playlist]
Clear a playlist. By default, clear the active playlist.
playlist config
playlist config [-t type] [-s history] [-u upcoming] [-i coll] [-j playlist] [playlist]
Configure a playlist by changing its type, attributes, etc. By default, configure the active playlist.
-t,--typetype โ Change the type of the playlist:list,queue,pshuffle.-s,--historysize โ The size of the history of played tracks (forqueue,pshuffle).-u,--upcomingupcoming โ Number of upcoming tracks to maintain (forpshuffle).-i,--inputcollection โ Input collection for the playlist (forpshuffle). Default to'All Media'.-j,--jumplistplaylist โ Jump to another playlist when the end of the playlist is reached.
playlist create
playlist create [-s] [-p playlist] name
Create a new playlist.
-s,--switchโ Switch to the newly created playlist.-p,--playlistplaylist โ Copy the content of the playlist into the new playlist.
playlist list
playlist list [-a]
List all playlists.
-a,--allโ Include hidden playlists.
playlist remove
playlist remove playlist
Remove the given playlist.
playlist rename
playlist rename [-f] [-p playlist] newname
Rename a playlist. By default, rename the active playlist.
-f,--forceโ Force the rename of the playlist, overwrite an existing playlist if needed.-p,--playlistโ Rename the given playlist.
playlist shuffle
playlist shuffle [playlist]
Shuffle a playlist. By default, shuffle the active playlist.
playlist sort
playlist sort [-p playlist] [prop] ...
Sort a playlist. By default, sort the active playlist. Prefix properties by - for reverse sorting. If no properties are specified, the playlist is sorted by artist, album, and track number.
-p,--playlistโ Rename the given playlist. (No bestie, I'm not joking โ the manpage literally says "Rename" underplaylist sort. I'm keeping it exactly as written. Iconic. ๐ )
playlist switch
playlist switch playlist
Change the active playlist.
๐ Collection Commands ๐
collection config
collection config collection [attrname [attrvalue]]
Get or set attributes for the given collection. If no attribute name is provided, list all attributes. If only an attribute name is provided, display the value of the attribute. If both attribute name and value are provided, set the new value of the attribute.
collection create
collection create [-f] [-e] [-c collection] name [pattern]
Create a new collection. If pattern is provided, it is used to define the collection. Otherwise, the new collection contains the whole media library.
-f,--forceโ Force creating of the collection, overwrite an existing collection if needed.-c,--collectioncollection โ Copy an existing collection to the new one.-e,--emptyโ Initialize an empty collection.
collection list
List all collections.
collection show
collection show collection
Display a human-readable description of a collection.
collection remove
collection remove collection
Remove a collection.
collection rename
collection rename [-f] oldname newname
Rename a collection.
-f,--forceโ Force renaming of the collection, overwrite an existing collection if needed.
๐ง Server Commands ๐ง
server browse
server browse URL
Browse a URL via the xform plugins available in the daemon.
server config
server config [name [value]]
Get or set configuration values. If no name or value is provided, list all configuration values. If only a name is provided, display the content of the corresponding configuration value. If both name and a value are provided, set the new content of the configuration value.
The name of the configuration value is subject to shell wildcard expansion so that multiple values can be queried (but not set) at once.
server import
server import [-N] path
Import new files into the media library. By default, directories are imported recursively.
-N,--non-recursiveโ Do not import directories recursively.
server plugins
List the plugins loaded in the server.
server property
server property [-i | -s | -D] [-S] mid [name [value]]
Get or set properties for a given media. If no name or value is provided, list all properties. If only a name is provided, display the value of the property. If both a name and a value are provided, set the new value of the property.
By default, set operations use source "client/xmms2-cli", while list and display operations use source-preference. Use the --source option to override this behaviour.
By default, the value will be used to determine whether it should be saved as a string or an integer. Use the --int or --string flag to override this behaviour.
-i,--intโ force the value to be treated as an integer, no arguments ๐-s,--stringโ force the value to be treated as a string, periodt-D,--deleteโ delete the selected property (poof, gone ๐ซถ)-S,--sourceโ property source
server rehash [pattern]
Rehash the media matched by the pattern โ or, if you don't pass a pattern, the whole media library gets rehashed. all of it. iconic.
server remove [pattern]
Remove the matching media from the media library. bye bestie ๐
server shutdown
Shut the server down. yes, that's it, that's the command.
server stats
Displays stats about the server: uptime, version, size of the medialib, etc. a little selfie of your server โจ
server sync
Immediately save collections to disk. (Otherwise this only happens on shutdown, or 10 seconds after the last change to collections.) so like, if you're the impatient type, this is your girl ๐ง
server volume [-c name] [value]
Get or set the audio volume โ range is 0-100. Pass a value and it sets the volume to it; don't pass one and it just shows you the current volume. By default it applies to all audio channels, so use the --channel flag if you wanna override that. Also!! relative changes are a thing โ just prefix value with + or -. so +10 goes up, -10 goes down, math is math ๐
-c,--channelโ get or set the volume only for the named channel
๐ฆ PATTERN
Patterns are how you search for songs in the media library. Some of these need escaping (with '\') depending on which shell you're living in โ check yourself before you wreck yourself. The properties you can use are in the output of xmms2 info. iykyk ๐ธ
<property>:<string>
Match songs whose property matches the string. A ? in the string means a single wildcard character, and a * means multiple wildcard characters.
<property>~<string>
Match songs whose property fuzzily matches the string. Equal to matching by <property>:*<string>*. lowkey the same thing, highkey convenient ๐
<property><operation><number>
The operation can be <, <=, >, or >=. The pattern matches songs whose property is a numerical value that's smaller than, smaller than or equal to, bigger than, or bigger than or equal to the number.
+<property>
Match songs that have the property.
in:<namespace>/<collection>
Match songs in the given collection. The namespace may be Playlists or Collections.
NOT <pattern>
Match the complement of the pattern. the opposite girlie ๐
<pattern> <pattern> <pattern> AND <pattern>
Match songs matched by both patterns.
<pattern> OR <pattern>
Match songs matched by at least one of the two patterns.
( <pattern> )
Match songs matched by the pattern โ this one's for grouping AND and OR matches, okurrr ๐ฅ
<string>
Match songs whose artist, title, or album match the string.
~<string>
Match songs whose artist, title, or album fuzzily match the string.
#<number>
Match a specific media library id. one specific song, main character energy ๐
๐ POSITION PATTERN
Position patterns get used together with commands that operate on playlist content. here's the whole menu:
M_N
Select playlist entries ranging from M positions before the current song to N positions after. Both M and N may be omitted and will then default to 0.
-N
Select the song N positions before the current song.
+N
Select the song N positions after the current song.
pos0,pos1,...,posN
Select one to many playlist positions. a whole little list of them ๐
โญ FORMAT STRING
Commands that output formatted metadata can be customized with user-defined format strings, like this:
ยด${artist} - ${title}ยด
When you pass metadata, the name of the artist and the title get inserted into the resulting string. And on top of the metadata supplied from the media library, these properties are also available:
position
The current playlist position.
playback_status
The playback status as a string (Stopped, Playing, Paused, Unknown).
playtime
The playtime of the currently playing song.
duration
The duration of the current song, as zero-padded minutes:seconds.
minutes
The minutes part, zero-padded, of the current song duration.
seconds
The seconds part, zero-padded, of the current song duration.
๐ ALIASES
A list of command aliases is read from the configuration file in the [alias] section at runtime. The syntax of xmms2 aliases is somewhat similar to bash and other shells. An alias is defined by a list of semicolon-separated commands and arguments. Parameter expansion is supported (see Expansion below). no cap, it's giving shell ๐ซถ
The default configuration includes these aliases:
addpls
add -f -P $@
clear
playlist clear
status
current -f $1
ls
list
mute
server volume 0
quit
server shutdown
repeat
seek 0
scap
stop ; playlist clear ; add $@ ; play
โจ Expansion
Positional Parameters
An alias can use positional parameters, for example:
foo = add -f $1 $3
foo ctkoz.ogg and slre.ogg
Will result in:
add -f ctkoz.ogg slre.ogg
Special Parameters
$@ This expands to all parameters passed to the alias. literally all of them ๐
๐ CONFIGURATION
All control characters are interpreted as expected, including ANSI escape sequences. fancy โจ
AUTO_UNIQUE_COMPLETE Boolean. Completes an abbreviation of a command and its arguments. For example: serv vol 42 will complete to server volume 42. (Note: abbreviations must be non-ambiguous.)
CLASSIC_LIST Boolean. Format list output similar to the classic cli.
CLASSIC_LIST_FORMAT String to format classic list output with.
GUESS_PLS Boolean. Try to guess if the URL is a playlist and add accordingly. (Not reliable.) bestie said "maybe" ๐ญ
HISTORY_FILE File to save command history to.
PLAYLIST_MARKER String to use to mark the current active entry in the playlist.
PROMPT String to use as a prompt in INTERACTIVE MODE.
SERVER_AUTOSTART Boolean. If true, xmms2 will attempt to start xmms2d(1) if it's not running already.
SHELL_START_MESSAGE Boolean. If true, xmms2 will display a greeting message and basic help when started in INTERACTIVE MODE.
STATUS_FORMAT String to format status output with.
๐ FILES
$XDG_CACHE_HOME/xmms2/nyxmms2_historyโ default command history file ifHISTORY_FILEis unset.$XDG_CONFIG_HOME/xmms2/clients/nycli.confโ the configuration file forxmms2.
๐ฆ ENVIRONMENT
XMMS_PATHโ override the default connection path.- To connect via IPv4:
tcp://IPv4-Address:port
- To connect via IPv6:
tcp://[IPv6-Address]:port
- To connect via unix socket:
unix:///path/to/socket
๐ BUGS
Please report all bugs at https://github.com/xmms2. do it for the culture ๐
๐ AUTHORS
Igor Assis, Anders Waldenborg, Anthony Garcia, Sebastien Cevey, and Jonne Lehtinen, Daniel Svensson, Raphaรซl Bois.
See the AUTHORS file in the XMMS2 source distribution for more info.
The blame for this man page is on Anthony.
If you contributed and feel you should be listed here please send me a mail.
and that's the whole thing, bestie โ we ate, no crumbs ๐ the page signs off as XMMS2(1), and the source/version + date live down there in the real footer if you need to check when this icon was published ๐๐โจ
๐ฆ where this page comes from
- arch rolling: xmms2 0.9.7-4 ยท GPL-2.0-or-later AND LGPL-2.1-or-later
- Copyright (C) 2009 Anthony Garcia
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms