This section describes cmus' commands. You can bind a key to any of these
commands, put these commands to configuration files and execute them in
command mode. Also cmus-remote uses these commands in its protocol.
Optional parameters are in brackets, obligatory parameters in angle brackets
and default key bindings in parenthesis.
-
add [-l] [-p] [-q] [-Q] <file|dir|url|playlist>
-
Add file/dir/url/playlist to the specified view or the current view.
-
-l
-
add to library
-
-p
-
add to playlist
-
-q
-
add play queue
-
-Q
-
prepend to play queue
URL is a Shoutcast stream (http://…).
Supported playlist: plain, .m3u, .pls.
-
bind [-f] <context> <key> <command>
-
Add a key binding.
-
-f
-
overwrite existing binding
Use tab to expand contexts, keys and commands. Command is any command listed
in this section.
-
Valid key contexts
-
common, library (1-2), playlist (3), queue (4), browser (5), filters (6)
There's one context for each view. Common is a special context on which bound
keys work in every view.
You can override specific keys in common context for a view. For example i
selects the current track in views 1-3 but in browser it is overridden to
toggle showing of hidden files.
-
browser-up (backspace)
-
Change to parent directory in browser view (5). This command only makes sense
to be bound to the browser key context although it's possible to use this
even if browser view is not active.
-
cd [directory]
-
Changes the current working directory. Changes the directory displayed in
browser view too.
-
clear [-l] [-p] [-q]
-
Remove all tracks from the specified view or the current view.
-
-l
-
clear library
-
-p
-
clear playlist
-
-q
-
clear play queue
-
colorscheme <name>
-
Change color scheme. Color schemes are found in /usr/share/cmus or ~/.cmus
and have .theme filename extension.
-
echo <arg>…
-
Display arguments on the command line.
If the arguments contain {} it is replaced with file name of the first
selected track.
Note
|
unlike with run the {} is replaced with only the first selected
filename. |
Default bindings:
common I echo {}
common ^C echo Type :quit<enter> to exit cmus.
-
factivate <user-defined-filter>…
-
Select and activate the given user defined filters (displayed in the filters
view). Filter names are separated by spaces. This command is mostly useful
when bound to a key, to change active filters very quickly. If no arguments
given then all filters are unactivated.
-
filter <filter-expression>
-
Use this command when you want to temporarily filter contents of the library
views without having separately define (fset) and activate the filter. The
filter is not saved.
-
fset <name>=<filter-expression>
-
Define (or replace existing) filter and add it to filters view (6).
-
invert
-
Invert the marking of tracks in playlist and queue views. See mark and
unmark.
-
load [-l] [-p] <playlist>
-
Load a playlist to the specified view or to the current view.
-
-l
-
load to library views
-
-p
-
load to playlist view
-
mark <filter-expression>
-
Mark tracks in playlist and queue view by using a filter expression.
-
player-next (b)
-
Skip to the next track.
-
player-pause (c)`
-
Toggle pause.
-
player-play (x)
-
If stopped, start playing the current song; if already playing seek to
beginning of the current song.
-
player-prev (z)
-
Skip to the previous track.
-
player-stop (v)
-
Stop playback.
-
quit
-
Exit cmus.
-
refresh (^L)
-
Redraw the terminal window.
-
run <command>
-
Run command for the marked tracks OR the selected one if none marked.
By default file names are appended to the command. If the command contains
{} it is replaced with list of filenames.
Note
|
In view 1 you can run a command for all files in the selected album or
artist. |
-
save [-l] [-p] [file]
-
Save the specified view's or the current view's contents to a playlist file.
-
-l
-
save library views
-
-p
-
save playlist view
If no filename given the old filename is used.
-
search-next (n)
-
If a search pattern has been entered before, search forward for the next match
in the current view. See GENERAL USAGE above.
-
search-prev (N)
-
If a search pattern has been entered before, search backwards for the previous
match in the current view. See GENERAL USAGE above.
-
seek [+-]<num>[mh]
-
Seek to absolute or relative position. Position can be given in seconds,
minutes (m) or hours (h).
-
Seek 1 minutes backward
-
:seek -1m
-
Seek 5 seconds forward
-
:seek +5
-
Seek to absolute position 1h
-
:seek 1h
Default bindings:
common , :seek -1m
common . :seek +1m
common l :seek +5
common h :seek -5
common right :seek +5
common left :seek -5
-
set <option>=<value>
-
Set value of an option. See OPTIONS.
-
showbind <context> <key>
-
Show key binding.
-
shuffle
-
Reshuffle the shuffle lists for both library and playlist views.
-
source <filename>
-
Read and execute commands from <filename>.
-
toggle <option>
-
Toggle value of a toggle-able option (all booleans and tristate aaa_mode).
-
unbind [-f] <context> <key>
-
Remove a key binding. Use tab to cycle through bound keys.
-
-f
-
Don't throw an error if the binding is not known
-
unmark
-
Unmark all tracks (see mark).
-
view <name or 1-6>
-
Switches active view.
-
vol [+-]NUM[%] [[+-]NUM[%]]
-
Set, increase or decrease volume.
If you give vol just one argument it changes both channels. Two values make
it possible to change the left and right channel independently.
To increase or decrease volume prefix the value with - or +, otherwise
value is treated as absolute volume.
Both absolute and relative values can be given as percentage units (suffixed
with %) or as internal values (hardware may have volume in range 0-31 for
example).
Default bindings:
common = :vol +10%
common + :vol +10%
common - :vol -10%
common [ :vol +1 +0
common ] :vol +0 +1
common { :vol -1 -0
common } :vol -0 -1
-
win-activate (enter)
-
In views 1-3 start playing the selected track. In view 5 start playing the
selected track or change to the selected directory. In view 6 activate the
selected filters.
-
win-add-l (a)
-
Add the currently marked or selected track(s) (views 3-4), or the currently
selected file or directory (view 5) to the library.
Analogous to :add -l
-
win-add-p (y)
-
Add the currently marked or selected track(s) (views 1-2, 4), or the currently
selected file or directory (view 5) to the playlist.
Analogous to :add -p
-
win-add-Q (E)
-
Prepend the currently marked or selected track(s) (views 1-3), or the currently
selected file or directory (view 5) to the play queue.
Analogous to :add -Q
-
win-add-q (e)
-
Add the currently marked or selected track(s) (views 1-3), or the currently
selected file or directory (view 5) to the play queue.
Analogous to :add -q
-
win-bottom (g, end)
-
Goto bottom of the current window.
-
win-down (j, down)
-
Goto down one row in the current window.
-
win-mv-after (p)
-
If no tracks are marked, move the selected track down one row. If any tracks
are marked, move the marked tracks after the currently selected track. This
command works in unsorted playlist and play queue view.
-
win-mv-before (P)
-
If no tracks are marked, move the selected track up one row. If any tracks are
marked, move the marked tracks before the currently selected track. This
command works in unsorted playlist and play queue view.
-
win-next (tab)
-
Activate next window. Only relevant in view 1.
-
win-page-down (^F, page_down)
-
Goto down one page in the current window.
-
win-page-up (^B, page_up)
-
Goto up one page in the current window.
-
win-remove (D, delete)
-
Remove the selected entry. For tracks no confirmations are made. For files
(view 5) and filters (view 6) user has to confirm the action.
-
win-sel-cur (i)
-
Select the current track (position in library or playlist, not necessarily same
as the currently playing track). Works only in views 1-3, does nothing in
other views.
-
win-toggle (space)
-
Expand albums in library view (1), mark tracks in views (2-4), toggle selection
of a filter in view 6.
-
win-top (g, home)
-
Goto top of the current window.
-
win-up (k, up)
-
Goto up one row in the current window.
-
win-update (u)
-
Checks the modification time of the files in the library, and updates metadata
for changed files. Removes non-existent files from the library.
Reloads contents of directory in the browser view.
Only works in views 1-2 and 5, does nothing in other views.