rofi keys - Rofi Key and Mouse bindings
rofi supports overriding of any of it key and mouse binding.
Bindings can be done on the commandline (-{bindingname}):
rofi -show run -kb-accept-entry 'Control+Shift+space'
or via the configuration file:
configuration {
kb-accept-entry: "Control+Shift+space";
}
The key can be set by its name (see above) or its keycode:
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:
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 !
:
configuration {
kb-accept-entry: "!Control+Shift+space,Return";
}
Paste primary selection
Default: Control+V,Shift+Insert
Paste clipboard
Default: Control+v,Insert
Copy current selection to clipboard
Default: Control+c
Clear input line
Default: Control+w
Beginning of line
Default: Control+a
End of line
Default: Control+e
Move back one word
Default: Alt+b,Control+Left
Move forward one word
Default: Alt+f,Control+Right
Move back one char
Default: Left,Control+b
Move forward one char
Default: Right,Control+f
Delete previous word
Default: Control+Alt+h,Control+BackSpace
Delete next word
Default: Control+Alt+d
Delete next char
Default: Delete,Control+d
Delete previous char
Default: BackSpace,Shift+BackSpace,Control+h
Delete till the end of line
Default: Control+k
Delete till the start of line
Default: Control+u
Accept entry
Default: Control+j,Control+m,Return,KP_Enter
Use entered text as command (in ssh/run modes)
Default: Control+Return
Use entered text as command (in ssh/run modes)
Default: Control+Shift+Return
Use alternate accept command.
Default: Shift+Return
Delete entry from history
Default: Shift+Delete
Switch to the next mode.
Default: Shift+Right,Control+Tab
Switch to the previous mode.
Default: Shift+Left,Control+ISO_Left_Tab
Start completion for mode.
Default: Control+l
Go to the previous column
Default: Control+Page_Up
Go to the next column
Default: Control+Page_Down
Select previous entry
Default: Up,Control+p
Select next entry
Default: Down,Control+n
Go to next row, if one left, accept it, if no left next mode.
Default:
Go to next row.
Default: Tab
Go to previous row.
Default: ISO_Left_Tab
Go to the previous page
Default: Page_Up
Go to the next page
Default: Page_Down
Go to the first entry
Default: Home,KP_Home
Go to the last entry
Default: End,KP_End
Set selected item as input text
Default: Control+space
Take a screenshot of the rofi window
Default: Alt+S
Toggle between ellipsize modes for displayed data
Default: Alt+period
Toggle case sensitivity
Default: grave,dead_grave
Toggle sort
Default: Alt+grave
Quit rofi
Default: Escape,Control+g,Control+bracketleft
Custom keybinding 1
Default: Alt+1
Custom keybinding 2
Default: Alt+2
Custom keybinding 3
Default: Alt+3
Custom keybinding 4
Default: Alt+4
Custom Keybinding 5
Default: Alt+5
Custom keybinding 6
Default: Alt+6
Custom Keybinding 7
Default: Alt+7
Custom keybinding 8
Default: Alt+8
Custom keybinding 9
Default: Alt+9
Custom keybinding 10
Default: Alt+0
Custom keybinding 11
Default: Alt+exclam
Custom keybinding 12
Default: Alt+at
Custom keybinding 13
Default: Alt+numbersign
Custom keybinding 14
Default: Alt+dollar
Custom keybinding 15
Default: Alt+percent
Custom keybinding 16
Default: Alt+dead_circumflex
Custom keybinding 17
Default: Alt+ampersand
Custom keybinding 18
Default: Alt+asterisk
Custom Keybinding 19
Default: Alt+parenleft
Select row 1
Default: Super+1
Select row 2
Default: Super+2
Select row 3
Default: Super+3
Select row 4
Default: Super+4
Select row 5
Default: Super+5
Select row 6
Default: Super+6
Select row 7
Default: Super+7
Select row 8
Default: Super+8
Select row 9
Default: Super+9
Select row 10
Default: Super+0
Go to the previous column
Default: ScrollLeft
Go to the next column
Default: ScrollRight
Select previous entry
Default: ScrollUp
Select next entry
Default: ScrollDown
Select hovered row
Default: MousePrimary
Accept hovered row
Default: MouseDPrimary
Accept hovered row with custom action
Default: Control+MouseDPrimary
rofi(1), rofi-sensible-terminal(1), rofi-theme(5), rofi-script(5)
Qball Cow [email protected]
Rasmus Steinke [email protected]
Morgane Glidic [email protected]
Original code based on work by: Sean Pringle [email protected]
For a full list of authors, check the AUTHORS file.