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+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: (empty)
  • 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
  • kb-matcher-up β€” Select the next matcher. Default: Super+equal
  • kb-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: 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

πŸŽ€ 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>
  • D indicates optional Double press.
  • Button is 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