Code

Changed option syntax and added list-format and status-format to CONFIGURATION
[ncmpc.git] / doc / keys.sample
1 ##
2 ## Key bindings for ncmpc (~/.ncmpc/keys)
3 ## 
4 ##
5 ## Its possible to bind maximum three keys to a command
6 ## Keys can be defined with a character or a decimal/hexadecimal value.
7 ## A command can be disabled by binding it to 0 (key bind quit = 0).
8 ## 
9 ## Example - bind the Q key to quit in three different ways:
10 ## (character,decimal [81], hexadecimal [51])
11 ##
12 ## key quit = 'Q'
13 ## key quit = 81
14 ## key quit = 0x51
15 ##
17 # Play/Enter directory
18 key play = 13
20 # Pause
21 key pause = 'P'
23 # Stop
24 key stop = 's',  263
26 # Next track
27 key next = 62
29 # Previous track
30 key prev = 60
32 # Increase volume
33 key volume-up = '+',  261
35 # Decrease volume
36 key volume-down = '-',  260
38 # Toggle find mode
39 key wrap-mode = 'w'
41 # Toggle auto center mode
42 key autocenter-mode = 'U'
44 # Select/deselect song in playlist
45 key select = 32,  'a'
47 # Delete song from playlist
48 key delete = 330,  'd'
50 # Shuffle playlist
51 key shuffle = 'Z'
53 # Clear playlist
54 key clear = 'c'
56 # Toggle repeat mode
57 key repeat = 'r'
59 # Toggle random mode
60 key random = 'z'
62 # Save playlist
63 key save = 'S'
65 # Move cursor up
66 key up = 259,  44
68 # Move cursor down
69 key down = 258,  46
71 # Home
72 key home = 262,  1
74 # End
75 key end = 360,  5
77 # Page up
78 key pgup = 339,  'A'
80 # Page down
81 key pgdn = 338,  'B'
83 # Forward find
84 key find = 47
86 # Forward find next
87 key find-next = 'n'
89 # Backward find
90 key rfind = 63
92 # Backward find previous
93 key rfind-next = 'p'
95 # Next screen
96 key screen-next = 9
98 # Help screen
99 key screen-help = '1',  265,  'h'
101 # Playlist screen
102 key screen-playlist = '2',  266
104 # Browse screen
105 key screen-browse = '3',  267
107 # Update screen
108 key update = 'u'
110 # Quit ncmpc
111 key quit = 'q'