Skip to content

keybinds

Keybinds

keybinds: (global: <kebyinds_map>, navigation: <keybinds_map>, queue: <keybinds_map>)

Keybinds are configured in the config file. There are different keybinds for different panes and actions. Keybinds are optional and do not have be specified in the config file. If ommited the default keybinds below are used. By default the keybinds are vim-like, but you can change them to whatever you want.

keybinds_map

global: { "p": Play, "s": Stop, "X": Stop, ...}

Is a simple list of key-value pairs where the left side is key to use specified as a string and the right side is a name of the action. You can also bind multiple keys to a single action by specfying it multiple times with a different key.

Keybind syntax

Keybind syntax is similar to vim keybinds. To map action to letter a you write a and to map an action to an uppercase A you would write A. To combine a key with a modifiers like Ctrl you would write <C-a> and likewise for an uppercase A: <C-A>. If a special key like Tab is used on its own you have to wrap it angle brackets like so: <Tab>.

ExternalCommand

ExternalCommand(command: ["/path/to/my/script.sh", "arg1", "arg2"], description: "Description to show in Help modal.")

Can be used to bind any script/shell command to a key. This command gets info about MPD’s and rmpc’s state as environment variables. All song paths are listed as their path relative to MPD’s music directory.

Environment

  • $CURRENT_SONG: can be used to access the currently playing song.
  • $STATE: Can be one of Playing, Paused or Stopped
  • $SELECTED_SONGS: contains a list of songs that are selected in the various panes. Songs are separated by \n, their order is undefined and should not be relied upon.
    • In Browser, Albums, Playlists and Artists it will list all songs contained in the currently highlighted item and all its subdirectories. If the item is a single song, only that one song will be present. If you mark multiple directories/songs, all of them will be listed in $SELECTED_SONGS.
    • In Queue, only the song under cursor will be listed.
    • In Search, While on the search stage, all the songs will be listed and while on the song list stage, only the song under cursor or all marked songs will be listed.

Default keybinds

Below you can find list of all the possible actions along with a short description and their default values.

Global

These keybinds work everywhere (except when a modal is active) and are used to control things like playback, navigation between different tabs and exiting rmpc.

Default KeyActionInfo
qQuitExit rmpc
~ShowHelpShow help modal with the current keybinds and their description
:CommandModeEnter command mode. Commands that can be used are the same as in the CLI
ExternalCommandSpecial keybind that allows you to bind external commands to a key. Check ExternalCommand for more info.
qShowHelpShow keybinds modal
OShowOutputsShow MPD outputs config modal
zToggleRepeatToggle repeat
cToggleSingleWhether to stop playing after single track or repeat track/playlist when repeat is on
xToggleRandomToggles random
vToggleConsumeRemove song from the queue after playing
pTogglePausePause/Unpause playback
sStopStop playback
.VolumeUpRaise volume
,VolumeDownLower volume
fSeekForwardSeek currently playing track forwards
bSeekBackSeek currently playing track backwards
>NextTrackPlay next track in the queue
<PreviousTrackPlay previous track in the queue
Right / TabNextTabSwitch to next tab
Left / <S-Tab>PreviousTabSwitch to previous tab
1SwitchToTab(“Queue”)Switch directly to Queue tab
2SwitchToTab(“Directories”)Switch directly to Directories tab
3SwitchToTab(“Artists”)Switch directly to Artists tab
4SwitchToTab(“Album”)Switch directly to Albums tab
5SwitchToTab(“Playlists”)Switch directly to Playlists tab
6SwitchToTab(“Search”)Switch directly to Search tab

These keybinds are used to navigate the different tabs and to interact with the items on the screen. Also includes some more advanced ones like moving the cursor up or down half a page, moving the cursor to the top or bottom of the list and controlling search mode.

Default KeyActionInfo
<C-c> / EscCloseClose/Stop whatever action is currently going on. Cancel filter, close a modal, etc.
kUpUp
lRightRight
spaceSelectMark current item as selected in the browser, useful for example when you want to add multiple songs to a playlist
EnterConfirmConfirm whatever action is currently going on
KMoveUpMove current item up, for example song in a queue
JMoveDownMove current item down, for example song in a queue
gTopJump all the way to the top
GBottomJump all the way to the bottom
<C-n>NextResultWhen a filter is active, jump to the next result
NPreviousResultWhen a filter is active, jump to the previous result
jDownDown
DDeleteDelete. For example a playlist, song from a playlist or wipe the current queue.
<C-u>UpHalfJump by half a screen up
<C-d>DownHalfJump by half a screen down
iFocusInputFocuses textbox if any is on the screen and is not focused
/EnterSearchEnter search mode
hLeftLeft
rRenameRename. Currently only for playlists
aAddAdd item to queue
AAddAllAdd all items to queue

Queue

Keybinds specific to the queue pane.

Default KeyActionInfo
<C-s>SaveSave current queue as a new playlist
DDeleteAllClear current queue
EnterPlayPlay song under cursor
aAddToPlaylistAdd song under cursor to an existing playlist
dDeleteRemove song under curor from the queue