bindings (4886B)
1 # vim: filetype=conf foldmethod=marker 2 # Each action has runtime checks, so a few actions can be bound to the same key. 3 # Actions are tested in order of definition. 4 # Whatever's not defined here will be defined by ncmpcpp using default bindings. 5 # Switching screens {{{1 6 def_key "+" 7 show_clock 8 9 def_key "F" 10 show_browser 11 12 def_key "P" 13 show_playlist 14 15 def_key "." 16 show_lyrics 17 18 def_key "m" 19 show_media_library 20 21 def_key "t" 22 show_tag_editor 23 24 def_key "v" 25 show_visualizer 26 27 def_key "v" 28 toggle_visualization_type 29 30 def_key "s" 31 show_search_engine 32 33 def_key "?" 34 show_help 35 36 def_key "T" 37 toggle_library_tag_type 38 def_key "T" 39 dummy 40 # This lets you "lock" a screen and switch between them. 41 # So basically, window splits. 42 def_key "ctrl-l" 43 toggle_screen_lock 44 45 def_key "tab" 46 next_screen 47 48 def_key "shift-tab" 49 previous_screen 50 51 # Select current item 52 def_key "*" 53 select_item 54 55 def_key "V" 56 reverse_selection 57 58 def_key "ctrl-v" 59 remove_selection 60 61 # This pops up a menu of where to add the item 62 def_key "a" 63 add_selected_items 64 65 # This adds immediately to current playlist 66 def_key "A" 67 add_item_to_playlist 68 69 def_key "/" 70 find 71 def_key "/" 72 find_item_forward 73 74 def_key "?" 75 find 76 def_key "?" 77 find_item_backward 78 79 # Select whatever matches your search 80 # Bound to ctrl-/, didn't accept by name but accepts non-ascii chars, so that's what I use. 81 def_key "" 82 select_found_items 83 84 # Global {{{1 85 def_key "y" 86 save_tag_changes 87 88 def_key "y" 89 start_searching 90 91 def_key "y" 92 toggle_single 93 94 def_key "=" 95 volume_up 96 97 def_key "-" 98 volume_down 99 100 def_key "j" 101 scroll_down 102 103 def_key "k" 104 scroll_up 105 106 def_key "ctrl-u" 107 page_up 108 109 def_key "ctrl-d" 110 page_down 111 112 def_key "h" 113 previous_column 114 115 def_key "l" 116 next_column 117 118 def_key "n" 119 next_found_item 120 121 def_key "N" 122 previous_found_item 123 124 def_key "G" 125 move_end 126 127 def_key "g" 128 move_home 129 130 def_key "u" 131 update_database 132 133 # Locate song in browser 134 def_key "ctrl-f" 135 jump_to_browser 136 137 def_key "f" 138 seek_forward 139 def_key "right" 140 seek_forward 141 142 def_key "b" 143 seek_backward 144 def_key "left" 145 seek_backward 146 147 def_key "alt-f" 148 jump_to_position_in_song 149 150 def_key "space" 151 pause 152 def_key "p" 153 pause 154 155 def_key "space" 156 play 157 def_key "p" 158 play 159 160 # Filter by regular expression 161 def_key "\\" 162 apply_filter 163 164 def_key "|" 165 toggle_interface 166 167 def_key "mouse" 168 mouse_event 169 # Mouse events are: 170 # Global 171 # Left click on Playing/Paused: Play/pause 172 # Left click on progressbar: Jump to pointed position in playing song 173 # Mouse wheel on Volume: xx: Play/pause 174 # Mouse wheel on main window: Scroll 175 # Playlist 176 # Left click: Select pointed item 177 # Right click: Play 178 # Browser 179 # Left click on directory: Enter pointed directory 180 # Right click on directory: Add pointed directory to playlist 181 # Left click on song/playlist: Add pointed item to playlist 182 # Right click on song/playlist: Add pointed item to playlist and play it 183 # Search engine 184 # Left click: Highlight/switch value 185 # Right click: Change value 186 # Media library 187 # Column Left/middle 188 # Left click: Select pointed item: true 189 # Right click: Add item to playlist: true 190 # Column Right 191 # Left Click: Add pointed item to playlist: true 192 # Right Click: Add pointed item to playlist and play it: true 193 # Playlist editor 194 # Column Left 195 # Left click: Select pointed item: true 196 # Right click: Add item to playlist: true 197 # Column Right 198 # Left click: Add pointed item to playlist: true 199 # Right click: Add pointed item to playlist and play it: true 200 # Tiny tag editor 201 # Left click: Select option 202 # Right click: Set value/execute 203 # Tag editor 204 # Column Left 205 # Left click: Enter pointed directory/select pointed album: true 206 # Right click: Toggle view (directories/albums 207 # Column Middle 208 # Left click: Select option: true 209 # Right click: Set value/execute: true 210 # Column Right 211 # Left click: Select pointed item: true 212 # Right click: Set value: true 213 # Outputs 214 # Left click: Select pointed output 215 # Right click: Toggle output 216 # Current playlist {{{1 217 # Move selected items up/down 218 def_key "J" 219 move_sort_order_down 220 def_key "J" 221 move_selected_items_down 222 223 def_key "K" 224 move_sort_order_up 225 def_key "K" 226 move_selected_items_up 227 228 # Move selected items to cursor 229 def_key "H" 230 move_selected_items_to 231 232 def_key "x" 233 delete_playlist_items 234 235 # Load stored playlist from file 236 def_key "O" 237 load 238 239 # Browser {{{1 240 def_key "h" 241 jump_to_parent_directory 242 243 def_key "l" 244 enter_directory 245 246 # Browse MPD database/local filesystem 247 def_key "F" 248 change_browse_mode 249 250 def_key "x" 251 delete_browser_items 252 # Search engine {{{1 253 # Modify option/run action 254 def_key "l" 255 run_action 256 257 def_key "s" 258 reset_search_engine 259 260 def_key "y" 261 start_searching 262 # Media library {{{1 263 # Switch between two/three columns mode 264 def_key "m" 265 toggle_media_library_columns_mode 266 267 # Locate currently playing song 268 def_key "o" 269 jump_to_playing_song 270 271 def_key "(" 272 master_screen 273 def_key ")" 274 slave_screen