Scroll to navigation

rofi-keys(5) File Formats Manual 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}):

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"; }

Unsetting a binding

To unset a binding, pass an empty string.

configuration {

kb-clear-line: ""; }

Keyboard Bindings

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

Transpose (swap) the two characters before the cursor

Default: Control+t

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 filtered menu 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 up in the entry history.

Default: Control+Up

Go down in the entry history.

Default: Control+Down

Select the next matcher.

Default: Super+equal

Select the previous matcher.

Default: Super+minus

Mouse Bindings

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

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’the mouse button. (Depending on mouse support).

The Identifier is constructed as follow:

•
D indicates optional Double press.
•
Button is the button name.

So MouseDPrimary is Primary (Left) mouse button double click.

Touch

On Wayland, rofi uses the first finger on a touchscreen as the mouse until that finger lifts. Touch has no binding names of its own, so the mouse bindings above apply:

•
A tap is MousePrimary where the finger touched, and two quick taps are MouseDPrimary.
•
A swipe is ScrollUp, ScrollDown, ScrollLeft or ScrollRight. It keeps the axis it starts on until the finger lifts. The selection moves opposite to the finger, so the list follows the finger.

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.

rofi