1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00
rofi/doc/rofi.1

1591 lines
32 KiB
Groff
Raw Normal View History

2015-06-02 13:01:25 -04:00
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
2017-10-03 13:51:27 -04:00
.TH "ROFI" "1" "October 2017" "" ""
2015-06-02 13:01:25 -04:00
.
.SH "NAME"
2017-03-18 10:54:35 -04:00
\fBrofi\fR \- A window switcher, application launcher, ssh dialog and dmenu replacement
2015-06-02 13:01:25 -04:00
.
.SH "SYNOPSIS"
2017-07-22 15:11:46 -04:00
\fBrofi\fR [ \-show \fImode\fR ]|[ \-dmenu ]|[ \-e \fImsg\fR ] [ CONFIGURATION ]
2015-06-02 13:01:25 -04:00
.
.SH "DESCRIPTION"
2017-08-13 14:31:46 -04:00
\fBrofi\fR 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\.
2015-06-02 13:01:25 -04:00
.
.SH "USAGE"
2017-08-13 14:31:46 -04:00
\fBrofi\fR\'s main functionality is to assist in your workflow, allowing you to quickly switch between windows, start applications or log into a remote machine via ssh\. There are different \fImodi\fR for different types of actions\.
2015-06-02 13:01:25 -04:00
.
2016-12-14 03:26:12 -05:00
.P
2017-08-13 14:31:46 -04:00
\fBrofi\fR can also function as (drop\-in) replacement for \fBdmenu(1)\fR\.
2016-12-14 03:26:12 -05:00
.
.SS "Running rofi"
2015-09-04 15:08:23 -04:00
To launch \fBrofi\fR directly in a certain mode, specify a mode with \fBrofi \-show <mode>\fR\. To show the run dialog:
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
2015-04-05 15:49:55 -04:00
.nf
2015-06-02 13:01:25 -04:00
2015-09-04 15:08:23 -04:00
rofi \-show run
2015-06-02 13:01:25 -04:00
.
2015-04-05 15:49:55 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.SS "Emulating dmenu"
2016-12-14 03:26:12 -05:00
\fBrofi\fR can emulate \fBdmenu(1)\fR (a dynamic menu for X) when launched with the \fB\-dmenu\fR flag\.
2015-06-02 13:01:25 -04:00
.
.P
2017-08-13 14:31:46 -04:00
The website for \fBdmenu\fR can be found here \fIhttp://tools\.suckless\.org/dmenu/\fR\.
2015-06-02 13:01:25 -04:00
.
2017-07-18 03:18:18 -04:00
.P
2017-08-13 14:31:46 -04:00
\fBrofi\fR does not aim to be 100% compatible with dmenu\. There are simply too many different flavors of dmenu\. The idea is that the basic usage command\-line flags are obeyed, theme\-related flags are not\. Besides, \fBrofi\fR offers some extended features (like multi\-select, highlighting, message bar, extra key bindings)\.
2017-07-18 03:18:18 -04:00
.
2017-07-22 15:11:46 -04:00
.SS "Display Error message"
2017-08-13 14:31:46 -04:00
\fBrofi\fR error dialog can also be called from the command line\.
2017-07-22 15:11:46 -04:00
.
.IP "" 4
.
.nf
rofi \-e "my message"
.
.fi
.
.IP "" 0
.
.P
Markup support can be enabled, see CONFIGURATION options\.
.
2016-12-14 03:26:12 -05:00
.SH "CONFIGURATION"
2016-03-05 14:52:46 -05:00
There are currently three methods of setting configuration options (evaluated in order below):
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
System configuration file (for example \fB/etc/rofi\.conf\fR)\.
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-07-18 03:18:18 -04:00
Xresources: A method of storing key values in the Xserver\. See here \fIhttps://en\.wikipedia\.org/wiki/X_resources\fR for more information\.
.
.IP "\(bu" 4
2017-07-22 16:14:15 -04:00
Rasi theme file: The new \fItheme\fR format can be used to set configuration values\.
.
.IP "\(bu" 4
2017-07-18 03:18:18 -04:00
Configuration File: This uses the same format as the Xresources file\. By default it looks in \fBXDG_USER_CONFIG_DIR\fR/rofi/config, but can be overridden on commandline\. By default XDG_USER_CONFIG_DIR defaults to \fB$HOME/\.config\fR\. (See \fBrofi \-h\fR for current location)\. This is the recommended way of configuring \fBrofi\fR\.
2015-06-02 13:01:25 -04:00
.
2016-04-02 04:14:13 -04:00
.IP "\(bu" 4
2016-12-14 03:26:12 -05:00
Command\-line options: Arguments passed to \fBrofi\fR\.
2016-04-02 04:14:13 -04:00
.
2015-06-02 13:01:25 -04:00
.IP "" 0
.
.P
2017-07-18 03:18:18 -04:00
\fBTIP\fR: To get a template config file run: \fBrofi \-dump\-xresources > rofi\-example\.config\fR\. \fBNOTE\fR: In version 1\.4\.0 we support configuration in a new format, a config for this can be generated by: \fBrofi \-dump\-config\fR
.
.P
2017-08-13 14:31:46 -04:00
The Xresources file expects options starting with \fBrofi\.\fR followed by its name\. An example to set the number of lines:
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
.nf
2015-06-02 13:01:25 -04:00
2015-09-04 15:08:23 -04:00
rofi\.lines: 10
2015-06-02 13:01:25 -04:00
.
.fi
.
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
Command line options override settings from Xresources file\. The same option set as argument — prefixed with a \'\-\':
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
.nf
2015-09-04 15:08:23 -04:00
rofi \-lines 10
2015-06-02 13:01:25 -04:00
.
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
To get a list of available options formatted as Xresources entries, run:
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
.nf
2015-06-02 13:01:25 -04:00
2015-07-07 16:10:40 -04:00
rofi \-dump\-xresources
2015-06-02 13:01:25 -04:00
.
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
The configuration system supports the following types:
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
string
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
integer (signed and unsigned)
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
char
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
Boolean
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
2015-09-04 15:08:23 -04:00
Boolean options have a non\-default command\-line syntax\. Example to enable option X:
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
2015-04-25 11:40:01 -04:00
.nf
2015-06-02 13:01:25 -04:00
2015-04-25 11:40:01 -04:00
\-X
2015-06-02 13:01:25 -04:00
.
2015-04-25 11:40:01 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
2016-12-14 03:26:12 -05:00
To disable option X:
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
2015-04-25 11:40:01 -04:00
.nf
2015-06-02 13:01:25 -04:00
2015-04-25 11:40:01 -04:00
\-no\-X
2015-06-02 13:01:25 -04:00
.
2015-04-25 11:40:01 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
Below is a list of the most important options:
2015-06-02 13:01:25 -04:00
.
.SS "General"
2015-11-25 03:16:30 -05:00
\fB\-help\fR
.
.P
2016-12-14 03:26:12 -05:00
The help option shows the full list of commandline options and the current set value\. These include dynamic (run\-time generated) options\.
2015-11-25 03:16:30 -05:00
.
.P
\fB\-dump\-xresources\fR
.
.P
2017-08-13 14:31:46 -04:00
Dump the current active configuration in Xresources format to the command\-line\. This does not validate all passed values (for example, colors)\.
2015-11-25 03:16:30 -05:00
.
.P
2015-11-25 10:53:58 -05:00
\fB\-threads\fR \fInum\fR
.
.P
Specify the number of threads \fBrofi\fR should use:
.
.IP "\(bu" 4
0: Autodetect the number of supported hardware threads\.
.
.IP "\(bu" 4
1: Disable threading
.
.IP "\(bu" 4
2\.\.N: Specify the maximum number of threads to use in the thread pool\.
.
.IP "" 0
.
.P
2015-06-02 13:01:25 -04:00
\fB\-dmenu\fR
.
.P
2017-08-13 14:31:46 -04:00
Run \fBrofi\fR in dmenu mode\. This allows for interactive scripts\. In \fBdmenu\fR mode, \fBrofi\fR reads from STDIN, and output to STDOUT\. A simple example, displaying three pre\-defined options:
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
2015-04-07 21:50:57 -04:00
.nf
2015-06-02 13:01:25 -04:00
2015-09-04 15:08:23 -04:00
echo \-e "Option #1\enOption #2\enOption #3" | rofi \-dmenu
2015-06-02 13:01:25 -04:00
.
2015-04-07 21:50:57 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
2015-04-07 21:50:57 -04:00
Or get the options from a script:
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
.nf
2015-09-04 15:08:23 -04:00
~/my_script\.sh | rofi \-dmenu
2015-06-02 13:01:25 -04:00
.
.fi
.
.IP "" 0
.
.P
\fB\-show\fR \fImode\fR
.
.P
2017-08-13 14:31:46 -04:00
Open \fBrofi\fR in a certain mode\. Available modes are \fBwindow\fR, \fBrun\fR, \fBdrun\fR, \fBssh\fR, \fBcombi\fR\. The special argument \fBkeys\fR can be used to open a searchable list of supported key bindings (see \fIKEY BINDINGS\fR)
.
.P
To show the run\-dialog:
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
2014-10-20 14:29:26 -04:00
.nf
2015-06-02 13:01:25 -04:00
2015-09-04 15:08:23 -04:00
rofi \-show run
2015-06-02 13:01:25 -04:00
.
2014-10-20 14:29:26 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
2015-09-04 15:08:23 -04:00
\fB\-modi\fR \fImode1,mode1\fR
2015-06-02 13:01:25 -04:00
.
.P
2017-08-13 14:31:46 -04:00
Specify an ordered, comma\-separated list of modes to enable\. Enabled modes can be changed at runtime\. Default key is Ctrl+Tab\. If no modes are specified, all modes will be enabled\. To only show the run and ssh launcher:
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
2014-10-20 14:29:26 -04:00
.nf
2015-06-02 13:01:25 -04:00
2015-09-04 15:08:23 -04:00
rofi \-modi "run,ssh" \-show run
2015-06-02 13:01:25 -04:00
.
2014-10-20 14:29:26 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
Custom modes can be added using the internal \'script\' mode\. Each mode has two parameters:
.
.IP "" 4
.
2014-10-20 14:29:26 -04:00
.nf
2015-06-02 13:01:25 -04:00
2015-09-04 15:08:23 -04:00
<name>:<script>
2015-06-02 13:01:25 -04:00
.
.fi
.
.IP "" 0
.
.P
Example: Have a mode \'Workspaces\' using the \fBi3_switch_workspaces\.sh\fR script:
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
.nf
2015-09-04 15:08:23 -04:00
rofi \-modi "window,run,ssh,Workspaces:i3_switch_workspaces\.sh" \-show Workspaces
2015-06-02 13:01:25 -04:00
.
2014-10-20 14:29:26 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
2017-03-31 14:57:42 -04:00
Notes: The I3 Window manager does not like commas in the command when specifying an exec command\. For that case \'#\' can be used as an separator\.
.
.P
2015-06-02 13:01:25 -04:00
\fB\-case\-sensitive\fR
.
.P
2016-12-14 03:26:12 -05:00
Start in case sensitive mode\. This option can be changed at run\-time using the \fB\-kb\-toggle\-case\-sensitivity\fR key binding\.
2015-06-02 13:01:25 -04:00
.
.P
\fB\-cycle\fR
.
.P
2017-08-13 14:31:46 -04:00
Cycle thru the result list\. Default is \'true\'\.
.
.P
\fB\-filter\fR \fIfilter\fR
.
2015-09-04 15:08:23 -04:00
.P
Filter the list by setting text in input bar to \fIfilter\fR
.
.P
\fB\-config\fR \fIfilename\fR
.
.P
2017-08-13 14:31:46 -04:00
Load an alternative configuration file\.
.
2016-02-17 14:29:23 -05:00
.P
\fB\-scroll\-method\fR \fImethod\fR
.
.P
Select the scrolling method\. 0: Per page, 1: continuous\.
.
.P
\fB\-no\-show\-match\fR
.
.P
Hide the indicator that shows what part of the string is matched\.
.
.P
2017-02-02 13:00:45 -05:00
\fB\-no\-lazy\-grab\fR
.
.P
2017-02-02 13:00:45 -05:00
Disables lazy grab, this forces the keyboard being grabbed before gui is shown\.
.
.P
\fB\-no\-plugins\fR
.
.P
Disable plugin loading\.
.
.P
\fB\-plugin\-path\fR \fIdirectory\fR
.
.P
2017-08-13 14:31:46 -04:00
Specify the directory where \fBrofi\fR should look for plugins\.
.
2017-03-18 10:54:35 -04:00
.SS "Matching"
\fB\-matching\fR \fImethod\fR
2015-10-25 05:53:22 -04:00
.
.P
Specify the matching algorithm used\. Current the following methods are supported\.
2015-11-25 03:16:30 -05:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBnormal\fR: match the int string
2015-11-25 03:16:30 -05:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBregex\fR: match a regex input
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBglob\fR: match a glob pattern
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBfuzzy\fR: do a fuzzy match
.
.IP
Default: \fInormal\fR
.
.IP "" 0
2015-10-25 05:53:22 -04:00
.
.P
Note: glob matching might be slow for larger lists
.
.P
2015-10-25 05:53:22 -04:00
\fB\-tokenize\fR
.
.P
Tokenize the input\.
.
.P
\fB\-drun\-match\-fields\fR \fIfield1\fR,\fIfield2\fR,\.\.\.
.
.P
When using drun, match only with the specified Desktop entry fields\. The different fields are:
.
.IP "\(bu" 4
\fBname\fR: the application\'s name
.
.IP "\(bu" 4
\fBgeneric\fR: the application\'s generic name
.
.IP "\(bu" 4
\fBexec\fR: the application\'s executable
.
.IP "\(bu" 4
\fBcategories\fR: the application\'s categories
.
.IP "\(bu" 4
\fBall\fR: all of the above
.
.IP
Default: \fIall\fR
.
.IP "" 0
.
.P
\fB\-window\-match\-fields\fR \fIfield1\fR,\fIfield2\fR,\.\.\.
.
.P
When using window mode, match only with the specified fields\. The different fields are:
.
.IP "\(bu" 4
\fBtitle\fR: window\'s title
.
.IP "\(bu" 4
\fBclass\fR: window\'s class
.
.IP "\(bu" 4
\fBrole\fR: window\'s role
.
.IP "\(bu" 4
\fBname\fR: window\'s name
.
.IP "\(bu" 4
\fBdesktop\fR: window\'s current desktop
.
.IP "\(bu" 4
\fBall\fR: all of the above
.
.IP
Default: \fIall\fR
.
.IP "" 0
.
2015-06-02 13:01:25 -04:00
.SS "Layout"
2017-08-13 14:31:46 -04:00
Most of the following options are \fBdeprecated\fR and should not be used\. Please use the new theme format to customize \fBrofi\fR\. More information about the new format can be found in the \fBrofi\-theme(5)\fR manpage\.
2017-03-18 10:54:35 -04:00
.
.P
2015-06-02 13:01:25 -04:00
\fB\-lines\fR
.
.P
2015-09-04 15:08:23 -04:00
Maximum number of lines to show before scrolling\.
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
.nf
2015-09-04 15:08:23 -04:00
rofi \-lines 25
2015-06-02 13:01:25 -04:00
.
2014-05-22 04:37:25 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
Default: \fI15\fR
.
.P
\fB\-columns\fR
.
.P
2015-09-04 15:08:23 -04:00
Number of columns to show before scrolling\.
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
2014-05-22 04:37:25 -04:00
.nf
2015-06-02 13:01:25 -04:00
2015-09-04 15:08:23 -04:00
rofi \-columns 2
2015-06-02 13:01:25 -04:00
.
2014-05-22 04:37:25 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
Default: \fI1\fR
.
.P
\fB\-width\fR [value]
.
.P
2015-09-04 15:08:23 -04:00
Set width of menu\. \fB[value]\fR is specified in percentage\.
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
2014-05-22 04:37:25 -04:00
.nf
2015-06-02 13:01:25 -04:00
2015-09-04 15:08:23 -04:00
rofi \-width 60
2015-06-02 13:01:25 -04:00
.
2014-05-22 04:37:25 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
If \fB[value]\fR is larger then 100, size is set in pixels\. Example to span a full\-HD monitor:
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
2014-08-14 15:16:42 -04:00
.nf
2015-06-02 13:01:25 -04:00
2015-09-04 15:08:23 -04:00
rofi \-width 1920
2015-06-02 13:01:25 -04:00
.
2014-08-14 15:16:42 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
If \fB[value]\fR is negative, it tries to estimates a character width\. To show 30 characters in a row:
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
2014-08-14 15:16:42 -04:00
.nf
2015-06-02 13:01:25 -04:00
2015-09-04 15:08:23 -04:00
rofi \-width \-30
2015-06-02 13:01:25 -04:00
.
2014-08-14 15:16:42 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
Character width is a rough estimate, and might not be correct, but should work for most monospaced fonts\.
2015-06-02 13:01:25 -04:00
.
.P
Default: \fI50\fR
.
.P
\fB\-location\fR
.
.P
2015-09-04 15:08:23 -04:00
Specify where the window should be located\. The numbers map to the following locations on screen:
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
2014-05-22 04:37:25 -04:00
.nf
2015-06-02 13:01:25 -04:00
2014-08-01 17:29:01 -04:00
1 2 3
8 0 4
7 6 5
2015-06-02 13:01:25 -04:00
.
2014-05-22 04:37:25 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
Default: \fI0\fR
.
.P
\fB\-fixed\-num\-lines\fR
.
.P
Keep a fixed number of visible lines (See the \fB\-lines\fR option\.)
.
.P
\fB\-padding\fR
.
.P
Define the inner margin of the window\.
.
.P
Default: \fI5\fR
.
.P
2015-11-04 09:55:06 -05:00
\fB\-fullscreen\fR
.
.P
2017-08-13 14:31:46 -04:00
Use the full\-screen height and width\.
2015-11-04 09:55:06 -05:00
.
.P
2015-06-02 13:01:25 -04:00
\fB\-sidebar\-mode\fR
.
2015-09-04 15:08:23 -04:00
.P
2017-08-13 14:31:46 -04:00
Open in sidebar\-mode\. In this mode a list of all enabled modes is shown at the bottom\. (See \fB\-modi\fR option) To show sidebar, use:
2015-09-04 15:08:23 -04:00
.
2015-06-02 13:01:25 -04:00
.IP "" 4
.
.nf
2015-09-04 15:08:23 -04:00
rofi \-show run \-sidebar\-mode \-lines 0
2015-06-02 13:01:25 -04:00
.
.fi
.
.IP "" 0
.
.P
\fB\-auto\-select\fR
.
2015-09-04 15:08:23 -04:00
.P
When one entry is left, automatically select it\.
2015-06-02 13:01:25 -04:00
.
2015-08-02 09:45:52 -04:00
.P
\fB\-m\fR \fInum\fR
2015-08-02 09:45:52 -04:00
.
2015-09-04 15:08:23 -04:00
.P
\fB\-m\fR \fIname\fR
.
.P
\fB\-monitor\fR \fInum\fR
.
.P
\fB\-monitor\fR \fIname\fR
.
.P
2017-08-13 14:31:46 -04:00
Select monitor to display \fBrofi\fR on\. It accepts as input: \fIprimary\fR (if primary output is set), the \fIxrandr\fR output name, or integer number (in order of detection)\. Negative numbers are handled differently:
2015-09-04 15:08:23 -04:00
.
.IP "\(bu" 4
\fB\-1\fR: the currently focused monitor\.
2015-08-02 09:45:52 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fB\-2\fR: the currently focused window (that is, \fBrofi\fR will be displayed on top of the focused window)\.
2015-08-02 09:45:52 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fB\-3\fR: Position at mouse (overrides the location setting to get normal context menu behavior\.)
.
2016-04-29 15:42:31 -04:00
.IP "\(bu" 4
\fB\-4\fR: the monitor with the focused window\.
.
.IP "\(bu" 4
\fB\-5\fR: the monitor that shows the mouse pointer\.
.
.IP
2016-08-20 05:32:13 -04:00
Default: \fI\-5\fR
2015-08-02 09:45:52 -04:00
.
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
See \fBrofi \-h\fR output for the detected monitors, their position, and size\.
.
2017-01-18 12:12:54 -05:00
.P
\fB\-theme\fR \fIfilename\fR
.
.P
Path to the new theme file format\. This overrides the old theme settings\.
.
.P
\fB\-theme\-str\fR \fIstring\fR
.
.P
2017-08-13 14:31:46 -04:00
Allow theme parts to be specified on the command line as an override\.
2017-01-18 12:12:54 -05:00
.
.P
2017-08-13 14:31:46 -04:00
For example:
2017-01-18 12:12:54 -05:00
.
.IP "" 4
.
.nf
rofi \-theme\-str \'#window { fullscreen: true; }\'
.
.fi
.
.IP "" 0
.
.P
This option can be specified multiple times\.
.
2017-01-21 06:58:52 -05:00
.P
\fB\-dpi\fR \fInumber\fR
.
.P
2017-08-13 14:31:46 -04:00
Override the default DPI setting\. If set to \fB0\fR, it tries to auto\-detect based on X11 screen size (similar to i3 and GTK)\. If set to \fB1\fR, it tries to auto\-detect based on the size of the monitor that rofi is displayed on (similar to latest Qt 5)\.
2017-01-21 06:58:52 -05:00
.
2015-06-02 13:01:25 -04:00
.SS "PATTERN setting"
\fB\-terminal\fR
.
.P
2017-08-13 14:31:46 -04:00
Specify which terminal to start\.
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
2014-10-20 14:29:26 -04:00
.nf
2015-06-02 13:01:25 -04:00
2015-09-04 15:08:23 -04:00
rofi \-terminal xterm
2015-06-02 13:01:25 -04:00
.
.fi
.
.IP "" 0
.
.P
Pattern: \fI{terminal}\fR Default: \fIx\-terminal\-emulator\fR
.
.P
\fB\-ssh\-client\fR \fIclient\fR
.
.P
Override the used ssh client\.
.
.P
Pattern: \fI{ssh\-client}\fR Default: \fIssh\fR
.
.SS "SSH settings"
\fB\-ssh\-command\fR \fIcmd\fR
.
.P
Set the command to execute when starting a ssh session\. The pattern \fI{host}\fR is replaced by the selected ssh entry\.
.
.P
2016-12-14 03:26:12 -05:00
Pattern: \fI{ssh\-client}\fR Default: \fI{terminal} \-e {ssh\-client} {host}\fR
2015-06-02 13:01:25 -04:00
.
.P
\fB\-parse\-hosts\fR
.
2015-09-04 15:08:23 -04:00
.P
Parse the \fB/etc/hosts\fR file for entries\.
2015-06-02 13:01:25 -04:00
.
.P
Default: \fIdisabled\fR
.
.P
\fB\-parse\-known\-hosts\fR \fB\-no\-parse\-known\-hosts\fR
.
.P
Parse the \fB~/\.ssh/known_hosts\fR file for entries\.
.
.P
Default: \fIenabled\fR
.
2015-06-02 13:01:25 -04:00
.SS "Run settings"
\fB\-run\-command\fR \fIcmd\fR
.
.P
2015-09-04 15:08:23 -04:00
Set command (\fI{cmd}\fR) to execute when running an application\. See \fIPATTERN\fR\.
2015-06-02 13:01:25 -04:00
.
.P
Default: \fI{cmd}\fR
.
.P
\fB\-run\-shell\-command\fR \fIcmd\fR
.
.P
2015-09-04 15:08:23 -04:00
Set command to execute when running an application in a shell\. See \fIPATTERN\fR\.
2015-06-02 13:01:25 -04:00
.
.P
Default: \fI{terminal} \-e {cmd}\fR
.
.P
\fB\-run\-list\-command\fR \fIcmd\fR
.
.P
2017-08-13 14:31:46 -04:00
If set, use an external tool to generate list of executable commands\. Uses \fBrun\-command\fR\.
2015-06-02 13:01:25 -04:00
.
.P
2017-08-13 14:31:46 -04:00
Default: \fI{cmd}\fR
2015-06-02 13:01:25 -04:00
.
.SS "Window switcher settings"
\fB\-window\-format\fR \fIformat\fR
.
.P
Format what is being displayed for windows\.
.
.P
\fIformat\fR: {field[:len]}
.
.P
\fIfield\fR:
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBw\fR: desktop name
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBt\fR: title of window
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBn\fR: name
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBr\fR: role
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBc\fR: class
.
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
\fIlen\fR: maximum field length (0 for auto\-size)\. If length and window \fIwidth\fR are negative, field length is \fIwidth \- len\fR\. if length is positive, the entry will be truncated or padded to fill that length\.
.
.P
default: {w} {c} {t}
.
.P
\fB\-window\-command\fR \fIcmd\fR
.
.P
2017-08-13 14:31:46 -04:00
Set command to execute on selected window for a custom action\. See \fIPATTERN\fR\.
.
.P
Default: \fI"xkill \-id {window}"\fR
.
2015-06-02 13:01:25 -04:00
.SS "Combi settings"
\fB\-combi\-modi\fR \fImode1,mode2\fR
.
2015-09-04 15:08:23 -04:00
.P
2017-08-13 14:31:46 -04:00
The modi to combine in combi mode\. For syntax to see \fB\-modi\fR\. To get one merge view, of \fBwindow\fR,\fBrun\fR, and \fBssh\fR:
2015-09-04 15:08:23 -04:00
.
2015-06-02 13:01:25 -04:00
.IP "" 4
.
.nf
2016-12-14 03:26:12 -05:00
rofi \-show combi \-combi\-modi "window,run,ssh" \-modi combi
2015-06-02 13:01:25 -04:00
.
2015-04-01 08:49:27 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
Notes: The I3 Window manager does not like commas in the command when specifying an exec command\. For that case \'#\' can be used as a separator\.
.
2015-06-02 13:01:25 -04:00
.SS "History and Sorting"
\fB\-disable\-history\fR \fB\-no\-disable\-history\fR (re\-enable history)
.
.P
2014-06-05 15:55:47 -04:00
Disable history
2015-06-02 13:01:25 -04:00
.
.P
2017-10-03 13:51:27 -04:00
\fB\-sort\fR to enable \fB\-no\-sort\fR to disable
.
.P
Enable, disable sorting\. This setting can be changed at runtime (see \fB\-kb\-toggle\-sort\fR)\.
.
.P
2015-06-02 13:01:25 -04:00
\fB\-levenshtein\-sort\fR to enable \fB\-no\-levenshtein\-sort\fR to disable
.
.P
2017-10-03 13:51:27 -04:00
When searching, always sort the result based on levenshtein distance\. If disabled, fzf sorting is used when fuzzy matching is used\. If enabled, levenshtein sorting is used event fuzzy matching is used\.
.
.P
For other matching modes sorting is always done via levenshtein\-sort\.
2015-06-02 13:01:25 -04:00
.
.SS "Dmenu specific"
\fB\-sep\fR \fIseparator\fR
.
2015-09-04 15:08:23 -04:00
.P
2017-08-13 14:31:46 -04:00
Separator for dmenu\. Example: To show a list of \'a\' to \'e\' with \'|\' as a separator:
2015-09-04 15:08:23 -04:00
.
2015-06-02 13:01:25 -04:00
.IP "" 4
.
.nf
2015-09-04 15:08:23 -04:00
echo "a|b|c|d|e" | rofi \-sep \'|\' \-dmenu
2015-06-02 13:01:25 -04:00
.
.fi
.
.IP "" 0
.
.P
\fB\-p\fR \fIprompt\fR
.
2015-09-04 15:08:23 -04:00
.P
2017-08-13 14:31:46 -04:00
Specify the prompt to show in dmenu mode\. For example, select \'monkey\', a,b,c,d, or e\.
2015-09-04 15:08:23 -04:00
.
2015-06-02 13:01:25 -04:00
.IP "" 4
.
.nf
2015-09-04 15:08:23 -04:00
echo "a|b|c|d|e" | rofi \-sep \'|\' \-dmenu \-p "monkey:"
2015-06-02 13:01:25 -04:00
.
2014-11-02 06:58:57 -05:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
2015-09-04 15:08:23 -04:00
Default: \fIdmenu\fR
2015-06-02 13:01:25 -04:00
.
2015-09-04 15:08:23 -04:00
.P
\fB\-selected\-row\fR \fIselected row\fR
2015-06-02 13:01:25 -04:00
.
2015-09-04 15:08:23 -04:00
.P
Select a certain row\.
2015-06-02 13:01:25 -04:00
.
2015-09-04 15:08:23 -04:00
.P
Default: \fI0\fR
2015-06-02 13:01:25 -04:00
.
.P
\fB\-l\fR \fInumber of lines to show\fR
.
.P
Maximum number of lines the menu may show before scrolling\.
.
.IP "" 4
.
.nf
2015-09-04 15:08:23 -04:00
rofi \-lines 25
.
.fi
.
.IP "" 0
.
.P
Default: \fI15\fR
.
.P
2015-06-02 13:01:25 -04:00
\fB\-i\fR
.
2015-09-04 15:08:23 -04:00
.P
Makes dmenu searches case\-insensitive
2015-06-02 13:01:25 -04:00
.
.P
\fB\-a\fR \fIX\fR
.
2015-09-04 15:08:23 -04:00
.P
2017-08-13 14:31:46 -04:00
Active row, mark row X as active (starting at 0)\. You can specify single element: \-a 3 A range: \-a 3\-8 or a set of rows: \-a 0,2 or any combination: \-a 0,2\-3,9
2015-06-02 13:01:25 -04:00
.
.P
\fB\-u\fR \fIX\fR
.
2015-09-04 15:08:23 -04:00
.P
2017-08-13 14:31:46 -04:00
Urgent row, mark row X as urgent (starting at 0)\. You can specify single element: \-u 3 A range: \-u 3\-8 or a set of rows: \-u 0,2 or any combination: \-u 0,2\-3,9
2015-06-02 13:01:25 -04:00
.
2015-09-04 15:08:23 -04:00
.P
\fB\-only\-match\fR
2015-06-02 13:01:25 -04:00
.
2015-09-04 15:08:23 -04:00
.P
Only return a selected item, do not allow custom entry\. This mode always returns an entry, or returns directly when no entries given\.
2015-06-02 13:01:25 -04:00
.
2015-09-04 15:08:23 -04:00
.P
\fB\-no\-custom\fR
2015-06-02 13:01:25 -04:00
.
.P
2015-09-04 15:08:23 -04:00
Only return a selected item, do not allow custom entry\. This mode returns directly when no entries given\.
2015-06-02 13:01:25 -04:00
.
2015-09-04 15:08:23 -04:00
.P
\fB\-format\fR \fIformat\fR
2015-06-02 13:01:25 -04:00
.
2015-09-04 15:08:23 -04:00
.P
2017-08-13 14:31:46 -04:00
Allows the output of dmenu to be customized (N is the total number of input entries):
2015-06-02 13:01:25 -04:00
.
2015-09-04 15:08:23 -04:00
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\'s\' selected string
2015-06-02 13:01:25 -04:00
.
2015-09-04 15:08:23 -04:00
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\'i\' index (0 \- (N\-1))
2015-06-02 13:01:25 -04:00
.
2015-09-04 15:08:23 -04:00
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\'d\' index (1 \- N)
2015-06-11 14:38:48 -04:00
.
2015-09-04 15:08:23 -04:00
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\'q\' quote string
2015-06-11 14:38:48 -04:00
.
2015-09-04 15:08:23 -04:00
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\'f\' filter string (user input)
2015-06-11 14:38:48 -04:00
.
2015-09-04 15:08:23 -04:00
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\'F\' quoted filter string (user input)
2015-06-11 14:38:48 -04:00
.
.IP "" 0
.
.P
2015-06-02 13:01:25 -04:00
Default: \'s\'
.
.P
\fB\-select\fR \fIstring\fR
.
2015-09-04 15:08:23 -04:00
.P
2015-05-24 03:20:01 -04:00
Select first line that matches the given string
2015-06-02 13:01:25 -04:00
.
.P
\fB\-mesg\fR \fIstring\fR
.
.P
Add a message line below the filter entry box\. Supports pango markup\. For more information on supported markup see here \fIhttps://developer\.gnome\.org/pango/stable/PangoMarkupFormat\.html\fR
.
2015-09-20 05:45:28 -04:00
.P
\fB\-normal\-window\fR
.
.P
2016-11-30 02:13:58 -05:00
Make \fBrofi\fR react like a normal application window\. Useful for scripts like Clerk that are basically an application\.
2015-09-20 05:45:28 -04:00
.
2015-10-21 14:31:58 -04:00
.P
2015-11-28 07:36:28 -05:00
\fB\-dump\fR
2015-10-21 14:31:58 -04:00
.
.P
2015-11-28 07:36:28 -05:00
Dump the filtered list to stdout and quit\. This can be used to get the list as \fBrofi\fR would filter it\. Use together with \fB\-filter\fR command\.
2015-10-21 14:31:58 -04:00
.
2015-12-04 03:50:53 -05:00
.P
\fB\-input\fR \fIfile\fR
.
.P
Reads from \fIfile\fR instead of stdin\.
.
2016-01-10 07:28:14 -05:00
.P
\fB\-password\fR
.
.P
Hide the input text\. This should not be considered secure!
.
2016-06-05 14:29:01 -04:00
.P
\fB\-markup\-rows\fR
.
.P
2017-08-13 14:31:46 -04:00
Tell \fBrofi\fR that DMenu input is pango markup encoded, and should be rendered\. See here \fIhttps://developer\.gnome\.org/pango/stable/PangoMarkupFormat\.html\fR for details about pango markup\.
2016-06-05 14:29:01 -04:00
.
2016-07-18 17:51:46 -04:00
.P
\fB\-multi\-select\fR
2016-07-18 17:51:46 -04:00
.
.P
Allow multiple lines to be selected\. Adds a small selection indicator to the left of each entry\.
2016-07-18 17:51:46 -04:00
.
2016-12-14 03:26:12 -05:00
.P
\fB\-sync\fR
.
.P
2017-08-13 14:31:46 -04:00
Force rofi mode to first read all data from stdin before showing the selection window\. This is original dmenu behavior\.
2016-12-14 03:26:12 -05:00
.
2016-07-01 01:57:00 -04:00
.P
2017-08-13 14:31:46 -04:00
Note: the default asynchronous mode will also be automatically disabled if used with conflicting options, such as \fB\-dump\fR, \fB\-only\-match\fR or \fB\-auto\-select\fR\.
2016-07-01 01:57:00 -04:00
.
.P
\fB\-async\-pre\-read\fR \fInumber\fR
.
.P
2017-08-13 14:31:46 -04:00
Reads the first 25 entries blocking, then switches to async mode\. This makes it feel more \'snappy\'\.
.
.P
\fIdefault\fR: 25
.
2015-06-02 13:01:25 -04:00
.SS "Message dialog"
\fB\-e\fR \fImessage\fR
.
2015-09-04 15:08:23 -04:00
.P
2017-08-13 14:31:46 -04:00
Pops up a message dialog (used internally for showing errors) with \fImessage\fR\. Message can be multi\-line\.
2015-06-02 13:01:25 -04:00
.
.SS "Other"
2016-12-21 03:52:55 -05:00
\fB\-pid\fR \fIpath\fR
2015-06-02 13:01:25 -04:00
.
2015-09-04 15:08:23 -04:00
.P
2017-08-13 14:31:46 -04:00
Make \fBrofi\fR create a pid file and check this on startup\. The pid file prevents multiple \fBrofi\fR instances from running simultaneously\. This is useful when running \fBrofi\fR from a key\-binding daemon\.
2015-06-02 13:01:25 -04:00
.
2015-11-28 07:36:28 -05:00
.P
\fB\-fake\-transparency\fR
.
.P
2016-11-01 03:10:27 -04:00
Enable fake transparency\. This only works with transparent background color in the theme\.
2015-11-28 07:36:28 -05:00
.
.P
\fB\-fake\-background\fR
.
.P
Select what to use as background for fake transparency\. This can be \'background\', \'screenshot\' or a path to an image file (currently only supports png)\.
.
.P
\fB\-display\-{mode}\fR \fIstring\fR
.
.P
Set the name to use for mode\. This is used as prompt and in combi\-browser\.
.
.P
\fB\-click\-to\-exit\fR \fB\-no\-click\-to\-exit\fR
.
.P
Click the mouse outside of the \fBrofi\fR window to exit\.
.
.P
Default: \fIenabled\fR
.
2015-06-02 13:01:25 -04:00
.SS "Debug"
\fB\-no\-config\fR
.
.P
Disable parsing of configuration\. This runs rofi in \fIstock\fR mode\.
.
2016-12-14 03:26:12 -05:00
.P
\fB\-no\-plugins\fR
.
.P
Disables the loading of plugins\.
.
.P
2017-08-13 14:31:46 -04:00
To get a trace with (lots of) debug information, set the following environment variable when executing \fBrofi\fR:
.
.IP "" 4
.
.nf
G_MESSAGES_DEBUG=all
.
.fi
.
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
The trace can be filtered by only outputting the relevant domains, for example:
.
.IP "" 4
.
.nf
G_MESSAGES_DEBUG=Dialogs\.DRun
.
.fi
.
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
For more information on debugging, see the wiki \fIhttps://github\.com/DaveDavenport/rofi/wiki/Debugging%20Rofi\fR
2016-12-14 03:26:12 -05:00
.
2015-06-02 13:01:25 -04:00
.SH "PATTERN"
2017-08-13 14:31:46 -04:00
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:
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fB{host}\fR: the host to connect to
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fB{terminal}\fR: the configured terminal (see \-terminal\-emulator)
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fB{ssh\-client}\fR: the configured ssh client (see \-ssh\-client)
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fB{cmd}\fR: the command to execute
2015-06-02 13:01:25 -04:00
.
2016-12-14 03:26:12 -05:00
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fB{window}\fR: the window ID of the selected window (in \fBwindow\-command\fR)
2016-12-14 03:26:12 -05:00
.
2015-06-02 13:01:25 -04:00
.IP "" 0
.
.SH "DMENU REPLACEMENT"
2017-08-13 14:31:46 -04:00
If \fBargv[0]\fR (calling command) is dmenu, \fBrofi\fR will start in dmenu mode\. This way it can be used as a drop\-in replacement for dmenu\. Just copy or symlink \fBrofi\fR to dmenu in \fB$PATH\fR\.
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
.nf
2015-06-02 13:01:25 -04:00
2015-12-04 03:50:53 -05:00
ln \-s /usr/bin/rofi /usr/bin/dmenu
2015-06-02 13:01:25 -04:00
.
.fi
.
.IP "" 0
.
.SH "THEMING"
2017-03-18 10:54:35 -04:00
The theme format below describes the old (pre version 1\.4) theme format\. Please see rofi\-theme(5) manpage for an updated manual\.
.
.P
2017-08-13 14:31:46 -04:00
The theme setup allows you to specify colors per state, similar to \fBi3\fR Currently 3 states exist:
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBnormal\fR: normal row
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBurgent\fR: highlighted row (urgent)
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBactive\fR: highlighted row (active)
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
For each state, the following 5 colors must be set:
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBbg\fR: background color row
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBfg\fR: text color
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBbgalt\fR: background color alternating row
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBhlfg\fR: foreground color selected row
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBhlbg\fR: background color selected row
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
The window background and border color should be specified separately\. The key \fBcolor\-window\fR contains a tuple \fBbackground,border,separator\fR\. An example for \fBXresources\fR file:
2015-06-02 13:01:25 -04:00
.
2015-07-07 16:10:40 -04:00
.IP "" 4
2015-06-02 13:01:25 -04:00
.
2015-07-07 16:10:40 -04:00
.nf
! State: \'bg\', \'fg\', \'bgalt\', \'hlbg\', \'hlfg\'
rofi\.color\-normal: #fdf6e3, #002b36, #eee8d5, #586e75, #eee8d5
rofi\.color\-urgent: #fdf6e3, #dc322f, #eee8d5, #dc322f, #fdf6e3
rofi\.color\-active: #fdf6e3, #268bd2, #eee8d5, #268bd2, #fdf6e3
2016-12-14 03:26:12 -05:00
! \'background\', \'border\', \'separator\'
rofi\.color\-window: #fdf6e3, #002b36, #002b36
2015-07-07 16:10:40 -04:00
.
.fi
.
.IP "" 0
2015-06-02 13:01:25 -04:00
.
.P
2015-04-06 16:17:05 -04:00
Same settings can also be specified on command\-line:
2015-06-02 13:01:25 -04:00
.
2015-07-07 16:10:40 -04:00
.IP "" 4
.
.nf
rofi \-color\-normal "#fdf6e3,#002b36,#eee8d5,#586e75,#eee8d5"
.
.fi
.
.IP "" 0
2015-06-02 13:01:25 -04:00
.
.SH "COLORS"
2017-08-13 14:31:46 -04:00
RGB colors can be specified by either their X11 name or hexadecimal notation\. For example:
2016-12-14 03:26:12 -05:00
.
.IP "" 4
.
.nf
white
.
.fi
.
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
Or:
2016-12-14 03:26:12 -05:00
.
.IP "" 4
.
.nf
#FFFFFF
.
.fi
.
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
ARGB colors are also supported\. These can be used to create a transparent window if (1) your Xserver supports TrueColor, and (2) you are running a composite manager\. For example: argb:FF444444
2015-09-04 15:08:23 -04:00
.
2015-06-02 13:01:25 -04:00
.P
2017-08-13 14:31:46 -04:00
Or:
2016-12-14 03:26:12 -05:00
.
.IP "" 4
.
.nf
#FF444444
.
.fi
.
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
The first two fields specify the alpha level\. This determines the amount of transparency (00 everything, FF nothing)\. The other fields represent the actual color, in hex\.
2015-06-02 13:01:25 -04:00
.
2016-12-14 03:26:12 -05:00
.P
2017-08-13 14:31:46 -04:00
Transparency can be used within \fBrofi\fR, for example if the selected background color is 50% transparent, the background color of the window will be visible thru it\.
2016-12-14 03:26:12 -05:00
.
2017-08-13 14:31:46 -04:00
.SH "KEY BINDINGS"
\fBrofi\fR has the following key bindings:
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBCtrl\-v, Insert\fR: Paste from clipboard
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
\fBCtrl\-Shift\-v, Shift\-Insert\fR: Paste primary selection
.
.IP "\(bu" 4
\fBCtrl\-u\fR: Clear the line
.
.IP "\(bu" 4
\fBCtrl\-a\fR: Beginning of line
.
.IP "\(bu" 4
\fBCtrl\-e\fR: End of line
.
.IP "\(bu" 4
\fBCtrl\-f, Right\fR: Forward one character
.
.IP "\(bu" 4
\fBAlt\-f\fR: Forward one word
.
.IP "\(bu" 4
\fBCtrl\-b, Left\fR: Back one character
.
.IP "\(bu" 4
\fBAlt\-b\fR: Back one word
.
.IP "\(bu" 4
\fBCtrl\-d, Delete\fR: Delete character
.
.IP "\(bu" 4
2015-11-25 03:16:30 -05:00
\fBCtrl\-Alt\-d\fR: Delete word
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
\fBCtrl\-h, Backspace\fR: Backspace (delete previous character)
.
.IP "\(bu" 4
\fBCtrl\-Alt\-h\fR: Delete previous word
.
.IP "\(bu" 4
\fBCtrl\-j,Ctrl\-m,Enter\fR: Accept entry
.
.IP "\(bu" 4
\fBCtrl\-n,Down\fR: Select next entry
.
.IP "\(bu" 4
\fBCtrl\-p,Up\fR: Select previous entry
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBPage Up\fR: Go to previous page
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBPage Down\fR: Go to next page
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBCtrl\-Page Up\fR: Go to previous column
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBCtrl\-Page Down\fR: Go to next column
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBCtrl\-Enter\fR: Use entered text as a command (in \fBssh/run modi\fR)
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
\fBShift\-Enter\fR: Launch the application in a terminal (in run mode)
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBShift\-Enter\fR: Return the selected entry and move to the next item while keeping \fBrofi\fR open\. (in dmenu)
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
\fBShift\-Right\fR: Switch to the next modi\. The list can be customized with the \fB\-switchers\fR argument\.
.
.IP "\(bu" 4
\fBShift\-Left\fR: Switch to the previous modi\. The list can be customized with the \fB\-switchers\fR argument\.
.
.IP "\(bu" 4
\fBCtrl\-Tab\fR: Switch to the next modi\. The list can be customized with the \fB\-switchers\fR argument\.
.
.IP "\(bu" 4
\fBCtrl\-Shift\-Tab\fR: Switch to the previous modi\. The list can be customized with the \fB\-switchers\fR argument\.
.
.IP "\(bu" 4
\fBCtrl\-space\fR: Set selected item as input text\.
.
.IP "\(bu" 4
\fBShift\-Del\fR: Delete entry from history\.
.
.IP "\(bu" 4
2015-12-04 03:50:53 -05:00
\fBgrave\fR: Toggle case sensitivity\.
2015-06-02 13:01:25 -04:00
.
2015-12-09 02:29:18 -05:00
.IP "\(bu" 4
2015-12-13 05:50:59 -05:00
\fBAlt\-grave\fR: Toggle levenshtein sorting\.
.
.IP "\(bu" 4
2017-08-13 14:31:46 -04:00
\fBAlt\-Shift\-S\fR: Take a screenshot and store it in the Pictures directory\.
2015-12-09 02:29:18 -05:00
.
2015-06-02 13:01:25 -04:00
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
To get a full list of key bindings on the commandline, see \fBrofi \-dump\-xresources | grep kb\-\fR\. Key bindings can be modified using the configuration systems\. To get a searchable list of key bindings, run \fBrofi \-show keys\fR\.
2015-06-02 13:01:25 -04:00
.
.P
2017-08-13 14:31:46 -04:00
A key binding starting with \fB!\fR will act when all keys have been released\.
.
2015-11-25 03:16:30 -05:00
.SH "Available Modi"
.
.SS "Window"
2016-12-14 03:26:12 -05:00
Show a list of all the windows and allow switching between them\. Pressing the \fBdelete\-entry\fR binding (\fBshift\-delete\fR) will close the window\. Pressing the \fBaccept\-custom\fR binding (\fBcontrol\-enter\fR or \fBshift\-enter\fR) will run a command on the window\. (See option \fBwindow\-command\fR );
2015-11-25 03:16:30 -05:00
.
.SS "WindowCD"
2016-12-14 03:26:12 -05:00
Shows a list of the windows on the current desktop and allows switching between them\. Pressing the \fBdelete\-entry\fR binding (\fBshift\-delete\fR) will kill the window\. Pressing the \fBaccept\-custom\fR binding (\fBcontrol\-enter\fR or \fBshift\-enter\fR) will run a command on the window\. (See option \fBwindow\-command\fR );
2015-11-25 03:16:30 -05:00
.
.SS "Run"
2016-12-14 03:26:12 -05:00
Shows a list of executables in \fB$PATH\fR and can launch them (optional in a terminal)\. Pressing the \fBdelete\-entry\fR binding (\fBshift\-delete\fR) will remove this entry from the run history\. Pressing the \fBaccept\-custom\fR binding (\fBcontrol\-enter\fR or \fBshift\-enter\fR) will run the command in a terminal\.
2015-11-25 03:16:30 -05:00
.
.SS "DRun"
2016-12-14 03:26:12 -05:00
Same as the \fBrun\fR 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 \fBdelete\-entry\fR binding (\fBshift\-delete\fR) will remove this entry from the run history\. Pressing the \fBaccept\-custom\fR binding (\fBcontrol\-enter\fR or \fBshift\-enter\fR) with custom input (no entry matching) will run the command in a terminal\.
2015-11-25 03:16:30 -05:00
.
.SS "SSH"
2017-08-13 14:31:46 -04:00
Shows a list of SSH targets based on your ssh config file, and allows to quickly \fBssh\fR into them\.
2015-11-25 03:16:30 -05:00
.
2016-10-20 16:56:17 -04:00
.SS "Keys"
Shows a searchable list of key bindings\.
.
2015-11-25 03:16:30 -05:00
.SS "Script"
Allows custom scripted Modi to be added\.
.
2015-06-02 13:01:25 -04:00
.SH "FAQ"
.
.SS "The text in the window switcher is not nicely lined out\."
2015-06-02 13:01:25 -04:00
Try using a mono\-space font\.
.
.SS "The window is completely black\."
2017-08-13 14:31:46 -04:00
Check quotes used on the commandline: you might have used \fB\fR ("smart quotes") instead of \fB"\fR ("machine quotes")\.
2015-06-02 13:01:25 -04:00
.
.SS "What does the icon in the top right show?"
2016-04-03 08:56:23 -04:00
The indicator shows:
.
.IP "" 4
.
.nf
2016-04-03 08:56:23 -04:00
` ` Case insensitive and no sorting\.
`\-` Case sensitivity enabled, no sorting\.
`+` Case insensitive and Sorting enabled
`±` Sorting and Case sensitivity enabled"
.
.fi
.
.IP "" 0
.
2016-12-21 03:42:04 -05:00
.SH "EXAMPLES"
Some basic usage examples of \fBrofi\fR:
.
.P
Show the run dialog:
.
.IP "" 4
.
.nf
rofi \-modi run \-show run
.
.fi
.
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
Show the the run dialog, and allow switching to Desktop File run dialog (drun):
2016-12-21 03:42:04 -05:00
.
.IP "" 4
.
.nf
rofi \-modi run,drun \-show run
.
.fi
.
.IP "" 0
.
.P
Combine the run and Desktop File run dialog (drun):
.
.IP "" 4
.
.nf
rofi \-modi combi \-show combi \-combi\-modi run,drun
.
.fi
.
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
Combine the run and Desktop File run dialog (drun), and allow switching to window switcher:
2016-12-21 03:42:04 -05:00
.
.IP "" 4
.
.nf
rofi \-modi combi,window \-show combi \-combi\-modi run,drun
.
.fi
.
.IP "" 0
.
.P
Run \fBrofi\fR full monitor width at the top of the monitor like a dropdown menu:
.
.IP "" 4
.
.nf
rofi \-show run \-width 100 \-location 1 \-lines 5 \-bw 2 \-yoffset \-2
.
.fi
.
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
Get a colored list of available wi\-fi networks:
2016-12-21 03:42:04 -05:00
.
.IP "" 4
.
.nf
tty\-pipe nmcli device wifi | out2html \-p | rofi \-dmenu \-markup\-rows
.
.fi
.
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
Pop up a text message claiming that this is the end:
2016-12-21 03:42:04 -05:00
.
.IP "" 4
.
.nf
rofi \-e "This is the end"
.
.fi
.
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
Pop up a text message in red, bold font claiming that this is still the end:
2016-12-21 03:42:04 -05:00
.
.IP "" 4
.
.nf
rofi \-e "<span color=\'red\'><b>This is still the end</b></span>>" \-markup
.
.fi
.
.IP "" 0
.
.P
2017-08-13 14:31:46 -04:00
Show all key bindings:
2016-12-21 03:42:04 -05:00
.
.IP "" 4
.
.nf
rofi \-show keys
.
.fi
.
.IP "" 0
.
.P
Use \fBqalc\fR to get a simple calculator in \fBrofi\fR:
.
.IP "" 4
.
.nf
rofi \-show calc \-modi "calc:qalc +u8 \-nocurrencies"
.
.fi
.
.IP "" 0
.
2017-08-13 14:31:46 -04:00
.SH "i3"
In i3 \fIhttp://i3wm\.org/\fR you want to bind \fBrofi\fR to be launched on key release\. Otherwise, it cannot grab the keyboard\. See also the i3 manual \fIhttp://i3wm\.org/docs/userguide\.html\fR:
.
.P
2017-08-13 14:31:46 -04:00
Some tools (such as import or xdotool) might be unable to run upon a KeyPress event, because the keyboard/pointer is still grabbed\. For these situations, the \fB\-\-release\fR flag can be used, as it will execute the command after the keys have been released\.
.
2015-06-02 13:01:25 -04:00
.SH "LICENSE"
.
.nf
2015-04-22 15:03:02 -04:00
MIT/X11
2015-06-02 13:01:25 -04:00
2015-04-22 15:03:02 -04: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 13:01:25 -04:00
2015-04-22 15:03:02 -04:00
The above copyright notice and this permission notice shall be
2015-06-02 13:01:25 -04:00
included in all copies or substantial portions of the Software\.
2015-04-22 15:03:02 -04:00
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2015-06-02 13:01:25 -04:00
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\.
2015-04-22 15:03:02 -04: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
2015-06-02 13:01:25 -04:00
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE\.
.
.fi
.
.SH "WEBSITE"
2017-08-13 14:31:46 -04:00
\fBrofi\fR website can be found here \fIhttps://davedavenport\.github\.io/rofi/\fR
2015-06-02 13:01:25 -04:00
.
.SH "SUPPORT"
2017-04-11 03:06:11 -04:00
\fBrofi\fR support can be obtained here \fIirc://irc\.freenode\.net/#rofi\fR (#rofi on irc\.freenode\.net), or via the forum \fIhttps://reddit\.com/r/qtools//\fR
.
.SH "DEBUGGING"
Please see this \fIhttps://github\.com/DaveDavenport/rofi/wiki/Debugging%20Rofi\fR wiki entry\.
.
.SH "ISSUE TRACKER"
\fBrofi\fR issue tracker can be found here \fIhttps://github\.com/DaveDavenport/rofi/issues\fR
2015-06-02 13:01:25 -04:00
.
2016-06-14 14:46:46 -04:00
.P
When creating an issue, please read this \fIhttps://github\.com/DaveDavenport/rofi/blob/master/\.github/CONTRIBUTING\.md\fR first\.
2016-11-13 12:39:21 -05:00
.
.SH "SEE ALSO"
2017-03-18 10:54:35 -04:00
rofi\-sensible\-terminal(1), dmenu(1), rofi\-theme(5)
2016-06-14 14:46:46 -04:00
.
2015-06-02 13:01:25 -04:00
.SH "AUTHOR"
Qball Cow \fIqball@gmpclient\.org\fR
.
.P
2015-06-04 16:29:26 -04:00
Rasmus Steinke \fIrasi@xssn\.at\fR
2015-06-02 13:01:25 -04:00
.
.P
Quentin Glidic \fIsardemff7+rofi@sardemff7\.net\fR
2016-04-02 04:14:13 -04:00
.
.P
2015-06-02 13:01:25 -04:00
Original code based on work by: Sean Pringle \fIsean\.pringle@gmail\.com\fR
.
.P
For a full list of authors, check the AUTHORS file\.