1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
|
# rofi-keys(5)
## NAME
**rofi keys** - Rofi Key and Mouse bindings
## DESCRIPTION
**rofi** supports overriding of any of it key and mouse binding.
## Setting binding
Bindings can be done on the commandline (-{bindingname}):
```bash
rofi -show run -kb-accept-entry 'Control+Shift+space'
```
or via the configuration file:
```css
configuration {
kb-accept-entry: "Control+Shift+space";
}
```
The key can be set by its name (see above) or its keycode:
```css
configuration {
kb-accept-entry: "Control+Shift+[65]";
}
```
An easy way to look up keycode is xev(1).
Multiple keys can be specified for an action as a comma separated list:
```css
configuration {
kb-accept-entry: "Control+Shift+space,Return";
}
```
By Default **rofi** reacts on pressing, to act on the release of all keys
prepend the binding with `!`:
```css
configuration {
kb-accept-entry: "!Control+Shift+space,Return";
}
```
## Unsetting a binding
To unset a binding, pass an empty string.
```css
configuration {
kb-clear-line: "";
}
```
## Keyboard Bindings
`kb-primary-paste`
Paste primary selection
Default: Control+V,Shift+Insert
`kb-secondary-paste`
Paste clipboard
Default: Control+v,Insert
`kb-secondary-copy`
Copy current selection to clipboard
Default: Control+c
`kb-clear-line`
Clear input line
Default: Control+w
`kb-move-front`
Beginning of line
Default: Control+a
`kb-move-end`
End of line
Default: Control+e
`kb-move-word-back`
Move back one word
Default: Alt+b,Control+Left
`kb-move-word-forward`
Move forward one word
Default: Alt+f,Control+Right
`kb-move-char-back`
Move back one char
Default: Left,Control+b
`kb-move-char-forward`
Move forward one char
Default: Right,Control+f
`kb-remove-word-back`
Delete previous word
Default: Control+Alt+h,Control+BackSpace
`kb-remove-word-forward`
Delete next word
Default: Control+Alt+d
`kb-remove-char-forward`
Delete next char
Default: Delete,Control+d
`kb-remove-char-back`
Delete previous char
Default: BackSpace,Shift+BackSpace,Control+h
`kb-remove-to-eol`
Delete till the end of line
Default: Control+k
`kb-remove-to-sol`
Delete till the start of line
Default: Control+u
`kb-accept-entry`
Accept entry
Default: Control+j,Control+m,Return,KP\_Enter
`kb-accept-custom`
Use entered text as command (in ssh/run modes)
Default: Control+Return
`kb-accept-custom-alt`
Use entered text as command (in ssh/run modes)
Default: Control+Shift+Return
`kb-accept-alt`
Use alternate accept command.
Default: Shift+Return
`kb-delete-entry`
Delete entry from history
Default: Shift+Delete
`kb-mode-next`
Switch to the next mode.
Default: Shift+Right,Control+Tab
`kb-mode-previous`
Switch to the previous mode.
Default: Shift+Left,Control+ISO\_Left\_Tab
`kb-mode-complete`
Start completion for mode.
Default: Control+l
`kb-row-left`
Go to the previous column
Default: Control+Page\_Up
`kb-row-right`
Go to the next column
Default: Control+Page\_Down
`kb-row-up`
Select previous entry
Default: Up,Control+p
`kb-row-down`
Select next entry
Default: Down,Control+n
`kb-row-tab`
Go to next row, if one left, accept it, if no left next mode.
Default:
`kb-element-next`
Go to next row.
Default: Tab
`kb-element-prev`
Go to previous row.
Default: ISO\_Left\_Tab
`kb-page-prev`
Go to the previous page
Default: Page\_Up
`kb-page-next`
Go to the next page
Default: Page\_Down
`kb-row-first`
Go to the first entry
Default: Home,KP\_Home
`kb-row-last`
Go to the last entry
Default: End,KP\_End
`kb-row-select`
Set selected item as input text
Default: Control+space
`kb-screenshot`
Take a screenshot of the rofi window
Default: Alt+S
`kb-ellipsize`
Toggle between ellipsize modes for displayed data
Default: Alt+period
`kb-toggle-case-sensitivity`
Toggle case sensitivity
Default: grave,dead\_grave
`kb-toggle-sort`
Toggle filtered menu sort
Default: Alt+grave
`kb-cancel`
Quit rofi
Default: Escape,Control+g,Control+bracketleft
`kb-custom-1`
Custom keybinding 1
Default: Alt+1
`kb-custom-2`
Custom keybinding 2
Default: Alt+2
`kb-custom-3`
Custom keybinding 3
Default: Alt+3
`kb-custom-4`
Custom keybinding 4
Default: Alt+4
`kb-custom-5`
Custom Keybinding 5
Default: Alt+5
`kb-custom-6`
Custom keybinding 6
Default: Alt+6
`kb-custom-7`
Custom Keybinding 7
Default: Alt+7
`kb-custom-8`
Custom keybinding 8
Default: Alt+8
`kb-custom-9`
Custom keybinding 9
Default: Alt+9
`kb-custom-10`
Custom keybinding 10
Default: Alt+0
`kb-custom-11`
Custom keybinding 11
Default: Alt+exclam
`kb-custom-12`
Custom keybinding 12
Default: Alt+at
`kb-custom-13`
Custom keybinding 13
Default: Alt+numbersign
`kb-custom-14`
Custom keybinding 14
Default: Alt+dollar
`kb-custom-15`
Custom keybinding 15
Default: Alt+percent
`kb-custom-16`
Custom keybinding 16
Default: Alt+dead\_circumflex
`kb-custom-17`
Custom keybinding 17
Default: Alt+ampersand
`kb-custom-18`
Custom keybinding 18
Default: Alt+asterisk
`kb-custom-19`
Custom Keybinding 19
Default: Alt+parenleft
`kb-select-1`
Select row 1
Default: Super+1
`kb-select-2`
Select row 2
Default: Super+2
`kb-select-3`
Select row 3
Default: Super+3
`kb-select-4`
Select row 4
Default: Super+4
`kb-select-5`
Select row 5
Default: Super+5
`kb-select-6`
Select row 6
Default: Super+6
`kb-select-7`
Select row 7
Default: Super+7
`kb-select-8`
Select row 8
Default: Super+8
`kb-select-9`
Select row 9
Default: Super+9
`kb-select-10`
Select row 10
Default: Super+0
`kb-entry-history-up`
Go up in the entry history.
Default: Control+Up
`kb-entry-history-down`
Go down in the entry history.
Default: Control+Down
## Mouse Bindings
`ml-row-left`
Go to the previous column
Default: ScrollLeft
`ml-row-right`
Go to the next column
Default: ScrollRight
`ml-row-up`
Select previous entry
Default: ScrollUp
`ml-row-down`
Select next entry
Default: ScrollDown
`me-select-entry`
Select hovered row
Default: MousePrimary
`me-accept-entry`
Accept hovered row
Default: MouseDPrimary
`me-accept-custom`
Accept hovered row with custom action
Default: Control+MouseDPrimary
## SEE ALSO
rofi(1), rofi-sensible-terminal(1), rofi-theme(5), rofi-script(5)
## AUTHOR
Qball Cow <qball@gmpclient.org>
Rasmus Steinke <rasi@xssn.at>
Morgane Glidic <sardemff7+rofi@sardemff7.net>
Original code based on work by: Sean Pringle <sean.pringle@gmail.com>
For a full list of authors, check the AUTHORS file.
|