2021-09-20 04:52:21 +00:00
.nh
2020-01-26 14:48:17 +00:00
.TH ROFI 1 rofi
.SH NAME
.PP
2021-06-08 20:02:29 +00:00
\fB rofi\fP \- A window switcher, application launcher, ssh dialog, dmenu replacement and more
2020-01-26 14:48:17 +00:00
.SH SYNOPSIS
.PP
\fB rofi\fP [ \- show \fI mode\fP ]|[ \- dmenu ]|[ \- e \fI msg\fP ] [ CONFIGURATION ]
.SH DESCRIPTION
.PP
\fB rofi\fP is an X11 pop\- up window switcher, run dialog, dmenu replacement, and more. It focuses on
being fast to use and have minimal distraction. It supports keyboard and mouse navigation, type to
filter, tokenized search and more.
.SH USAGE
.PP
\fB rofi\fP \& 's main functionality is to assist in your workflow, allowing you to quickly switch
2020-05-10 13:44:29 +00:00
between windows, start applications or log into a remote machine via \fB \fC ssh\fR \& .
There are different \fI modi\fP for different types of actions.
2019-09-20 13:01:34 +00:00
2020-01-26 14:48:17 +00:00
.PP
\fB rofi\fP can also function as (drop\- in) replacement for \fB dmenu(1)\fP \& .
.SS Running rofi
.PP
To launch \fB rofi\fP directly in a certain mode, specify a mode with \fB \fC rofi \- show <mode>\fR \& .
2020-05-10 13:44:29 +00:00
To show the \fB \fC run\fR dialog:
2020-01-26 14:48:17 +00:00
.PP
.RS
.nf
2019-06-16 17:47:04 +00:00
rofi \- show run
2020-01-26 14:48:17 +00:00
2015-04-05 19:49:55 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.SS Emulating dmenu
.PP
2021-06-01 08:32:58 +00:00
\fB rofi\fP can emulate \fB dmenu(1)\fP (a dynamic menu for X11) when launched with the \fB \fC \- dmenu\fR flag.
2020-01-26 14:48:17 +00:00
.PP
The website for \fB \fC dmenu\fR can be found here
\[ la]http://tools.suckless.org/dmenu/\[ ra]\& .
2019-09-20 13:01:34 +00:00
2020-01-26 14:48:17 +00:00
.PP
2021-08-26 20:43:11 +00:00
\fB rofi\fP does not aim to be 100% compatible with \fB \fC dmenu\fR \& . There are simply too many flavors of \fB \fC dmenu\fR \& .
2021-09-20 04:52:21 +00:00
The idea is that the basic usage command\- \& line flags are obeyed, theme\- \& related flags are not.
2020-01-26 14:48:17 +00:00
Besides, \fB rofi\fP offers some extended features (like multi\- select, highlighting, message bar, extra key bindings).
.SS Display Error message
.PP
\fB rofi\fP error dialog can also be called from the command line.
.PP
.RS
.nf
2019-06-16 17:47:04 +00:00
rofi \- e "my message"
2020-01-26 14:48:17 +00:00
2017-07-22 19:11:46 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
Markup support can be enabled, see CONFIGURATION options.
.SH CONFIGURATION
.PP
2016-03-05 19:52:46 +00:00
There are currently three methods of setting configuration options (evaluated in order below):
2021-06-15 18:10:04 +00:00
.RS
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-06-01 08:32:58 +00:00
System configuration file (for example \fB \fC /etc/rofi.rasi\fR ).
2021-08-26 20:43:11 +00:00
It first checks \fB \fC XDG\_ CONFIG\_ DIRS\fR , and then \fB \fC SYSCONFDIR\fR (that is passed at compile time).
2020-04-19 10:10:14 +00:00
It loads the first config file it finds, it does not merge multiple system configuration files.
2020-01-26 14:48:17 +00:00
.IP \(bu 2
Rasi theme file: The new \fI theme\fP format can be used to set configuration values.
.IP \(bu 2
Command\- line options: Arguments passed to \fB rofi\fP \& .
2021-06-15 18:10:04 +00:00
.RE
2020-01-26 14:48:17 +00:00
.PP
2021-08-26 20:43:11 +00:00
To get a template config file, run: \fB \fC rofi \- dump\- config > config.rasi\fR
2020-01-26 14:48:17 +00:00
.PP
2021-06-08 20:02:29 +00:00
This will contain (commented) all current configuration options, modified options are uncommented.
2020-01-26 14:48:17 +00:00
.PP
2015-04-21 20:17:20 +00:00
The configuration system supports the following types:
2021-06-15 18:10:04 +00:00
.RS
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2017-08-13 18:31:46 +00:00
string
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2017-08-13 18:31:46 +00:00
integer (signed and unsigned)
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2017-08-13 18:31:46 +00:00
char
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-06-07 21:13:21 +00:00
boolean
2021-05-04 18:08:54 +00:00
.IP \(bu 2
lists
2019-09-20 13:01:34 +00:00
2021-06-15 18:10:04 +00:00
.RE
2020-01-26 14:48:17 +00:00
.PP
2021-08-26 20:43:11 +00:00
For the syntax of these options, see the \fB rofi\- theme(5)\fP manpage.
2021-06-01 08:32:58 +00:00
.PP
2021-08-26 20:43:11 +00:00
For use on the command line, Boolean options have a non\- default command\- line
2021-06-01 08:32:58 +00:00
syntax. Example to enable option X:
2020-01-26 14:48:17 +00:00
.PP
.RS
.nf
2019-06-16 17:47:04 +00:00
\- X
2020-01-26 14:48:17 +00:00
2015-04-25 15:40:01 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
2016-12-14 08:26:12 +00:00
To disable option X:
2019-09-20 13:01:34 +00:00
2020-01-26 14:48:17 +00:00
.PP
.RS
.nf
2019-06-16 17:47:04 +00:00
\- no\- X
2020-01-26 14:48:17 +00:00
2015-04-25 15:40:01 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
2015-04-21 20:17:20 +00:00
Below is a list of the most important options:
2020-01-26 14:48:17 +00:00
.SS General
.PP
\fB \fC \- help\fR
.PP
2020-05-10 13:44:29 +00:00
The help option shows the full list of command\- line options and the current set values.
2020-01-26 14:48:17 +00:00
These include dynamic (run\- time generated) options.
2020-05-10 13:44:29 +00:00
.PP
\fB \fC \- version\fR
.PP
Show the \fB rofi\fP version and exit.
.PP
\fB \fC \- dump\- config\fR
.PP
Dump the current active configuration, in rasi format, to stdout and exit.
Information about the rasi format can be found in the \fB rofi\- theme(5)\fP manpage.
.PP
\fB \fC \- dump\- theme\fR
.PP
Dump the current active theme, in rasi format, to stdout and exit.
2021-01-26 16:27:32 +00:00
.PP
\fB \fC \- rasi\- validate\fR \fI filename\fP
.PP
2021-08-14 11:03:16 +00:00
Try to parse the file and return 0 when successful, non\- zero when failed.
2021-01-26 16:27:32 +00:00
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- threads\fR \fI num\fP
.PP
Specify the number of threads \fB rofi\fP should use:
2021-06-15 18:10:04 +00:00
.RS
2020-01-26 14:48:17 +00:00
.IP \(bu 2
0: Autodetect the number of supported hardware threads.
.IP \(bu 2
2015-11-25 15:53:58 +00:00
1: Disable threading
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-09-20 04:52:21 +00:00
2..n: Specify the maximum number of threads to use in the thread pool.Default: Autodetect
2020-01-26 14:48:17 +00:00
2021-06-15 18:10:04 +00:00
.RE
2020-05-10 13:44:29 +00:00
.PP
\fB \fC \- display\fR \fI display\fP
.PP
The X server to contact. Default is \fB \fC $DISPLAY\fR \& .
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- dmenu\fR
.PP
Run \fB rofi\fP in dmenu mode. This allows for interactive scripts.
In \fB \fC dmenu\fR mode, \fB rofi\fP reads from STDIN, and output to STDOUT.
A simple example, displaying three pre\- defined options:
.PP
.RS
2015-04-08 01:50:57 +00:00
.nf
2020-01-26 14:48:17 +00:00
echo \- e "Option #1\\ nOption #2\\ nOption #3" | rofi \- dmenu
2019-09-20 13:01:34 +00:00
2015-04-08 01:50:57 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
2015-04-08 01:50:57 +00:00
Or get the options from a script:
2020-01-26 14:48:17 +00:00
.PP
.RS
2015-06-02 17:01:25 +00:00
.nf
2020-01-26 14:48:17 +00:00
\~ /my\_ script.sh | rofi \- dmenu
2019-09-20 13:01:34 +00:00
2015-06-02 17:01:25 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
\fB \fC \- show\fR \fI mode\fP
.PP
Open \fB rofi\fP in a certain mode. Available modes are \fB \fC window\fR , \fB \fC run\fR , \fB \fC drun\fR , \fB \fC ssh\fR , \fB \fC combi\fR \& .
The special argument \fB \fC keys\fR can be used to open a searchable list of supported key bindings
(see \fI KEY BINDINGS\fP )
.PP
2017-01-09 19:32:31 +00:00
To show the run\- dialog:
2019-09-20 13:01:34 +00:00
2020-01-26 14:48:17 +00:00
.PP
.RS
.nf
2019-06-16 17:47:04 +00:00
rofi \- show run
2020-01-26 14:48:17 +00:00
2014-10-20 18:29:26 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
2021-06-08 20:02:29 +00:00
.PP
If \fB \fC \- show\fR is the last option passed to rofi, the first enabled modi is shown.
2020-01-26 14:48:17 +00:00
.PP
2020-05-10 13:44:29 +00:00
\fB \fC \- modi\fR \fI mode1,mode2\fP
2020-01-26 14:48:17 +00:00
.PP
Specify an ordered, comma\- separated list of modes to enable.
2020-05-10 13:44:29 +00:00
Enabled modes can be changed at runtime. Default key is \fB \fC Ctrl+Tab\fR \& .
If no modes are specified, all configured modes will be enabled.
To only show the \fB \fC run\fR and \fB \fC ssh\fR launcher:
2019-09-20 13:01:34 +00:00
2020-01-26 14:48:17 +00:00
.PP
.RS
.nf
2019-06-16 17:47:04 +00:00
rofi \- modi "run,ssh" \- show run
2020-01-26 14:48:17 +00:00
2014-10-20 18:29:26 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
2019-09-20 13:01:34 +00:00
2020-01-26 14:48:17 +00:00
.PP
2020-05-10 13:44:29 +00:00
Custom modes can be added using the internal \fB \fC script\fR mode. Each such mode has two parameters:
2020-01-26 14:48:17 +00:00
.PP
.RS
.nf
2019-06-16 17:47:04 +00:00
<name>:<script>
2020-01-26 14:48:17 +00:00
2015-06-02 17:01:25 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
2020-05-10 13:44:29 +00:00
Example: Have a mode called 'Workspaces' using the \fB \fC i3\_ switch\_ workspaces.sh\fR script:
2020-01-26 14:48:17 +00:00
.PP
.RS
2015-06-02 17:01:25 +00:00
.nf
2020-01-26 14:48:17 +00:00
rofi \- modi "window,run,ssh,Workspaces:i3\_ switch\_ workspaces.sh" \- show Workspaces
2019-09-20 13:01:34 +00:00
2014-10-20 18:29:26 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
2021-08-26 20:43:11 +00:00
Notes: The i3 window manager dislikes commas in the command when specifying an exec command.
For that case, \fB \fC #\fR can be used as a separator.
2020-01-26 14:48:17 +00:00
2021-06-08 20:02:29 +00:00
.PP
\fB TIP\fP : The name is allowed to contain spaces:
.PP
.RS
.nf
rofi \- modi "My File Browser:fb.sh" \- show "My File Browser"
.fi
.RE
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- case\- sensitive\fR
.PP
2021-08-26 20:43:11 +00:00
Start in case\- sensitive mode.
2020-01-26 14:48:17 +00:00
This option can be changed at run\- time using the \fB \fC \- kb\- toggle\- case\- sensitivity\fR key binding.
.PP
\fB \fC \- cycle\fR
.PP
Cycle through the result list. Default is 'true'.
.PP
\fB \fC \- filter\fR \fI filter\fP
.PP
Filter the list by setting text in input bar to \fI filter\fP
2019-09-20 13:01:34 +00:00
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- config\fR \fI filename\fP
.PP
Load an alternative configuration file.
.PP
\fB \fC \- cache\- dir\fR \fI filename\fP
.PP
Directory that is used to place temporary files, like history.
.PP
\fB \fC \- scroll\- method\fR \fI method\fP
.PP
Select the scrolling method. 0: Per page, 1: continuous.
2020-09-30 19:56:37 +00:00
.PP
\fB \fC \- normalize\- match\fR
.PP
2021-08-26 20:43:11 +00:00
Normalize the string before matching, so \fB \fC o\fR will match \fB \fC ö\fR , and \fB \fC é\fR matches \fB \fC e\fR \& .
.br
This is not a perfect implementation, but works. For now, it disables highlighting of the matched part.
2020-09-30 19:56:37 +00:00
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- no\- lazy\- grab\fR
.PP
Disables lazy grab, this forces the keyboard being grabbed before gui is shown.
.PP
\fB \fC \- no\- plugins\fR
.PP
Disable plugin loading.
.PP
\fB \fC \- plugin\- path\fR \fI directory\fP
.PP
Specify the directory where \fB rofi\fP should look for plugins.
.PP
\fB \fC \- show\- icons\fR
.PP
2020-05-10 13:44:29 +00:00
Show application icons in \fB \fC drun\fR and \fB \fC window\fR modes.
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- icon\- theme\fR
.PP
Specify icon theme to be used.
If not specified default theme from DE is used, \fI Adwaita\fP and \fI gnome\fP themes act as
fallback themes.
2021-06-08 18:23:14 +00:00
.PP
\fB \fC \- fallback\- application\- icon\fR
.PP
Specify an icon to be used when the application icon in run/drun are not yet loaded or is not available.
2020-05-10 13:44:29 +00:00
.PP
\fB \fC \- markup\fR
.PP
Use Pango markup to format output wherever possible.
.PP
\fB \fC \- normal\- window\fR
.PP
Make \fB rofi\fP react like a normal application window. Useful for scripts like Clerk that are basically an application.
2021-03-27 15:28:27 +00:00
.PP
2021-04-13 09:35:34 +00:00
\fB \fC \-[no\-] steal\- focus\fR
2021-03-27 15:28:27 +00:00
.PP
2021-04-13 09:35:34 +00:00
Make rofi steal focus on launch and restore close to window that held it when launched.
2021-03-27 15:28:27 +00:00
2020-01-26 14:48:17 +00:00
.SS Matching
.PP
\fB \fC \- matching\fR \fI method\fP
.PP
Specify the matching algorithm used.
2021-08-26 20:43:11 +00:00
Currently, the following methods are supported:
2021-06-15 18:10:04 +00:00
.RS
2020-01-26 14:48:17 +00:00
.IP \(bu 2
\fB normal\fP : match the int string
.IP \(bu 2
\fB regex\fP : match a regex input
.IP \(bu 2
\fB glob\fP : match a glob pattern
.IP \(bu 2
\fB fuzzy\fP : do a fuzzy match
2021-05-29 11:39:31 +00:00
.IP \(bu 2
\fB prefix\fP : match prefix
2020-01-26 14:48:17 +00:00
2021-06-15 18:10:04 +00:00
.RE
2020-01-26 14:48:17 +00:00
.PP
Default: \fI normal\fP
.PP
2017-01-09 19:32:31 +00:00
Note: glob matching might be slow for larger lists
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- tokenize\fR
.PP
Tokenize the input.
.PP
2020-05-10 13:44:29 +00:00
\fB \fC \- drun\- categories\fR \fI category1\fP ,\fI category2\fP
2020-01-26 14:48:17 +00:00
.PP
Only show desktop files that are present in the listed categories.
.PP
\fB \fC \- drun\- match\- fields\fR \fI field1\fP ,\fI field2\fP ,...
.PP
2020-05-10 13:44:29 +00:00
When using \fB \fC drun\fR , match only with the specified Desktop entry fields.
2020-01-26 14:48:17 +00:00
The different fields are:
2021-06-15 18:10:04 +00:00
.RS
2020-01-26 14:48:17 +00:00
.IP \(bu 2
\fB name\fP : the application's name
.IP \(bu 2
\fB generic\fP : the application's generic name
.IP \(bu 2
\fB exec\fP : the application's executable
.IP \(bu 2
\fB categories\fP : the application's categories
.IP \(bu 2
\fB comment\fP : the application comment
.IP \(bu 2
2021-09-20 04:52:21 +00:00
\fB all\fP : all the aboveDefault: \fI name,generic,exec,categories,keywords\fP
2020-01-26 14:48:17 +00:00
2021-06-15 18:10:04 +00:00
.RE
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- drun\- display\- format\fR
.PP
2020-05-10 13:44:29 +00:00
The format string for the \fB \fC drun\fR dialog:
2021-06-15 18:10:04 +00:00
.RS
2020-01-26 14:48:17 +00:00
.IP \(bu 2
\fB name\fP : the application's name
.IP \(bu 2
\fB generic\fP : the application's generic name
.IP \(bu 2
\fB exec\fP : the application's executable
.IP \(bu 2
\fB categories\fP : the application's categories
.IP \(bu 2
\fB comment\fP : the application comment
2021-06-15 18:10:04 +00:00
.RE
2020-01-26 14:48:17 +00:00
.PP
Pango markup can be used to formatting the output.
.PP
.RS
2019-01-11 14:03:24 +00:00
.nf
2020-01-26 14:48:17 +00:00
Default: {name} [<span weight='light' size='small'><i>({generic})</i></span>]
2019-09-20 13:01:34 +00:00
2019-01-11 14:03:24 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
Note: Only fields enabled in \fB \fC \- drun\- match\- fields\fR can be used in the format string.
.PP
\fB \fC \-[no\-] drun\- show\- actions\fR
2019-09-20 13:01:34 +00:00
2020-01-26 14:48:17 +00:00
.PP
Show actions present in the Desktop files.
.PP
.RS
.nf
2019-06-16 17:47:04 +00:00
Default: false
2020-01-26 14:48:17 +00:00
2018-07-28 09:12:11 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
\fB \fC \- window\- match\- fields\fR \fI field1\fP ,\fI field2\fP ,...
.PP
When using window mode, match only with the specified fields.
The different fields are:
2021-06-15 18:10:04 +00:00
.RS
2020-01-26 14:48:17 +00:00
.IP \(bu 2
\fB title\fP : window's title
.IP \(bu 2
\fB class\fP : window's class
.IP \(bu 2
\fB role\fP : window's role
.IP \(bu 2
\fB name\fP : window's name
.IP \(bu 2
\fB desktop\fP : window's current desktop
.IP \(bu 2
2021-09-20 04:52:21 +00:00
\fB all\fP : all the aboveDefault: \fI all\fP
2020-01-26 14:48:17 +00:00
2021-06-15 18:10:04 +00:00
.RE
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- matching\- negate\- char\fR \fI char\fP
.PP
2021-08-26 20:43:11 +00:00
Set the character used to negate the query (i.e. if it does \fB not\fP match the next keyword).
2020-01-26 14:48:17 +00:00
Set to '\\ x0' to disable.
.PP
.RS
2019-08-10 10:02:49 +00:00
.nf
2020-01-26 14:48:17 +00:00
Default: '\- '
2019-09-20 13:01:34 +00:00
2014-05-22 08:37:25 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
2021-06-09 20:21:39 +00:00
.SS Layout and Theming
2021-06-08 20:58:27 +00:00
.PP
2021-06-09 20:21:39 +00:00
\fB IMPORTANT:\fP
In newer \fB rofi\fP releases, all the theming options have been moved into the new theme format. They are no longer normal
2021-08-26 20:43:11 +00:00
\fB rofi\fP options that can be passed directly on the command line (there are too many).
Small snippets can be passed on the command line: \fB \fC rofi \- theme\- str 'window {width: 50%;}'\fR to override a single
2021-06-09 20:21:39 +00:00
setting. They are merged into the current theme.
2021-06-10 19:59:56 +00:00
They can also be appended at the end of the \fB rofi\fP config file to override parts of the theme.
2021-06-08 20:58:27 +00:00
2020-01-26 14:48:17 +00:00
.PP
Most of the following options are \fB deprecated\fP and should not be used. Please use the new theme format to customize
\fB rofi\fP \& . More information about the new format can be found in the \fB rofi\- theme(5)\fP manpage.
2019-09-20 13:01:34 +00:00
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- location\fR
.PP
Specify where the window should be located. The numbers map to the following locations on screen:
.PP
.RS
.nf
2014-08-01 21:29:01 +00:00
1 2 3
8 0 4
7 6 5
2020-01-26 14:48:17 +00:00
2014-05-22 08:37:25 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
Default: \fI 0\fP
.PP
\fB \fC \- fixed\- num\- lines\fR
.PP
2021-08-30 14:11:36 +00:00
Keep a fixed number of visible lines.
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- sidebar\- mode\fR
2019-09-20 13:01:34 +00:00
2020-01-26 14:48:17 +00:00
.PP
2021-08-26 20:43:11 +00:00
Open in sidebar\- mode. In this mode, a list of all enabled modes is shown at the bottom.
2020-01-26 14:48:17 +00:00
(See \fB \fC \- modi\fR option)
To show sidebar, use:
.PP
.RS
.nf
2021-08-30 14:11:36 +00:00
rofi \- show run \- sidebar\- mode
2020-01-26 14:48:17 +00:00
2015-06-02 17:01:25 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
2021-05-02 18:01:03 +00:00
.PP
\fB \fC \- hover\- select\fR
2021-04-13 09:45:20 +00:00
.PP
Automatically select the entry the mouse is hovering over. This option is best combined with custom mouse bindings.
To utilize hover\- select and accept an entry in a single click, use:
.PP
.RS
.nf
2021-05-02 18:01:03 +00:00
rofi \- show run \- hover\- select \- me\- select\- entry '' \- me\- accept\- entry MousePrimary
2021-04-13 09:45:20 +00:00
.fi
.RE
2020-04-01 11:58:01 +00:00
.PP
\fB \fC \- eh\fR \fI number\fP
.PP
Set row height (in chars)
Default: \fI 1\fP
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- auto\- select\fR
.PP
When one entry is left, automatically select it.
.PP
\fB \fC \- m\fR \fI num\fP
.PP
\fB \fC \- m\fR \fI name\fP
.PP
\fB \fC \- monitor\fR \fI num\fP
.PP
\fB \fC \- monitor\fR \fI name\fP
.PP
Select monitor to display \fB rofi\fP on.
It accepts as input: \fI primary\fP (if primary output is set), the \fI xrandr\fP output name, or integer number (in order of
detection). Negative numbers are handled differently:
2021-06-15 18:10:04 +00:00
.RS
2020-01-26 14:48:17 +00:00
.IP \(bu 2
\fB \- 1\fP : the currently focused monitor.
.IP \(bu 2
\fB \- 2\fP : the currently focused window (that is, \fB rofi\fP will be displayed on top of the focused window).
.IP \(bu 2
2021-08-26 20:43:11 +00:00
\fB \- 3\fP : Position of mouse (overrides the location setting to get normal context menu
2020-01-26 14:48:17 +00:00
behavior.)
.IP \(bu 2
\fB \- 4\fP : the monitor with the focused window.
.IP \(bu 2
2021-09-20 04:52:21 +00:00
\fB \- 5\fP : the monitor that shows the mouse pointer.Default: \fI \- 5\fP
2020-01-26 14:48:17 +00:00
2021-06-15 18:10:04 +00:00
.RE
2020-01-26 14:48:17 +00:00
.PP
See \fB \fC rofi \- h\fR output for the detected monitors, their position, and size.
.PP
\fB \fC \- theme\fR \fI filename\fP
.PP
Path to the new theme file format. This overrides the old theme settings.
.PP
\fB \fC \- theme\- str\fR \fI string\fP
.PP
Allow theme parts to be specified on the command line as an override.
.PP
2017-08-13 18:31:46 +00:00
For example:
2020-01-26 14:48:17 +00:00
.PP
.RS
2017-01-18 17:12:54 +00:00
.nf
2020-01-26 14:48:17 +00:00
rofi \- theme\- str '#window { fullscreen: true; }'
2019-09-20 13:01:34 +00:00
2017-01-18 17:12:54 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
2019-09-20 13:01:34 +00:00
2020-01-26 14:48:17 +00:00
.PP
This option can be specified multiple times.
2021-08-26 20:43:11 +00:00
This is now the method to tweak the theme via the command line.
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- dpi\fR \fI number\fP
.PP
Override the default DPI setting.
2021-06-15 18:10:04 +00:00
.RS
2020-05-10 13:44:29 +00:00
.IP \(bu 2
2020-01-26 14:48:17 +00:00
If set to \fB \fC 0\fR , it tries to auto\- detect based on X11 screen size (similar to i3 and GTK).
2020-05-10 13:44:29 +00:00
.IP \(bu 2
If set to \fB \fC 1\fR , it tries to auto\- detect based on the size of the monitor that \fB rofi\fP is displayed on (similar to latest Qt 5).
2021-06-15 18:10:04 +00:00
.RE
2020-03-29 10:58:28 +00:00
.PP
\fB \fC \- selected\- row\fR \fI selected row\fP
.PP
Select a certain row.
.PP
Default: \fI 0\fP
2020-01-26 14:48:17 +00:00
.SS PATTERN setting
.PP
\fB \fC \- terminal\fR
.PP
Specify which terminal to start.
.PP
.RS
.nf
2019-06-16 17:47:04 +00:00
rofi \- terminal xterm
2020-01-26 14:48:17 +00:00
2015-06-02 17:01:25 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
Pattern: \fI {terminal}\fP
2020-05-10 13:44:29 +00:00
.PP
2020-01-26 14:48:17 +00:00
Default: \fI x\- terminal\- emulator\fP
.PP
\fB \fC \- ssh\- client\fR \fI client\fP
.PP
2020-05-10 13:44:29 +00:00
Override the used \fB \fC ssh\fR client.
2020-01-26 14:48:17 +00:00
.PP
Pattern: \fI {ssh\- client}\fP
2020-05-10 13:44:29 +00:00
.PP
2020-01-26 14:48:17 +00:00
Default: \fI ssh\fP
.SS SSH settings
.PP
\fB \fC \- ssh\- command\fR \fI cmd\fP
.PP
2021-08-26 20:43:11 +00:00
Set the command to execute when starting an ssh session.
2020-01-26 14:48:17 +00:00
The pattern \fI {host}\fP is replaced by the selected ssh entry.
.PP
Pattern: \fI {ssh\- client}\fP
2020-05-10 13:44:29 +00:00
.PP
2020-01-26 14:48:17 +00:00
Default: \fI {terminal} \- e {ssh\- client} {host}\fP
.PP
\fB \fC \- parse\- hosts\fR
.PP
Parse the \fB \fC /etc/hosts\fR file for entries.
.PP
Default: \fI disabled\fP
.PP
\fB \fC \- parse\- known\- hosts\fR
\fB \fC \- no\- parse\- known\- hosts\fR
.PP
Parse the \fB \fC \~ /.ssh/known\_ hosts\fR file for entries.
.PP
Default: \fI enabled\fP
2019-09-20 13:01:34 +00:00
2020-01-26 14:48:17 +00:00
.SS Run settings
.PP
\fB \fC \- run\- command\fR \fI cmd\fP
.PP
Set command (\fI {cmd}\fP ) to execute when running an application.
See \fI PATTERN\fP \& .
.PP
Default: \fI {cmd}\fP
.PP
\fB \fC \- run\- shell\- command\fR \fI cmd\fP
.PP
Set command to execute when running an application in a shell.
See \fI PATTERN\fP \& .
.PP
Default: \fI {terminal} \- e {cmd}\fP
.PP
\fB \fC \- run\- list\- command\fR \fI cmd\fP
.PP
2021-08-26 20:43:11 +00:00
If set, use an external tool to generate a list of executable commands. Uses \fB \fC run\- command\fR \& .
2020-01-26 14:48:17 +00:00
.PP
Default: \fI {cmd}\fP
.SS Window switcher settings
.PP
\fB \fC \- window\- format\fR \fI format\fP
.PP
Format what is being displayed for windows.
.PP
\fI format\fP : {field[:len]}
.PP
\fI field\fP :
2021-06-15 18:10:04 +00:00
.RS
2020-01-26 14:48:17 +00:00
.IP \(bu 2
\fB w\fP : desktop name
.IP \(bu 2
\fB t\fP : title of window
.IP \(bu 2
\fB n\fP : name
.IP \(bu 2
\fB r\fP : role
.IP \(bu 2
\fB c\fP : class
2021-06-15 18:10:04 +00:00
.RE
2020-01-26 14:48:17 +00:00
.PP
\fI len\fP : maximum field length (0 for auto\- size). If length and window \fI width\fP are negative, field length is \fI width \- len\fP \& .
2021-08-26 20:43:11 +00:00
.br
If length is positive, the entry will be truncated or padded to fill that length.
2020-01-26 14:48:17 +00:00
.PP
default: {w} {c} {t}
.PP
\fB \fC \- window\- command\fR \fI cmd\fP
.PP
2021-08-26 20:43:11 +00:00
Set command to execute on selected window for an alt action (\fB \fC \- kb\- accept\- alt\fR ).
2020-01-26 14:48:17 +00:00
See \fI PATTERN\fP \& .
.PP
Default: \fI "wmctrl \- i \- R {window}"\fP
2020-04-29 10:59:49 +00:00
.PP
\fB \fC \- window\- thumbnail\fR
.PP
Show window thumbnail (if available) as icon in the window switcher.
2021-08-17 16:16:25 +00:00
.PP
2021-08-17 16:23:35 +00:00
You can stop rofi from exiting when closing a window (allowing multiple to be closed in a row).
2021-08-17 16:16:25 +00:00
.PP
.RS
.nf
configuration {
window {
close\- on\- delete: false;
}
}
.fi
.RE
2020-01-26 14:48:17 +00:00
.SS Combi settings
.PP
2020-05-10 13:44:29 +00:00
\fB \fC \- combi\- modi\fR \fI mode1\fP ,\fI mode2\fP
2020-01-26 14:48:17 +00:00
.PP
The modi to combine in combi mode.
2020-05-10 13:44:29 +00:00
For syntax to \fB \fC \- combi\- modi\fR , see \fB \fC \- modi\fR \& .
2020-01-26 14:48:17 +00:00
To get one merge view, of \fB \fC window\fR ,\fB \fC run\fR , and \fB \fC ssh\fR :
.PP
.RS
.nf
2019-06-16 17:47:04 +00:00
rofi \- show combi \- combi\- modi "window,run,ssh" \- modi combi
2020-01-26 14:48:17 +00:00
2015-04-01 12:49:27 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
2021-08-26 20:43:11 +00:00
\fB NOTE\fP : The i3 window manager dislikes commas in the command when specifying an exec command.
For that case, \fB \fC #\fR can be used as a separator.
2020-01-26 14:48:17 +00:00
.SS History and Sorting
.PP
\fB \fC \- disable\- history\fR
\fB \fC \- no\- disable\- history\fR (re\- enable history)
.PP
2014-06-05 19:55:47 +00:00
Disable history
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- sort\fR to enable
\fB \fC \- no\- sort\fR to disable
.PP
Enable, disable sorting.
This setting can be changed at runtime (see \fB \fC \- kb\- toggle\- sort\fR ).
.PP
2020-05-10 13:44:29 +00:00
\fB \fC \- sorting\- method\fR 'method' to specify the sorting method.
2020-01-26 14:48:17 +00:00
.PP
2021-08-26 20:43:11 +00:00
There are 2 sorting methods:
2021-06-15 18:10:04 +00:00
.RS
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2018-06-13 09:57:23 +00:00
levenshtein (Default)
2020-01-26 14:48:17 +00:00
.IP \(bu 2
fzf sorting.
2021-06-15 18:10:04 +00:00
.RE
2021-02-01 20:34:49 +00:00
.PP
\fB \fC \- max\- history\- size\fR \fI number\fP
.PP
2021-07-29 18:46:23 +00:00
Maximum number of entries to store in history. Defaults to 25. (WARNING: can cause slowdowns when set too high)
2021-02-01 20:34:49 +00:00
2020-01-26 14:48:17 +00:00
.SS Dmenu specific
.PP
\fB \fC \- sep\fR \fI separator\fP
.PP
2020-05-10 13:44:29 +00:00
Separator for \fB \fC dmenu\fR \& . Example: To show a list of 'a' to 'e' with '|' as a separator:
2020-01-26 14:48:17 +00:00
.PP
.RS
2019-08-10 10:02:49 +00:00
.nf
2020-01-26 14:48:17 +00:00
echo "a|b|c|d|e" | rofi \- sep '|' \- dmenu
2019-09-20 13:01:34 +00:00
2015-06-02 17:01:25 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
\fB \fC \- p\fR \fI prompt\fP
.PP
2020-05-10 13:44:29 +00:00
Specify the prompt to show in \fB \fC dmenu\fR mode. For example, select 'monkey', a,b,c,d, or e.
2020-01-26 14:48:17 +00:00
.PP
.RS
2015-06-02 17:01:25 +00:00
.nf
2020-09-18 10:50:35 +00:00
echo "a|b|c|d|e" | rofi \- sep '|' \- dmenu \- p "monkey"
2019-09-20 13:01:34 +00:00
2014-11-02 11:58:57 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
Default: \fI dmenu\fP
.PP
\fB \fC \- l\fR \fI number of lines to show\fP
.PP
Maximum number of lines the menu may show before scrolling.
.PP
.RS
.nf
2021-08-30 14:11:36 +00:00
rofi \- dmenu \- l 25
2020-01-26 14:48:17 +00:00
2015-08-02 19:24:07 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
Default: \fI 15\fP
.PP
\fB \fC \- i\fR
.PP
2020-05-10 13:44:29 +00:00
Makes \fB \fC dmenu\fR searches case\- insensitive
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- a\fR \fI X\fP
.PP
Active row, mark \fI X\fP as active. Where \fI X\fP is a comma\- separated list of python(1)\- style indices and ranges, e.g. indices start at 0, \- 1 refers to the last row with \- 2 preceding it, ranges are left\- open and right\- close, and so on. You can specify:
2021-06-15 18:10:04 +00:00
.RS
2020-01-26 14:48:17 +00:00
.IP \(bu 2
A single row: '5'
.IP \(bu 2
A range of (last 3) rows: '\- 3:'
.IP \(bu 2
4 rows starting from row 7: '7:11' (or in legacy notation: '7\- 10')
.IP \(bu 2
A set of rows: '2,0,\- 9'
.IP \(bu 2
Or any combination: '5,\- 3:,7:11,2,0,\- 9'
2021-06-15 18:10:04 +00:00
.RE
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- u\fR \fI X\fP
.PP
Urgent row, mark \fI X\fP as urgent. See \fB \fC \- a\fR option for details.
.PP
\fB \fC \- only\- match\fR
.PP
Only return a selected item, do not allow custom entry.
2020-05-10 13:44:29 +00:00
This mode always returns an entry. It will not return if no matching entry is
selected.
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- no\- custom\fR
.PP
Only return a selected item, do not allow custom entry.
This mode returns directly when no entries given.
.PP
\fB \fC \- format\fR \fI format\fP
.PP
2017-08-13 18:31:46 +00:00
Allows the output of dmenu to be customized (N is the total number of input entries):
2021-06-15 18:10:04 +00:00
.RS
2020-01-26 14:48:17 +00:00
.IP \(bu 2
\& 's' selected string
.IP \(bu 2
\& 'i' index (0 \- \& (N\- \& 1))
.IP \(bu 2
\& 'd' index (1 \- \& N)
.IP \(bu 2
\& 'q' quote string
.IP \(bu 2
2020-05-10 13:44:29 +00:00
\& 'p' Selected string stripped from Pango markup (Needs to be a valid string)
2020-01-26 14:48:17 +00:00
.IP \(bu 2
\& 'f' filter string (user input)
.IP \(bu 2
\& 'F' quoted filter string (user input)
2021-06-15 18:10:04 +00:00
.RE
2020-01-26 14:48:17 +00:00
.PP
Default: 's'
.PP
\fB \fC \- select\fR \fI string\fP
.PP
2015-05-24 07:20:01 +00:00
Select first line that matches the given string
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- mesg\fR \fI string\fP
.PP
2020-05-10 13:44:29 +00:00
Add a message line below the filter entry box. Supports Pango markup.
2021-08-26 20:43:11 +00:00
For more information on supported markup, see here
2020-05-10 13:44:29 +00:00
\[ la]https://developer.gnome.org/pygtk/stable/pango-markup-language.html\[ ra]
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- dump\fR
.PP
Dump the filtered list to stdout and quit.
This can be used to get the list as \fB rofi\fP would filter it.
Use together with \fB \fC \- filter\fR command.
.PP
\fB \fC \- input\fR \fI file\fP
.PP
Reads from \fI file\fP instead of stdin.
.PP
\fB \fC \- password\fR
.PP
Hide the input text. This should not be considered secure!
.PP
\fB \fC \- markup\- rows\fR
.PP
2020-05-10 13:44:29 +00:00
Tell \fB rofi\fP that DMenu input is Pango markup encoded, and should be rendered.
2020-01-26 14:48:17 +00:00
See here
2020-05-10 13:44:29 +00:00
\[ la]https://developer.gnome.org/pygtk/stable/pango-markup-language.html\[ ra] for details about Pango markup.
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- multi\- select\fR
.PP
Allow multiple lines to be selected. Adds a small selection indicator to the left of each entry.
.PP
\fB \fC \- sync\fR
.PP
2020-05-10 13:44:29 +00:00
Force \fB rofi\fP mode to first read all data from stdin before showing the selection window. This is original dmenu behavior.
2020-01-26 14:48:17 +00:00
.PP
Note: the default asynchronous mode will also be automatically disabled if used with conflicting options,
such as \fB \fC \- dump\fR , \fB \fC \- only\- match\fR or \fB \fC \- auto\- select\fR \& .
.PP
\fB \fC \- async\- pre\- read\fR \fI number\fP
.PP
2020-05-10 13:44:29 +00:00
Reads the first \fI number\fP entries blocking, then switches to async mode.
This makes it feel more 'snappy'.
2020-01-26 14:48:17 +00:00
.PP
\fI default\fP : 25
.PP
\fB \fC \- window\- title\fR \fI title\fP
.PP
Set name used for the window title. Will be shown as Rofi \- \fI title\fP
2020-05-10 13:44:29 +00:00
.PP
\fB \fC \- w\fR \fI windowid\fP
.PP
Position \fB rofi\fP over the window with the given X11 window ID.
2020-04-16 21:31:43 +00:00
.PP
\fB \fC \- keep\- right\fR
.PP
2021-08-26 20:43:11 +00:00
Set ellipsize mode to start. So, the end of the string is visible.
2020-04-16 21:31:43 +00:00
2020-01-26 14:48:17 +00:00
.SS Message dialog
.PP
\fB \fC \- e\fR \fI message\fP
.PP
Pops up a message dialog (used internally for showing errors) with \fI message\fP \& .
2021-09-20 04:52:21 +00:00
Message can be multi\- \& line.
2020-01-26 14:48:17 +00:00
2021-06-05 12:22:48 +00:00
.SS File browser settings
.PP
2021-06-27 07:28:21 +00:00
File browser behavior can be controlled via the following options:
2021-06-05 12:22:48 +00:00
.PP
2021-06-27 07:28:21 +00:00
.RS
.nf
configuration {
filebrowser {
/** Directory the file browser starts in. */
directory: "/some/directory";
/**
* Sorting method. Can be set to:
2021-06-30 12:12:09 +00:00
* \- "name"
* \- "mtime" (modification time)
* \- "atime" (access time)
* \- "ctime" (change time)
2021-06-27 07:28:21 +00:00
*/
2021-06-30 12:12:09 +00:00
sorting\- method: "name";
2021-07-10 21:58:27 +00:00
/** Group directories before files. */
directories\- first: true;
2021-06-27 07:28:21 +00:00
}
}
2021-06-05 12:22:48 +00:00
2021-06-30 12:12:09 +00:00
.fi
.RE
2020-01-26 14:48:17 +00:00
.SS Other
.PP
\fB \fC \- drun\- use\- desktop\- cache\fR
.PP
2020-05-10 13:44:29 +00:00
Build and use a cache with the content of desktop files. Usable for systems with slow hard drives.
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- drun\- reload\- desktop\- cache\fR
.PP
2020-05-10 13:44:29 +00:00
If \fB \fC drun\- use\- desktop\- cache\fR is enabled, rebuild a cache with the content of desktop files.
2020-01-26 14:48:17 +00:00
2021-06-08 18:25:05 +00:00
.PP
\fB \fC \- drun\- url\- launcher\fR \fI command\fP
.PP
Command to open a Desktop Entry that is a Link.
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- pid\fR \fI path\fP
.PP
Make \fB rofi\fP create a pid file and check this on startup. The pid file prevents multiple \fB rofi\fP instances from running simultaneously. This is useful when running \fB rofi\fP from a key\- binding daemon.
.PP
\fB \fC \- display\- {mode}\fR \fI string\fP
.PP
Set the name to use for mode. This is used as prompt and in combi\- browser.
2021-06-15 12:04:34 +00:00
.PP
2021-08-14 11:03:16 +00:00
It is now preferred to use the configuration file:
2021-06-15 12:04:34 +00:00
.PP
.RS
.nf
configuration {
{mode} {
display\- name: *string*;
}
}
.fi
.RE
2020-01-26 14:48:17 +00:00
.PP
\fB \fC \- click\- to\- exit\fR
\fB \fC \- no\- click\- to\- exit\fR
.PP
2021-08-26 20:43:11 +00:00
Click the mouse outside the \fB rofi\fP window to exit.
2020-01-26 14:48:17 +00:00
.PP
Default: \fI enabled\fP
.SH PATTERN
.PP
To launch commands (for example, when using the ssh launcher), the user can enter the used command\- line. The following keys can be used that will be replaced at runtime:
2021-06-15 18:10:04 +00:00
.RS
2020-01-26 14:48:17 +00:00
.IP \(bu 2
\fB \fC {host}\fR : the host to connect to
.IP \(bu 2
\fB \fC {terminal}\fR : the configured terminal (see \- terminal\- emulator)
.IP \(bu 2
\fB \fC {ssh\- client}\fR : the configured ssh client (see \- ssh\- client)
.IP \(bu 2
\fB \fC {cmd}\fR : the command to execute
.IP \(bu 2
\fB \fC {window}\fR : the window ID of the selected window (in \fB \fC window\- command\fR )
2021-06-15 18:10:04 +00:00
.RE
2020-01-26 14:48:17 +00:00
.SH DMENU REPLACEMENT
.PP
If \fB \fC argv[0]\fR (calling command) is dmenu, \fB rofi\fP will start in dmenu mode.
2021-08-26 20:43:11 +00:00
This way, it can be used as a drop\- in replacement for dmenu. Just copy or symlink \fB rofi\fP to dmenu in \fB \fC $PATH\fR \& .
2020-01-26 14:48:17 +00:00
.PP
.RS
.nf
2019-06-16 17:47:04 +00:00
ln \- s /usr/bin/rofi /usr/bin/dmenu
2020-01-26 14:48:17 +00:00
2015-06-02 17:01:25 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.SH THEMING
.PP
2021-06-09 20:21:39 +00:00
Please see \fB rofi\- theme(5)\fP manpage for more information on theming.
2020-01-26 14:48:17 +00:00
.SH KEY BINDINGS
.PP
\fB rofi\fP has the following key bindings:
2021-06-15 18:10:04 +00:00
.RS
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- v, Insert\fR : Paste from clipboard
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- Shift\- v, Shift\- Insert\fR : Paste primary selection
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- u\fR : Clear the line
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- a\fR : Beginning of line
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- e\fR : End of line
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- f, Right\fR : Forward one character
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Alt\- f, Control\- Right\fR : Forward one word
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- b, Left\fR : Back one character
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Alt\- b, Control\- Left\fR : Back one word
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- d, Delete\fR : Delete character
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- Alt\- d\fR : Delete word
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- h, Backspace, Shift\- Backspace\fR : Backspace (delete previous character)
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- Alt\- h\fR : Delete previous word
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- j,Control\- m,Enter\fR : Accept entry
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- n,Down\fR : Select next entry
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- p,Up\fR : Select previous entry
2020-01-26 14:48:17 +00:00
.IP \(bu 2
\fB \fC Page Up\fR : Go to previous page
.IP \(bu 2
\fB \fC Page Down\fR : Go to next page
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- Page Up\fR : Go to previous column
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- Page Down\fR : Go to next column
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- Enter\fR : Use entered text as a command (in \fB \fC ssh/run modi\fR )
2020-01-26 14:48:17 +00:00
.IP \(bu 2
\fB \fC Shift\- Enter\fR : Launch the application in a terminal (in run mode)
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- Shift\- Enter\fR : As Control\- Enter and run the command in terminal (in run mode)
2021-06-15 14:19:57 +00:00
.IP \(bu 2
2020-01-26 14:48:17 +00:00
\fB \fC Shift\- Enter\fR : Return the selected entry and move to the next item while keeping \fB rofi\fP open. (in dmenu)
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Shift\- Right\fR : Switch to the next mode. The list can be customized with the \fB \fC \- modi\fR argument.
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Shift\- Left\fR : Switch to the previous mode. The list can be customized with the \fB \fC \- modi\fR argument.
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- Tab\fR : Switch to the next mode. The list can be customized with the \fB \fC \- modi\fR argument.
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- Shift\- Tab\fR : Switch to the previous mode. The list can be customized with the \fB \fC \- modi\fR argument.
2020-01-26 14:48:17 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- space\fR : Set selected item as input text.
2020-01-26 14:48:17 +00:00
.IP \(bu 2
\fB \fC Shift\- Del\fR : Delete entry from history.
.IP \(bu 2
\fB \fC grave\fR : Toggle case sensitivity.
.IP \(bu 2
\fB \fC Alt\- grave\fR : Toggle sorting.
.IP \(bu 2
\fB \fC Alt\- Shift\- S\fR : Take a screenshot and store it in the Pictures directory.
2021-06-01 11:14:45 +00:00
.IP \(bu 2
2021-08-27 13:33:35 +00:00
\fB \fC Control\- l\fR : File complete for run dialog.
2020-01-26 14:48:17 +00:00
2021-06-15 18:10:04 +00:00
.RE
2020-01-26 14:48:17 +00:00
.PP
2021-08-27 13:33:35 +00:00
This list might not be complete, to get a full list of all key bindings
supported in your rofi, see \fB \fC rofi \- h\fR \& . The options starting with \fB \fC \- kb\fR are keybindings.
.PP
Key bindings can be modified using the configuration systems. Multiple keys can be bound
to one action by comma separating them. For example \fB \fC \- kb\- primary\- paste "Conctrol+v,Insert"\fR
.PP
2020-01-26 14:48:17 +00:00
To get a searchable list of key bindings, run \fB \fC rofi \- show keys\fR \& .
.PP
A key binding starting with \fB \fC !\fR will act when all keys have been released.
2021-09-02 07:55:31 +00:00
.PP
You can bind certain events to key\- actions:
.SS Timeout
.PP
You can configure an action to be taken when rofi has not been interacted
with for a certain amount of seconds. You can specify a keybinding to trigger
after X seconds.
.PP
.RS
.nf
configuration {
timeout {
delay: 15;
action: "kb\- cancel";
}
}
.fi
.RE
.SS Input change
.PP
When the input of the textbox changes:
.PP
.RS
.nf
configuration {
inputchange {
action: "kb\- row\- first";
}
}
.fi
.RE
2020-01-26 14:48:17 +00:00
.SH Available Modi
2020-05-10 13:44:29 +00:00
.SS window
2020-01-26 14:48:17 +00:00
.PP
Show a list of all the windows and allow switching between them.
Pressing the \fB \fC delete\- entry\fR binding (\fB \fC shift\- delete\fR ) will close the window.
Pressing the \fB \fC accept\- custom\fR binding (\fB \fC control\- enter\fR or \fB \fC shift\- enter\fR ) will run a command on the window.
(See option \fB \fC window\- command\fR );
2021-06-07 21:13:21 +00:00
.PP
If there is no match, it will try to launch the input.
2020-05-10 13:44:29 +00:00
.SS windowcd
2020-01-26 14:48:17 +00:00
.PP
Shows a list of the windows on the current desktop and allows switching between them.
Pressing the \fB \fC delete\- entry\fR binding (\fB \fC shift\- delete\fR ) will kill the window.
Pressing the \fB \fC accept\- custom\fR binding (\fB \fC control\- enter\fR or \fB \fC shift\- enter\fR ) will run a command on the window.
(See option \fB \fC window\- command\fR );
2020-09-13 19:56:25 +00:00
.PP
If there is no match, it will try to launch the input.
2020-05-10 13:44:29 +00:00
.SS run
2020-01-26 14:48:17 +00:00
.PP
2020-05-10 13:44:29 +00:00
Shows a list of executables in \fB \fC $PATH\fR and can launch them (optional in a terminal).
2020-01-26 14:48:17 +00:00
Pressing the \fB \fC delete\- entry\fR binding (\fB \fC shift\- delete\fR ) will remove this entry from the run history.
2021-07-05 14:47:24 +00:00
Pressing the \fB \fC accept\- custom\fR binding (\fB \fC control\- enter\fR ) will run the command as entered in the entry box.
Pressing the \fB \fC accept\- alt\fR binding (\fB \fC shift\- enter\fR ) will run the command in a terminal.
2020-01-26 14:48:17 +00:00
2021-06-07 21:13:21 +00:00
.PP
When pressing the \fB \fC mode\- complete\fR binding (\fB \fC Control\- l\fR ), you can use the File Browser mode to launch the application
with a file as the first argument.
2020-05-10 13:44:29 +00:00
.SS drun
2020-01-26 14:48:17 +00:00
.PP
Same as the \fB run\fP launches, but the list is created from the installed desktop files. It automatically launches them
in a terminal if specified in the Desktop File.
Pressing the \fB \fC delete\- entry\fR binding (\fB \fC shift\- delete\fR ) will remove this entry from the run history.
2021-07-05 14:47:24 +00:00
Pressing the \fB \fC accept\- custom\fR binding (\fB \fC control\- enter\fR ) will run the command as entered in the entry box.
Pressing the \fB \fC accept\- alt\fR binding (\fB \fC shift\- enter\fR ) will run the command in a terminal.
2020-01-26 14:48:17 +00:00
2021-06-08 18:23:14 +00:00
.PP
When pressing the \fB \fC mode\- complete\fR binding (\fB \fC Control\- l\fR ), you can use the File Browser mode to launch the application
passing a file as argument if specified in the desktop file.
2021-06-07 21:13:21 +00:00
.PP
2021-08-26 20:43:11 +00:00
The DRUN mode tries to follow the XDG Desktop Entry
2021-06-07 21:13:21 +00:00
Specification
\[ la]https://freedesktop.org/wiki/Specifications/desktop-entry-spec/\[ ra] and should be compatible with
2021-08-26 20:43:11 +00:00
applications using this standard. Some applications create invalid desktop files, \fB rofi\fP will discard these entries.
See the debugging section for more info on DRUN mode, this will print why desktop files are
2021-06-07 21:13:21 +00:00
discarded.
2021-06-15 14:19:57 +00:00
.PP
There are two advanced options to tweak the behaviour:
.PP
.RS
.nf
configuration {
drun {
/** Parse user desktop files. */
parse\- user: true;
/** Parse system desktop files. */
parse\- system: false;
}
}
.fi
.RE
2020-05-10 13:44:29 +00:00
.SS ssh
2020-01-26 14:48:17 +00:00
.PP
2020-05-10 13:44:29 +00:00
Shows a list of SSH targets based on your \fB \fC ssh\fR config file, and allows to quickly \fB \fC ssh\fR into them.
2020-01-26 14:48:17 +00:00
2020-05-10 13:44:29 +00:00
.SS keys
2020-01-26 14:48:17 +00:00
.PP
Shows a searchable list of key bindings.
2020-05-10 13:44:29 +00:00
.SS script
2020-01-26 14:48:17 +00:00
.PP
2021-06-07 21:13:21 +00:00
Allows custom scripted Modi to be added, see the \fB rofi\- script(5)\fP manpage for more information.
2020-01-26 14:48:17 +00:00
2020-05-12 19:12:45 +00:00
.SS combi
.PP
Combines multiple modi in one list. Specify which modi are included with the \fB \fC \- combi\- modi\fR option.
.PP
When using the combi mode, a \fI !bang\fP can be used to filter the results by modi.
All modi that match the bang as a prefix are included.
For example, say you have specified \fB \fC \- combi\- modi run,window,windowcd\fR \& . If your
query begins with the bang \fB \fC !w\fR , only results from the \fB \fC window\fR and \fB \fC windowcd\fR
modi are shown, even if the rest of the input text would match results from \fB \fC run\fR \& .
2020-09-13 19:56:25 +00:00
.PP
If no match, the input is handled by the first combined modi.
2020-01-26 14:48:17 +00:00
.SH FAQ
2020-05-10 13:44:29 +00:00
.SS The text in the window switcher is not nicely aligned.
2020-01-26 14:48:17 +00:00
.PP
Try using a mono\- space font.
.SS The window is completely black.
.PP
2020-05-10 13:44:29 +00:00
Check quotes used on the command\- line: you might have used \fB \fC “\fR ("smart quotes") instead of \fB \fC "\fR ("machine quotes").
2020-01-26 14:48:17 +00:00
.SS What does the icon in the top right show?
.PP
2016-04-03 12:56:23 +00:00
The indicator shows:
2019-09-20 13:01:34 +00:00
2020-01-26 14:48:17 +00:00
.PP
.RS
.nf
` ` Case insensitive and no sorting.
`\- ` Case sensitivity enabled, no sorting.
2016-04-03 12:56:23 +00:00
`+` Case insensitive and Sorting enabled
`±` Sorting and Case sensitivity enabled"
2020-01-26 14:48:17 +00:00
2015-12-14 20:02:36 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.SH EXAMPLES
.PP
Some basic usage examples of \fB rofi\fP :
.PP
2016-12-21 08:42:04 +00:00
Show the run dialog:
2019-09-20 13:01:34 +00:00
2020-01-26 14:48:17 +00:00
.PP
.RS
.nf
2019-06-16 17:47:04 +00:00
rofi \- modi run \- show run
2020-01-26 14:48:17 +00:00
2016-12-21 08:42:04 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
2020-05-10 13:44:29 +00:00
Show the run dialog, and allow switching to Desktop File run dialog (\fB \fC drun\fR ):
2019-09-20 13:01:34 +00:00
2020-01-26 14:48:17 +00:00
.PP
.RS
.nf
2019-06-16 17:47:04 +00:00
rofi \- modi run,drun \- show run
2020-01-26 14:48:17 +00:00
2016-12-21 08:42:04 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
2020-05-10 13:44:29 +00:00
Combine the run and Desktop File run dialog (\fB \fC drun\fR ):
2019-09-20 13:01:34 +00:00
2020-01-26 14:48:17 +00:00
.PP
.RS
.nf
2019-06-16 17:47:04 +00:00
rofi \- modi combi \- show combi \- combi\- modi run,drun
2020-01-26 14:48:17 +00:00
2016-12-21 08:42:04 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
2020-05-10 13:44:29 +00:00
Combine the run and Desktop File run dialog (\fB \fC drun\fR ), and allow switching to window switcher:
2019-09-20 13:01:34 +00:00
2020-01-26 14:48:17 +00:00
.PP
.RS
.nf
2019-06-16 17:47:04 +00:00
rofi \- modi combi,window \- show combi \- combi\- modi run,drun
2020-01-26 14:48:17 +00:00
2016-12-21 08:42:04 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
2017-08-13 18:31:46 +00:00
Pop up a text message claiming that this is the end:
2019-09-20 13:01:34 +00:00
2020-01-26 14:48:17 +00:00
.PP
.RS
.nf
2019-06-16 17:47:04 +00:00
rofi \- e "This is the end"
2020-01-26 14:48:17 +00:00
2016-12-21 08:42:04 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
2017-08-13 18:31:46 +00:00
Pop up a text message in red, bold font claiming that this is still the end:
2020-01-26 14:48:17 +00:00
.PP
.RS
2016-12-21 08:42:04 +00:00
.nf
2020-01-26 14:48:17 +00:00
rofi \- e "<span color='red'><b>This is still the end</b></span>" \- markup
2019-09-20 13:01:34 +00:00
2016-12-21 08:42:04 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
2017-08-13 18:31:46 +00:00
Show all key bindings:
2019-09-20 13:01:34 +00:00
2020-01-26 14:48:17 +00:00
.PP
.RS
.nf
2019-06-16 17:47:04 +00:00
rofi \- show keys
2020-01-26 14:48:17 +00:00
2016-12-21 08:42:04 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.PP
Use \fB \fC qalc\fR to get a simple calculator in \fB rofi\fP :
2019-09-20 13:01:34 +00:00
2020-01-26 14:48:17 +00:00
.PP
.RS
.nf
2019-06-16 17:47:04 +00:00
rofi \- show calc \- modi "calc:qalc +u8 \- nocurrencies"
2020-01-26 14:48:17 +00:00
2016-12-21 08:42:04 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.SH i3
.PP
In i3
\[ la]http://i3wm.org/\[ ra] you want to bind \fB rofi\fP to be launched on key release. Otherwise, it cannot grab the keyboard.
See also the i3 manual
\[ la]http://i3wm.org/docs/userguide.html\[ ra]:
2019-09-20 13:01:34 +00:00
2020-01-26 14:48:17 +00:00
.PP
2020-05-10 13:44:29 +00:00
Some tools (such as \fB \fC import\fR or \fB \fC xdotool\fR ) might be unable to run upon a KeyPress event, because the keyboard/pointer is
2020-01-26 14:48:17 +00:00
still grabbed. For these situations, the \fB \fC \- \- release\fR flag can be used, as it will execute the command after the keys have
been released.
.SH LICENSE
.PP
.RS
.nf
2015-04-22 19:03:02 +00:00
MIT/X11
2015-06-02 17:01:25 +00:00
2015-04-22 19:03:02 +00:00
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
2015-06-02 17:01:25 +00:00
2015-04-22 19:03:02 +00:00
The above copyright notice and this permission notice shall be
2020-01-26 14:48:17 +00:00
included in all copies or substantial portions of the Software.
2015-06-02 17:01:25 +00:00
2015-04-22 19:03:02 +00:00
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2020-01-26 14:48:17 +00:00
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
2015-04-22 19:03:02 +00:00
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
2020-01-26 14:48:17 +00:00
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2015-06-02 17:01:25 +00:00
.fi
2020-01-26 14:48:17 +00:00
.RE
.SH WEBSITE
.PP
\fB rofi\fP website can be found here
\[ la]https://davedavenport.github.io/rofi/\[ ra]
.SH SUPPORT
.PP
2021-06-07 21:13:21 +00:00
\fB rofi\fP support can be obtained:
* GitHub Discussions
\[ la]https://github.com/davatorium/rofi/discussions\[ ra]
2021-08-26 20:43:11 +00:00
* Forum (Reddit)
2020-01-26 14:48:17 +00:00
\[ la]https://reddit.com/r/qtools//\[ ra]
2021-06-07 21:13:21 +00:00
* IRC
\[ la]irc://irc.libera.chat:6697/#rofi\[ ra] (#rofi on irc.libera.chat),
2020-01-26 14:48:17 +00:00
.SH DEBUGGING
.PP
2021-08-26 20:43:11 +00:00
To debug, it is smart to first try disabling your custom configuration:
2021-06-07 21:13:21 +00:00
\fB \fC \- no\- config\fR
.PP
Disable parsing of configuration. This runs rofi in \fI stock\fP mode.
.PP
If you run custom C plugins, you can disable them using:
.PP
\fB \fC \- no\- plugins\fR
.PP
Disables the loading of plugins.
.PP
To further debug the plugin, you can get a trace with (lots of) debug information. This debug output can be enabled for
multiple parts in rofi using the glib debug framework. Debug domains can be enabled by setting the G\_ MESSAGES\_ DEBUG
2021-08-26 20:43:11 +00:00
environment variable. At the time of creation of this page, the following debug domains exist:
2021-06-15 18:10:04 +00:00
.RS
2021-06-07 21:13:21 +00:00
.IP \(bu 2
all: Show debug information from all domains.
.IP \(bu 2
X11Helper: The X11 Helper functions.
.IP \(bu 2
2021-06-10 19:59:56 +00:00
View: The main window view functions.
2021-06-07 21:13:21 +00:00
.IP \(bu 2
Widgets.Box: The Box widget.
.IP \(bu 2
Dialogs.DMenu: The dmenu mode.
.IP \(bu 2
Dialogs.Run: The run mode.
.IP \(bu 2
Dialogs.DRun: The desktop file run mode.
.IP \(bu 2
Dialogs.Window: The window mode.
.IP \(bu 2
Dialogs.Script: The script mode.
.IP \(bu 2
Dialogs.Combi: The script mode.
.IP \(bu 2
Dialogs.Ssh: The ssh mode.
.IP \(bu 2
Rofi: The main application.
.IP \(bu 2
Timings: Get timing output.
.IP \(bu 2
Theme: Theme engine debug output. (warning lots of output).
.IP \(bu 2
Widgets.Icon: The Icon widget.
.IP \(bu 2
Widgets.Box: The box widget.
.IP \(bu 2
Widgets.Container: The container widget.
.IP \(bu 2
Widgets.Window: The window widget.
.IP \(bu 2
Helpers.IconFetcher: Information about icon lookup.
2021-06-15 18:10:04 +00:00
.RE
2021-06-07 21:13:21 +00:00
.PP
The output of this can provide useful information when writing an issue.
.PP
More information (possibly outdated) see this
2021-08-26 20:43:11 +00:00
\[ la]https://github.com/DaveDavenport/rofi/wiki/Debugging%20Rofi\[ ra] wiki entry.
2020-01-26 14:48:17 +00:00
.SH ISSUE TRACKER
.PP
2020-05-10 13:44:29 +00:00
The \fB rofi\fP issue tracker can be found here
2020-01-26 14:48:17 +00:00
\[ la]https://github.com/DaveDavenport/rofi/issues\[ ra]
.PP
When creating an issue, please read this
\[ la]https://github.com/DaveDavenport/rofi/blob/master/.github/CONTRIBUTING.md\[ ra]
first.
.SH SEE ALSO
.PP
2020-05-10 13:44:29 +00:00
\fB rofi\- sensible\- terminal(1)\fP , \fB dmenu(1)\fP , \fB rofi\- theme(5)\fP , \fB rofi\- script(5)\fP , \fB rofi\- theme\- selector(1)\fP
2020-01-26 14:48:17 +00:00
2021-06-15 18:10:04 +00:00
.SH AUTHOR
.RS
.IP \(bu 2
2021-09-20 04:52:21 +00:00
Qball Cow qball@blame.services
\[ la]mailto:qball@blame.services\[ ra]
2020-05-10 13:44:29 +00:00
.IP \(bu 2
2021-09-20 04:52:21 +00:00
Rasmus Steinke rasi@xssn.at
\[ la]mailto:rasi@xssn.at\[ ra]
2020-05-10 13:44:29 +00:00
.IP \(bu 2
2021-09-20 04:52:21 +00:00
Quentin Glidic sardemff7+rofi@sardemff7.net
\[ la]mailto:sardemff7+rofi@sardemff7.net\[ ra]
2020-01-26 14:48:17 +00:00
2021-06-15 18:10:04 +00:00
.RE
2020-01-26 14:48:17 +00:00
.PP
2021-06-08 20:02:29 +00:00
Original code based on work by: Sean Pringle
2021-09-20 04:52:21 +00:00
\[ la]https://github.com/seanpringle/simpleswitcher\[ ra] sean.pringle@gmail.com
\[ la]mailto:sean.pringle@gmail.com\[ ra]
2020-01-26 14:48:17 +00:00
.PP
2020-05-10 13:44:29 +00:00
For a full list of authors, check the \fB \fC AUTHORS\fR file.