rofi-keys(5)
β¨ rofi-keys(5) π β the rofi-keys manual page, bestie edition π
okay so picture this: it's rofi, and she has opinions about which key does what. this page is all about the rofi keys situation β aka Rofi Key and Mouse bindings π¦ and yes, you can override literally any of them. main character energy fr fr.
β¨ DESCRIPTION β¨
rofi supports overriding of any of it key and mouse binding. every single one, bestie. not a vibe check she's failing. π
πΈ Setting binding πΈ
you can set a binding straight from the commandline with -{bindingname}, like so:
rofi -show run -kb-accept-entry 'Control+Shift+space'
or you can do it the cozy way, in the configuration file:
configuration {
kb-accept-entry: "Control+Shift+space";
}
the key can be identified either by its name (like above π) or by its keycode:
configuration {
kb-accept-entry: "Control+Shift+[65]";
}
and an easy way to look up a keycode is xev(1) β go off, xev, we love a helpful icon. π
multiple keys can be specified for one action as a comma separated list, no cap:
configuration {
kb-accept-entry: "Control+Shift+space,Return";
}
By Default rofi reacts on pressing β so if you want it to act on the release of all keys instead, just prepend the binding with !:
configuration {
kb-accept-entry: "!Control+Shift+space,Return";
}
π¦ Unsetting a binding π¦
want it gone? pass an empty string, periodt:
configuration {
kb-clear-line: "";
}
π Keyboard Bindings π
okay bestie, here's the whole roster. every one of them. i'm not skipping a single one, i would never do that to you π«Ά
kb-primary-pasteβ Paste primary selection. Default:Control+V,Shift+Insertkb-secondary-pasteβ Paste clipboard. Default:Control+v,Insertkb-secondary-copyβ Copy current selection to clipboard. Default:Control+ckb-clear-lineβ Clear input line. Default:Control+wkb-move-frontβ Beginning of line. Default:Control+akb-move-endβ End of line. Default:Control+ekb-move-word-backβ Move back one word. Default:Alt+b,Control+Leftkb-move-word-forwardβ Move forward one word. Default:Alt+f,Control+Rightkb-move-char-backβ Move back one char. Default:Left,Control+bkb-move-char-forwardβ Move forward one char. Default:Right,Control+fkb-remove-word-backβ Delete previous word. Default:Control+Alt+h,Control+BackSpacekb-remove-word-forwardβ Delete next word. Default:Control+Alt+dkb-remove-char-forwardβ Delete next char. Default:Delete,Control+dkb-remove-char-backβ Delete previous char. Default:BackSpace,Shift+BackSpace,Control+hkb-remove-to-eolβ Delete till the end of line. Default:Control+kkb-remove-to-solβ Delete till the start of line. Default:Control+ukb-accept-entryβ Accept entry. Default:Control+j,Control+m,Return,KP_Enterkb-accept-customβ Use entered text as command (in ssh/run modes). Default:Control+Returnkb-accept-custom-altβ Use entered text as command (in ssh/run modes). Default:Control+Shift+Returnkb-accept-altβ Use alternate accept command. Default:Shift+Returnkb-delete-entryβ Delete entry from history. Default:Shift+Deletekb-mode-nextβ Switch to the next mode. Default:Shift+Right,Control+Tabkb-mode-previousβ Switch to the previous mode. Default:Shift+Left,Control+ISO_Left_Tabkb-mode-completeβ Start completion for mode. Default:Control+lkb-row-leftβ Go to the previous column. Default:Control+Page_Upkb-row-rightβ Go to the next column. Default:Control+Page_Downkb-row-upβ Select previous entry. Default:Up,Control+pkb-row-downβ Select next entry. Default:Down,Control+nkb-row-tabβ Go to next row, if one left, accept it, if no left next mode. Default: (empty)kb-element-nextβ Go to next row. Default:Tabkb-element-prevβ Go to previous row. Default:ISO_Left_Tabkb-page-prevβ Go to the previous page. Default:Page_Upkb-page-nextβ Go to the next page. Default:Page_Downkb-row-firstβ Go to the first entry. Default:Home,KP_Homekb-row-lastβ Go to the last entry. Default:End,KP_Endkb-row-selectβ Set selected item as input text. Default:Control+spacekb-screenshotβ Take a screenshot of the rofi window. Default:Alt+Skb-ellipsizeβ Toggle between ellipsize modes for displayed data. Default:Alt+periodkb-toggle-case-sensitivityβ Toggle case sensitivity. Default:grave,dead_gravekb-toggle-sortβ Toggle filtered menu sort. Default:Alt+gravekb-cancelβ Quit rofi. Default:Escape,Control+g,Control+bracketleftkb-custom-1β Custom keybinding 1. Default:Alt+1kb-custom-2β Custom keybinding 2. Default:Alt+2kb-custom-3β Custom keybinding 3. Default:Alt+3kb-custom-4β Custom keybinding 4. Default:Alt+4kb-custom-5β Custom Keybinding 5. Default:Alt+5kb-custom-6β Custom keybinding 6. Default:Alt+6kb-custom-7β Custom Keybinding 7. Default:Alt+7kb-custom-8β Custom keybinding 8. Default:Alt+8kb-custom-9β Custom keybinding 9. Default:Alt+9kb-custom-10β Custom keybinding 10. Default:Alt+0kb-custom-11β Custom keybinding 11. Default:Alt+exclamkb-custom-12β Custom keybinding 12. Default:Alt+atkb-custom-13β Custom keybinding 13. Default:Alt+numbersignkb-custom-14β Custom keybinding 14. Default:Alt+dollarkb-custom-15β Custom keybinding 15. Default:Alt+percentkb-custom-16β Custom keybinding 16. Default:Alt+dead_circumflexkb-custom-17β Custom keybinding 17. Default:Alt+ampersandkb-custom-18β Custom keybinding 18. Default:Alt+asteriskkb-custom-19β Custom Keybinding 19. Default:Alt+parenleftkb-select-1β Select row 1. Default:Super+1kb-select-2β Select row 2. Default:Super+2kb-select-3β Select row 3. Default:Super+3kb-select-4β Select row 4. Default:Super+4kb-select-5β Select row 5. Default:Super+5kb-select-6β Select row 6. Default:Super+6kb-select-7β Select row 7. Default:Super+7kb-select-8β Select row 8. Default:Super+8kb-select-9β Select row 9. Default:Super+9kb-select-10β Select row 10. Default:Super+0kb-entry-history-upβ Go up in the entry history. Default:Control+Upkb-entry-history-downβ Go down in the entry history. Default:Control+Downkb-matcher-upβ Select the next matcher. Default:Super+equalkb-matcher-downβ Select the previous matcher. Default:Super+minus
π Mouse Bindings π
can't forget the mouse girlies. they have their own whole section, iconic behavior:
ml-row-leftβ Go to the previous column. Default:ScrollLeftml-row-rightβ Go to the next column. Default:ScrollRightml-row-upβ Select previous entry. Default:ScrollUpml-row-downβ Select next entry. Default:ScrollDownme-select-entryβ Select hovered row. Default:MousePrimaryme-accept-entryβ Accept hovered row. Default:MouseDPrimaryme-accept-customβ Accept hovered row with custom action. Default:Control+MouseDPrimary
π Mouse key bindings π
the following mouse buttons can be bound:
- Primary: Primary (Left) mouse button click. π
- Secondary: Secondary (Right) mouse button click. π
- Middle: Middle mouse button click. π±οΈ
- Forward: The forward mouse button.
- Back: The back mouse button.
- ExtraN: The N'th mouse button. (Depending on mouse support).
and here's the lil formula for the identifier, iykyk:
Mouse<D><Button>
Dindicates optional Double press.Buttonis the button name.
so MouseDPrimary is Primary (Left) mouse button double click. literally that simple, slay. π
π 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. π
and that's the whole page bestie, you ate that π this lil beauty is from rofi and it's the rofi-keys(5) page β this version dated the same day it always was, brought to you with love and zero gatekeeping π now go bind some keys, you absolute icon. β¨π¦π
π¦ where this page comes from
- alpine 3.24: rofi-doc 2.0.0-r0 Β· MIT
- ubuntu resolute: rofi 2.0.0-0.2 Β· MIT
- ubuntu stonking: rofi 2.0.0-0.2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms