1ROFI-KEYS(5)                  File Formats Manual                 ROFI-KEYS(5)
2
3
4

NAME

6       rofi keys - Rofi Key and Mouse bindings
7
8

DESCRIPTION

10       rofi supports overriding of any of it key and mouse binding.
11
12

Setting binding

14       Bindings can be done on the commandline (-{bindingname}):
15
16
17              rofi -show run -kb-accept-entry 'Control+Shift+space'
18
19
20
21       or via the configuration file:
22
23
24              configuration {
25                kb-accept-entry: "Control+Shift+space";
26              }
27
28
29
30       The key can be set by its name (see above) or its keycode:
31
32
33              configuration {
34                kb-accept-entry: "Control+Shift+[65]";
35              }
36
37
38
39       An easy way to look up keycode is xev(1).
40
41
42       Multiple keys can be specified for an action as a comma separated list:
43
44
45              configuration {
46                kb-accept-entry: "Control+Shift+space,Return";
47              }
48
49
50
51       By  Default  rofi reacts on pressing, to act on the release of all keys
52       prepend the binding with !:
53
54
55              configuration {
56                kb-accept-entry: "!Control+Shift+space,Return";
57              }
58
59
60

Keyboard Bindings

62   kb-primary-paste:
63       Paste primary selection
64
65
66       Default:  Control+V,Shift+Insert
67
68
69   kb-secondary-paste
70       Paste clipboard
71
72
73       Default:    Control+v,Insert
74
75
76   kb-clear-line
77       Clear input line
78
79
80       Default:    Control+w
81
82
83   kb-move-front
84       Beginning of line
85
86
87       Default:    Control+a
88
89
90   kb-move-end
91       End of line
92
93
94       Default:    Control+e
95
96
97   kb-move-word-back
98       Move back one word
99
100
101       Default:    Alt+b,Control+Left
102
103
104   kb-move-word-forward
105       Move forward one word
106
107
108       Default:    Alt+f,Control+Right
109
110
111   kb-move-char-back
112       Move back one char
113
114
115       Default:    Left,Control+b
116
117
118   kb-move-char-forward
119       Move forward one char
120
121
122       Default:    Right,Control+f
123
124
125   kb-remove-word-back
126       Delete previous word
127
128
129       Default:    Control+Alt+h,Control+BackSpace
130
131
132   kb-remove-word-forward
133       Delete next word
134
135
136       Default:    Control+Alt+d
137
138
139   kb-remove-char-forward
140       Delete next char
141
142
143       Default:    Delete,Control+d
144
145
146   kb-remove-char-back
147       Delete previous char
148
149
150       Default:    BackSpace,Shift+BackSpace,Control+h
151
152
153   kb-remove-to-eol
154       Delete till the end of line
155
156
157       Default:    Control+k
158
159
160   kb-remove-to-sol
161       Delete till the start of line
162
163
164       Default:    Control+u
165
166
167   kb-accept-entry
168       Accept entry
169
170
171       Default:    Control+j,Control+m,Return,KP_Enter
172
173
174   kb-accept-custom
175       Use entered text as command (in ssh/run modi)
176
177
178       Default:    Control+Return
179
180
181   kb-accept-custom-alt
182       Use entered text as command (in ssh/run modi)
183
184
185       Default:    Control+Shift+Return
186
187
188   kb-accept-alt
189       Use alternate accept command.
190
191
192       Default:    Shift+Return
193
194
195   kb-delete-entry
196       Delete entry from history
197
198
199       Default:    Shift+Delete
200
201
202   kb-mode-next
203       Switch to the next mode.
204
205
206       Default:    Shift+Right,Control+Tab
207
208
209   kb-mode-previous
210       Switch to the previous mode.
211
212
213       Default:    Shift+Left,Control+ISO_Left_Tab
214
215
216   kb-mode-complete
217       Start completion for mode.
218
219
220       Default:    Control+l
221
222
223   kb-row-left
224       Go to the previous column
225
226
227       Default:    Control+Page_Up
228
229
230   kb-row-right
231       Go to the next column
232
233
234       Default:    Control+Page_Down
235
236
237   kb-row-up
238       Select previous entry
239
240
241       Default:    Up,Control+p,ISO_Left_Tab
242
243
244   kb-row-down
245       Select next entry
246
247
248       Default:    Down,Control+n
249
250
251   kb-row-tab
252       Go to next row, if one left, accept it, if no left next mode.
253
254
255       Default:    Tab
256
257
258   kb-page-prev
259       Go to the previous page
260
261
262       Default:    Page_Up
263
264
265   kb-page-next
266       Go to the next page
267
268
269       Default:    Page_Down
270
271
272   kb-row-first
273       Go to the first entry
274
275
276       Default:    Home,KP_Home
277
278
279   kb-row-last
280       Go to the last entry
281
282
283       Default:    End,KP_End
284
285
286   kb-row-select
287       Set selected item as input text
288
289
290       Default:    Control+space
291
292
293   kb-screenshot
294       Take a screenshot of the rofi window
295
296
297       Default:    Alt+S
298
299
300   kb-ellipsize
301       Toggle between ellipsize modes for displayed data
302
303
304       Default:    Alt+period
305
306
307   kb-toggle-case-sensitivity
308       Toggle case sensitivity
309
310
311       Default:    grave,dead_grave
312
313
314   kb-toggle-sort
315       Toggle sort
316
317
318       Default:    Alt+grave
319
320
321   kb-cancel
322       Quit rofi
323
324
325       Default:    Escape,Control+g,Control+bracketleft
326
327
328   kb-custom-1
329       Custom keybinding 1
330
331
332       Default:    Alt+1
333
334
335   kb-custom-2
336       Custom keybinding 2
337
338
339       Default:    Alt+2
340
341
342   kb-custom-3
343       Custom keybinding 3
344
345
346       Default:    Alt+3
347
348
349   kb-custom-4
350       Custom keybinding 4
351
352
353       Default:    Alt+4
354
355
356   kb-custom-5
357       Custom Keybinding 5
358
359
360       Default:    Alt+5
361
362
363   kb-custom-6
364       Custom keybinding 6
365
366
367       Default:    Alt+6
368
369
370   kb-custom-7
371       Custom Keybinding 7
372
373
374       Default:    Alt+7
375
376
377   kb-custom-8
378       Custom keybinding 8
379
380
381       Default:    Alt+8
382
383
384   kb-custom-9
385       Custom keybinding 9
386
387
388       Default:    Alt+9
389
390
391   kb-custom-10
392       Custom keybinding 10
393
394
395       Default:    Alt+0
396
397
398   kb-custom-11
399       Custom keybinding 11
400
401
402       Default:    Alt+exclam
403
404
405   kb-custom-12
406       Custom keybinding 12
407
408
409       Default:    Alt+at
410
411
412   kb-custom-13
413       Custom keybinding 13
414
415
416       Default:    Alt+numbersign
417
418
419   kb-custom-14
420       Custom keybinding 14
421
422
423       Default:    Alt+dollar
424
425
426   kb-custom-15
427       Custom keybinding 15
428
429
430       Default:    Alt+percent
431
432
433   kb-custom-16
434       Custom keybinding 16
435
436
437       Default:    Alt+dead_circumflex
438
439
440   kb-custom-17
441       Custom keybinding 17
442
443
444       Default:    Alt+ampersand
445
446
447   kb-custom-18
448       Custom keybinding 18
449
450
451       Default:    Alt+asterisk
452
453
454   kb-custom-19
455       Custom Keybinding 19
456
457
458       Default:    Alt+parenleft
459
460
461   kb-select-1
462       Select row 1
463
464
465       Default:    Super+1
466
467
468   kb-select-2
469       Select row 2
470
471
472       Default:    Super+2
473
474
475   kb-select-3
476       Select row 3
477
478
479       Default:    Super+3
480
481
482   kb-select-4
483       Select row 4
484
485
486       Default:    Super+4
487
488
489   kb-select-5
490       Select row 5
491
492
493       Default:    Super+5
494
495
496   kb-select-6
497       Select row 6
498
499
500       Default:    Super+6
501
502
503   kb-select-7
504       Select row 7
505
506
507       Default:    Super+7
508
509
510   kb-select-8
511       Select row 8
512
513
514       Default:    Super+8
515
516
517   kb-select-9
518       Select row 9
519
520
521       Default:    Super+9
522
523
524   kb-select-10
525       Select row 10
526
527
528       Default:    Super+0
529
530

Mouse Bindings

532   ml-row-left
533       Go to the previous column
534
535
536       Default:    ScrollLeft
537
538
539   ml-row-right
540       Go to the next column
541
542
543       Default:    ScrollRight
544
545
546   ml-row-up
547       Select previous entry
548
549
550       Default:    ScrollUp
551
552
553   ml-row-down
554       Select next entry
555
556
557       Default:    ScrollDown
558
559
560   me-select-entry
561       Select hovered row
562
563
564       Default:   MousePrimary
565
566
567   me-accept-entry
568       Accept hovered row
569
570
571       Default:    MouseDPrimary
572
573
574   me-accept-custom
575       Accept hovered row with custom action
576
577
578       Default:    Control+MouseDPrimary
579
580

SEE ALSO

582       rofi(1), rofi-sensible-terminal(1), rofi-theme(5), rofi-script(5)
583
584

AUTHOR

586       Qball Cow ⟨qball@gmpclient.org⟩
587
588
589       Rasmus Steinke ⟨rasi@xssn.at⟩
590
591
592       Quentin Glidic ⟨sardemff7+rofi@sardemff7.net⟩
593
594
595       Original code based on work by: Sean Pringle ⟨sean.pringle@gmail.com⟩
596
597
598       For a full list of authors, check the AUTHORS file.
599
600
601
602                                   rofi-keys                      ROFI-KEYS(5)
Impressum