.config/moc/keymap (view raw)
1# This is the example keymap file for MOC. You can define your own key
2# bindings for MOC commands by creating your own keymap file and setting
3# the 'Keymap' option in ~/.moc/config.
4#
5# The format of this file is:
6#
7# - Lines beginning with # are comments.
8# - Blank lines are ignored.
9# - Every other line is expected to be in one of the formats:
10#
11# COMMAND = [KEY ...]
12# COMMAND += KEY ...
13#
14# The KEY can be:
15#
16# - Just a char, like i, L, ", *
17# - CTRL-KEY sequence: ^k (CTRL-k), ^4
18# - ALT-KEY (meta) sequence: M-j (ALT-j), M-/
19# - Special keys: DOWN, UP
20# LEFT, RIGHT
21# HOME, END
22# BACKSPACE
23# INS, DEL
24# ENTER
25# PAGE_UP, PAGE_DOWN
26# SPACE, TAB
27# KEYPAD_CENTER
28# ESCAPE
29# F1 - F12
30#
31# Note that the use of a digit as a KEY is deprecated.
32#
33# Maximum number of KEYs for one COMMAND is 5.
34#
35# Omitting the KEY for a COMMAND will unbind all its default keys. They
36# will also be automatically unbound when you bind new KEYs to it. Individual
37# default KEYs will be automatically unbound when they are explicitly bound
38# to some other COMMAND.
39#
40# Using the '+=' form will cause the KEYs to be appended to any existing
41# (default or explicit) bindings for the COMMAND. Appending an existing
42# default binding for the same COMMAND will cause MOC to think of that KEY
43# as then being explicitly bound.
44#
45# Only one binding for any given COMMAND can appear in the keymap file. One
46# exception to this is that if the default keys for a COMMAND are explicitly
47# unbound then a subsequent binding may appear for it. A second exception
48# is that multiple appending bindings may appear.
49#
50# Meta-key detection is sensitive to the ESCDELAY environment variable (see
51# the manpage for ncurses(3)). In its absence, MOC resets the default
52# delay to 25ms. If you need to emulate meta-key sequences using the ESC
53# key, then you may need to set the value of ESCDELAY back to its ncurses
54# default of 1000ms (but doing so will make the response to the ESC key
55# sluggish).
56#
57# If MOC's keypresses are being filtered through some other program (in a
58# GUI environment, for example) which also does meta-key detection, then
59# MOC is at the mercy of the timings with which that program presents them.
60#
61# Default key configuration for MOC (and a list of all available commands):
62
63# MOC control keys:
64quit_client = q z
65quit = Q Z
66
67# Menu and interface control keys:
68go = ENTER
69menu_down = DOWN j
70menu_up = UP k
71menu_page_down = PAGE_DOWN d
72menu_page_up = PAGE_UP u
73menu_first_item = HOME g
74menu_last_item = END G
75search_menu = /
76toggle_read_tags = f
77toggle_show_time = ^t
78toggle_show_format = ^f
79toggle_menu = TAB
80toggle_layout = ^l
81toggle_hidden_files = ^'
82next_search = N
83show_lyrics = L
84theme_menu = T
85help = ?
86refresh = ^r
87reload = r
88
89# Audio playing and positioning keys:
90seek_forward = RIGHT l
91seek_backward = LEFT h
92seek_forward_fast = ]
93seek_backward_fast = [
94pause = p SPACE
95stop = s
96next = n
97previous = b
98toggle_shuffle = S
99toggle_repeat = R
100toggle_auto_next = X
101toggle_mixer = t
102go_url = o
103
104# Volume control keys:
105volume_down_1 = <
106volume_up_1 = >
107volume_down_5 = ,
108volume_up_5 = .
109volume_10 = M-1
110volume_20 = M-2
111volume_30 = M-3
112volume_40 = M-4
113volume_50 = M-5
114volume_60 = M-6
115volume_70 = M-7
116volume_80 = M-8
117volume_90 = M-9
118
119# Directory navigation keys: defaults are Shift-number
120# (i.e., 'shift 1' -> '!' -> 'Fastdir1').
121go_to_a_directory = i
122go_to_music_directory = m
123go_to_fast_dir1 = !
124go_to_fast_dir2 = @
125go_to_fast_dir3 = #
126go_to_fast_dir4 = $
127go_to_fast_dir5 = %
128go_to_fast_dir6 = ^
129go_to_fast_dir7 = &
130go_to_fast_dir8 = *
131go_to_fast_dir9 = (
132go_to_fast_dir10 = )
133go_to_playing_file = ^o
134go_up = H
135
136# Playlist specific keys:
137add_file = y
138add_directory = Y
139plist_add_stream = ^a
140delete_from_playlist = x
141playlist_full_paths = P
142plist_move_up = J
143plist_move_down = K
144save_playlist = V
145remove_dead_entries = ^x
146clear_playlist = D
147
148# Queue manipulation keys:
149enqueue_file = ^m
150clear_queue = M-m
151
152# User interaction control:
153history_up = UP
154history_down = DOWN
155delete_to_start = ^h
156delete_to_end = ^l
157cancel = ESCAPE
158hide_message = ^;
159
160# Softmixer specific keys:
161toggle_softmixer = w
162toggle_make_mono = M
163
164# Equalizer specific keys:
165toggle_equalizer = E
166equalizer_refresh = e
167equalizer_prev = ^d
168equalizer_next = ^u
169
170# External commands:
171mark_start = '
172mark_end = "
173exec_command1 = F1
174exec_command2 = F2
175exec_command3 = F3
176exec_command4 = F4
177exec_command5 = F5
178exec_command6 = F6
179exec_command7 = F7
180exec_command8 = F8
181exec_command9 = F9
182exec_command10 = F10
183
184# The following commands are available but not assigned to any keys by
185# default:
186#
187# toggle_percent Switch on/off play progress bar time percentage
188#