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
65quit                  = Q
66
67# Menu and interface control keys:
68go                    = ENTER
69menu_down             = DOWN
70menu_up               = UP
71menu_page_down        = PAGE_DOWN
72menu_page_up          = PAGE_UP
73menu_first_item       = HOME
74menu_last_item        = END
75search_menu           = g /
76toggle_read_tags      = f
77toggle_show_time      = ^t
78toggle_show_format    = ^f
79toggle_menu           = TAB
80toggle_layout         = l
81toggle_hidden_files   = H
82next_search           = ^g ^n
83show_lyrics           = L
84theme_menu            = T
85help                  = h ?
86refresh               = ^r
87reload                = r
88
89# Audio playing and positioning keys:
90seek_forward          = RIGHT
91seek_backward         = LEFT
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          = x
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    = G
134go_up                 = U
135
136# Playlist specific keys:
137add_file              = a
138add_directory         = A
139plist_add_stream      = ^u
140delete_from_playlist  = d
141playlist_full_paths   = P
142plist_move_up         = u
143plist_move_down       = j
144save_playlist         = V
145remove_dead_entries   = Y
146clear_playlist        = C
147
148# Queue manipulation keys:
149enqueue_file          = z
150clear_queue           = Z
151
152# User interaction control:
153history_up            = UP
154history_down          = DOWN
155delete_to_start       = ^u
156delete_to_end         = ^k
157cancel                = ^x ESCAPE
158hide_message          = M
159
160# Softmixer specific keys:
161toggle_softmixer      = w
162toggle_make_mono      = J
163
164# Equalizer specific keys:
165toggle_equalizer      = E
166equalizer_refresh     = e
167equalizer_prev        = K
168equalizer_next        = k
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#
189