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 modes)
176
177
178       Default:  Control+Return
179
180
181   kb-accept-custom-alt
182       Use entered text as command (in ssh/run modes)
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
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:
256
257
258   kb-element-next
259       Go to next row.
260
261
262       Default: Tab
263
264
265   kb-element-prev
266       Go to previous row.
267
268
269       Default: ISO_Left_Tab
270
271
272   kb-page-prev
273       Go to the previous page
274
275
276       Default:  Page_Up
277
278
279   kb-page-next
280       Go to the next page
281
282
283       Default:  Page_Down
284
285
286   kb-row-first
287       Go to the first entry
288
289
290       Default:  Home,KP_Home
291
292
293   kb-row-last
294       Go to the last entry
295
296
297       Default:  End,KP_End
298
299
300   kb-row-select
301       Set selected item as input text
302
303
304       Default:  Control+space
305
306
307   kb-screenshot
308       Take a screenshot of the rofi window
309
310
311       Default:  Alt+S
312
313
314   kb-ellipsize
315       Toggle between ellipsize modes for displayed data
316
317
318       Default:  Alt+period
319
320
321   kb-toggle-case-sensitivity
322       Toggle case sensitivity
323
324
325       Default:  grave,dead_grave
326
327
328   kb-toggle-sort
329       Toggle sort
330
331
332       Default:  Alt+grave
333
334
335   kb-cancel
336       Quit rofi
337
338
339       Default:  Escape,Control+g,Control+bracketleft
340
341
342   kb-custom-1
343       Custom keybinding 1
344
345
346       Default:  Alt+1
347
348
349   kb-custom-2
350       Custom keybinding 2
351
352
353       Default:  Alt+2
354
355
356   kb-custom-3
357       Custom keybinding 3
358
359
360       Default:  Alt+3
361
362
363   kb-custom-4
364       Custom keybinding 4
365
366
367       Default:  Alt+4
368
369
370   kb-custom-5
371       Custom Keybinding 5
372
373
374       Default:  Alt+5
375
376
377   kb-custom-6
378       Custom keybinding 6
379
380
381       Default:  Alt+6
382
383
384   kb-custom-7
385       Custom Keybinding 7
386
387
388       Default:  Alt+7
389
390
391   kb-custom-8
392       Custom keybinding 8
393
394
395       Default:  Alt+8
396
397
398   kb-custom-9
399       Custom keybinding 9
400
401
402       Default:  Alt+9
403
404
405   kb-custom-10
406       Custom keybinding 10
407
408
409       Default:  Alt+0
410
411
412   kb-custom-11
413       Custom keybinding 11
414
415
416       Default:  Alt+exclam
417
418
419   kb-custom-12
420       Custom keybinding 12
421
422
423       Default:  Alt+at
424
425
426   kb-custom-13
427       Custom keybinding 13
428
429
430       Default:  Alt+numbersign
431
432
433   kb-custom-14
434       Custom keybinding 14
435
436
437       Default:  Alt+dollar
438
439
440   kb-custom-15
441       Custom keybinding 15
442
443
444       Default:  Alt+percent
445
446
447   kb-custom-16
448       Custom keybinding 16
449
450
451       Default:  Alt+dead_circumflex
452
453
454   kb-custom-17
455       Custom keybinding 17
456
457
458       Default:  Alt+ampersand
459
460
461   kb-custom-18
462       Custom keybinding 18
463
464
465       Default:  Alt+asterisk
466
467
468   kb-custom-19
469       Custom Keybinding 19
470
471
472       Default:  Alt+parenleft
473
474
475   kb-select-1
476       Select row 1
477
478
479       Default:  Super+1
480
481
482   kb-select-2
483       Select row 2
484
485
486       Default:  Super+2
487
488
489   kb-select-3
490       Select row 3
491
492
493       Default:  Super+3
494
495
496   kb-select-4
497       Select row 4
498
499
500       Default:  Super+4
501
502
503   kb-select-5
504       Select row 5
505
506
507       Default:  Super+5
508
509
510   kb-select-6
511       Select row 6
512
513
514       Default:  Super+6
515
516
517   kb-select-7
518       Select row 7
519
520
521       Default:  Super+7
522
523
524   kb-select-8
525       Select row 8
526
527
528       Default:  Super+8
529
530
531   kb-select-9
532       Select row 9
533
534
535       Default:  Super+9
536
537
538   kb-select-10
539       Select row 10
540
541
542       Default:  Super+0
543
544

Mouse Bindings

546   ml-row-left
547       Go to the previous column
548
549
550       Default:  ScrollLeft
551
552
553   ml-row-right
554       Go to the next column
555
556
557       Default:  ScrollRight
558
559
560   ml-row-up
561       Select previous entry
562
563
564       Default:  ScrollUp
565
566
567   ml-row-down
568       Select next entry
569
570
571       Default:  ScrollDown
572
573
574   me-select-entry
575       Select hovered row
576
577
578       Default:  MousePrimary
579
580
581   me-accept-entry
582       Accept hovered row
583
584
585       Default:  MouseDPrimary
586
587
588   me-accept-custom
589       Accept hovered row with custom action
590
591
592       Default:  Control+MouseDPrimary
593
594

SEE ALSO

596       rofi(1), rofi-sensible-terminal(1), rofi-theme(5), rofi-script(5)
597
598

AUTHOR

600       Qball Cow qball@gmpclient.org ⟨mailto:qball@gmpclient.org⟩
601
602
603       Rasmus Steinke rasi@xssn.at ⟨mailto:rasi@xssn.at⟩
604
605
606       Morgane               Glidic               sardemff7+rofi@sardemff7.net
607       ⟨mailto:sardemff7+rofi@sardemff7.net⟩
608
609
610       Original  code  based  on  work by: Sean Pringle sean.pringle@gmail.com
611       ⟨mailto:sean.pringle@gmail.com⟩
612
613
614       For a full list of authors, check the AUTHORS file.
615
616
617
618                                   rofi-keys                      ROFI-KEYS(5)
Impressum