rofi/doc/rofi.1

1252 lines
23 KiB
Groff
Raw Normal View History

2015-06-02 17:01:25 +00:00
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
2016-03-05 17:28:39 +00:00
.TH "ROFI\-MANPAGE" "" "March 2016" "" ""
2015-06-02 17:01:25 +00:00
.
.SH "NAME"
\fBrofi\fR \- A window switcher, run launcher, ssh dialog and dmenu replacement
.
.SH "SYNOPSIS"
2016-03-05 17:28:39 +00:00
\fBrofi\fR [ \-width \fIpct_scr\fR ] [ \-lines \fIlines\fR ] [ \-columns \fIcolumns\fR ] [ \-font \fIpangofont\fR ] [ \-terminal \fIterminal\fR ] [ \-location \fIposition\fR ] [ \-fixed\-num\-lines ] [ \-padding \fIpadding\fR ] [ \-opacity \fIopacity%\fR ] [ \-display \fIdisplay\fR ] [ \-bw \fIwidth\fR ] [ \-dmenu [ \-p \fIprompt\fR ] [ \-sep \fIseparator\fR ] [ \-l \fIselected line\fR ] [ \-mesg ] [ \-select ] [ \-input \fIinput\fR ] ] [ \-filter \fIfilter\fR ] [ \-ssh\-client \fIclient\fR ] [ \-ssh\-command \fIcommand\fR ] [ \-disable\-history ] [ \-levenshtein\-sort ] [ \-case\-sensitive ] [ \-show \fImode\fR ] [ \-modi \fImode1,mode2\fR ] [ \-eh \fIelement height\fR ] [ \-lazy\-filter\-limit \fIlimit\fR ] [ \-e \fImessage\fR] [ \-a \fIrow\fR ] [ \-u \fIrow\fR ] [ \-pid \fIpath\fR ] [ \-now ] [ \-rnow ] [ \-snow ] [ \-version ] [ \-help ] [ \-dump\-xresources ] [ \-dump\-xresources\-theme ] [ \-auto\-select ] [ \-parse\-hosts ] [ \-no\-parse\-known\-hosts ] [ \-combi\-modi \fImode1,mode2\fR ] [ \-normal\-window ] [ \-fake\-transparency ] [ \-quiet ] [ \-glob ] [ \-regex ] [ \-tokenize ] [ \-threads \fInum\fR ] [ \-config \fIfilename\fR ]
2015-06-02 17:01:25 +00:00
.
.SH "DESCRIPTION"
\fBrofi\fR is an X11 popup 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"
2016-03-05 17:28:39 +00:00
\fBrofi\fR can be used in two ways, single\-shot (runs a mode then exits) or emulating dmenu\.
2015-06-02 17:01:25 +00:00
.
.SS "Single\-shot mode"
2015-09-04 19:08:23 +00: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 17:01:25 +00:00
.
.IP "" 4
.
2015-04-05 19:49:55 +00:00
.nf
2015-06-02 17:01:25 +00:00
2015-09-04 19:08:23 +00:00
rofi \-show run
2015-06-02 17:01:25 +00:00
.
2015-04-05 19:49:55 +00:00
.fi
2015-06-02 17:01:25 +00:00
.
.IP "" 0
.
.SS "Emulating dmenu"
\fBrofi\fR can emulate \fBdmenu\fR (a dynamic menu for X) when launched with the \fB\-dmenu\fR flag\.
.
.P
The official website for \fBdmenu\fR can be found here \fIhttp://tools\.suckless\.org/dmenu/\fR\.
.
.SH "OPTIONS"
There are currently four methods of setting configuration options (evaluated in order below):
2015-06-02 17:01:25 +00:00
.
.IP "\(bu" 4
Compile time: edit config\.c\. This method is strongly discouraged\.
.
.IP "\(bu" 4
Xresources: A method of storing key values in the Xserver\. See here \fIhttps://en\.wikipedia\.org/wiki/X_resources\fR for more information\. This is the recommended way of configuring \fBrofi\fR\.
.
.IP "\(bu" 4
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 overriden on commandline\.
.
.IP "\(bu" 4
2015-06-02 17:01:25 +00:00
Command\-line options: Arguments passed to \fBrofi\fR\.
.
.IP "" 0
.
.P
2015-09-04 19:08:23 +00:00
The Xresources file expects options starting with \fBrofi\.\fR followed by it\'s name\. An Example to set the number of lines:
2015-06-02 17:01:25 +00:00
.
.IP "" 4
.
.nf
2015-06-02 17:01:25 +00:00
2015-09-04 19:08:23 +00:00
rofi\.lines: 10
2015-06-02 17:01:25 +00:00
.
.fi
.
.IP "" 0
.
.P
2015-09-04 19:08:23 +00:00
Command line options override settings from Xresources file\. The same option set as argument: prefixed with a \'\-\':
2015-06-02 17:01:25 +00:00
.
.IP "" 4
.
.nf
2015-09-04 19:08:23 +00:00
rofi \-lines 10
2015-06-02 17:01:25 +00:00
.
.fi
2015-06-02 17:01:25 +00:00
.
.IP "" 0
.
.P
To get a list of available options, formatted as Xresources entries run:
2015-06-02 17:01:25 +00:00
.
.IP "" 4
.
.nf
2015-06-02 17:01:25 +00:00
2015-07-07 20:10:40 +00:00
rofi \-dump\-xresources
2015-06-02 17:01:25 +00:00
.
.fi
2015-06-02 17:01:25 +00:00
.
.IP "" 0
.
.P
The configuration system supports the following types:
2015-06-02 17:01:25 +00:00
.
.IP "\(bu" 4
String
2015-06-02 17:01:25 +00:00
.
.IP "\(bu" 4
Integer (signed and unsigned)
2015-06-02 17:01:25 +00:00
.
.IP "\(bu" 4
Char
2015-06-02 17:01:25 +00:00
.
.IP "\(bu" 4
Boolean
2015-06-02 17:01:25 +00:00
.
.IP "" 0
.
.P
2015-09-04 19:08:23 +00:00
Boolean options have a non\-default command\-line syntax\. Example to enable option X:
2015-06-02 17:01:25 +00:00
.
.IP "" 4
.
2015-04-25 15:40:01 +00:00
.nf
2015-06-02 17:01:25 +00:00
2015-04-25 15:40:01 +00:00
\-X
2015-06-02 17:01:25 +00:00
.
2015-04-25 15:40:01 +00:00
.fi
2015-06-02 17:01:25 +00:00
.
.IP "" 0
.
.P
to disable it:
2015-06-02 17:01:25 +00:00
.
.IP "" 4
.
2015-04-25 15:40:01 +00:00
.nf
2015-06-02 17:01:25 +00:00
2015-04-25 15:40:01 +00:00
\-no\-X
2015-06-02 17:01:25 +00:00
.
2015-04-25 15:40:01 +00:00
.fi
2015-06-02 17:01:25 +00:00
.
.IP "" 0
.
.P
Below is a list of the most important options:
2015-06-02 17:01:25 +00:00
.
.SS "General"
2015-11-25 08:16:30 +00:00
\fB\-help\fR
.
.P
The help option shows the full list of commandline options and the current set value\.
.
.P
\fB\-dump\-xresources\fR
.
.P
Dump the current active configuration in Xresources format to the command\-line\. This does not validate all passed values (e\.g\. colors)\.
.
.P
2015-12-10 17:20:04 +00:00
\fB\-dump\-xresources\-theme\fR
.
.P
Dump the current color schme in Xresources format to the command\-line\.
.
.P
2015-11-25 15:53:58 +00: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 17:01:25 +00:00
\fB\-dmenu\fR
.
.P
2015-09-04 19:08:23 +00: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 3 pre\-defined options:
2015-06-02 17:01:25 +00:00
.
.IP "" 4
.
2015-04-08 01:50:57 +00:00
.nf
2015-06-02 17:01:25 +00:00
2015-09-04 19:08:23 +00:00
echo \-e "Option #1\enOption #2\enOption #3" | rofi \-dmenu
2015-06-02 17:01:25 +00:00
.
2015-04-08 01:50:57 +00:00
.fi
2015-06-02 17:01:25 +00:00
.
.IP "" 0
.
.P
2015-04-08 01:50:57 +00:00
Or get the options from a script:
2015-06-02 17:01:25 +00:00
.
.IP "" 4
.
.nf
2015-09-04 19:08:23 +00:00
~/my_script\.sh | rofi \-dmenu
2015-06-02 17:01:25 +00:00
.
.fi
.
.IP "" 0
.
.P
2015-09-04 19:08:23 +00:00
Pressing \fBshift\-enter\fR sends the selected entry to STDOUT and moves to the next entry\.
2015-06-02 17:01:25 +00:00
.
.P
\fB\-show\fR \fImode\fR
.
.P
2015-09-04 19:08:23 +00:00
Open \fBrofi\fR in a certain mode\. Available modes are \fBwindow\fR, \fBrun\fR, \fBssh\fR To show the run\-dialog:
2015-06-02 17:01:25 +00:00
.
.IP "" 4
.
2014-10-20 18:29:26 +00:00
.nf
2015-06-02 17:01:25 +00:00
2015-09-04 19:08:23 +00:00
rofi \-show run
2015-06-02 17:01:25 +00:00
.
2014-10-20 18:29:26 +00:00
.fi
2015-06-02 17:01:25 +00:00
.
.IP "" 0
.
.P
2015-09-04 19:08:23 +00:00
\fB\-modi\fR \fImode1,mode1\fR
2015-06-02 17:01:25 +00:00
.
.P
2015-09-04 19:08:23 +00:00
Specify a 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 17:01:25 +00:00
.
.IP "" 4
.
2014-10-20 18:29:26 +00:00
.nf
2015-06-02 17:01:25 +00:00
2015-09-04 19:08:23 +00:00
rofi \-modi "run,ssh" \-show run
2015-06-02 17:01:25 +00:00
.
2014-10-20 18:29:26 +00:00
.fi
2015-06-02 17:01:25 +00:00
.
.IP "" 0
.
.P
Custom modes can be added using the internal \'script\' mode\. Each mode has two parameters:
.
.IP "" 4
.
2014-10-20 18:29:26 +00:00
.nf
2015-06-02 17:01:25 +00:00
2015-09-04 19:08:23 +00:00
<name>:<script>
2015-06-02 17:01:25 +00:00
.
.fi
.
.IP "" 0
.
.P
2015-09-04 19:08:23 +00:00
Example: Have a mode \'Workspaces\' using the \fBi3_switch_workspace\.sh\fR script:
2015-06-02 17:01:25 +00:00
.
.IP "" 4
.
.nf
2015-09-04 19:08:23 +00:00
rofi \-modi "window,run,ssh,Workspaces:i3_switch_workspaces\.sh" \-show Workspaces
2015-06-02 17:01:25 +00:00
.
2014-10-20 18:29:26 +00:00
.fi
2015-06-02 17:01:25 +00:00
.
.IP "" 0
.
.P
\fB\-case\-sensitive\fR
.
.P
Start in case sensitive mode\.
.
.P
\fB\-fuzzy\fR
.
2015-09-04 19:08:23 +00:00
.P
Enable experimental fuzzy matching\.
.
.P
\fB\-filter\fR \fIfilter\fR
.
2015-09-04 19:08:23 +00:00
.P
Filter the list by setting text in input bar to \fIfilter\fR
.
.P
\fB\-config\fR \fIfilename\fR
.
.P
Load alternative configuration file\.
.
2016-02-17 19:29:23 +00:00
.P
\fB\-scroll\-method\fR \fImethod\fR
.
.P
Select the scrolling method\. 0: Per page, 1: continuous\.
.
2015-06-02 17:01:25 +00:00
.SS "Theming"
2016-03-05 17:28:39 +00:00
All colors are either hex #rrggbb values or X11 color names\.
2015-06-02 17:01:25 +00:00
.
.P
\fB\-bw\fR
.
.P
2015-09-04 19:08:23 +00:00
Set border width in pixels\.
2015-06-02 17:01:25 +00:00
.
.IP "" 4
.
2014-05-22 08:37:25 +00:00
.nf
2015-06-02 17:01:25 +00:00
2015-09-04 19:08:23 +00:00
rofi \-bw 1
2015-06-02 17:01:25 +00:00
.
2014-05-22 08:37:25 +00:00
.fi
2015-06-02 17:01:25 +00:00
.
.IP "" 0
.
.P
Default: \fI1\fR
.
.P
\fB\-font\fR
.
.P
2015-09-04 19:08:23 +00:00
Specify a font\. Pango syntax is used\.
2015-06-02 17:01:25 +00:00
.
.IP "" 4
.
2014-05-22 08:37:25 +00:00
.nf
2015-06-02 17:01:25 +00:00
2015-09-04 19:08:23 +00:00
rofi \-font "Dejavu Sans Mono 14"
2015-06-02 17:01:25 +00:00
.
.fi
.
.IP "" 0
.
.P
Default: \fImono 12\fR
.
.P
\fB\-opacity\fR
.
.P
2015-09-04 19:08:23 +00:00
Set window opacity (0\-100)\.
2015-06-02 17:01:25 +00:00
.
.IP "" 4
.
.nf
2015-09-04 19:08:23 +00:00
rofi \-opacity "75"
2015-06-02 17:01:25 +00:00
.
2014-05-22 08:37:25 +00:00
.fi
2015-06-02 17:01:25 +00:00
.
.IP "" 0
.
.P
Default: \fI100\fR
.
.P
\fB\-eh\fR \fIelement height\fR
.
.P
The height of a field in lines\. e\.g\.
.
.IP "" 4
.
.nf
2015-09-04 19:08:23 +00:00
echo \-e "a\en3|b\en4|c\en5" | rofi \-sep \'|\' \-eh 2 \-dmenu
2015-06-02 17:01:25 +00:00
.
.fi
.
.IP "" 0
.
.P
Default: \fI1\fR
.
.P
2015-04-12 07:31:59 +00:00
The following options are further explained in the theming section:
2015-06-02 17:01:25 +00:00
.
.P
\fB\-color\-enabled\fR
.
2015-09-04 19:08:23 +00:00
.P
2015-06-02 17:01:25 +00:00
Enable the exteneded coloring options\.
.
.P
2015-08-26 16:11:53 +00:00
\fB\-color\-window\fR \fIbackground\fR \fIborder color\fR \fIseparator color\fR/
2015-06-02 17:01:25 +00:00
.
2015-09-04 19:08:23 +00:00
.P
2015-08-26 16:11:53 +00:00
Set window background, border and separator color\.
2015-06-02 17:01:25 +00:00
.
.P
\fB\-color\-normal\fR \fIbackground, foreground, background alt, highlight background, highlight foreground\fR
.
.P
\fB\-color\-urgent\fR \fIbackground, foreground, background alt, highlight background, highlight foreground\fR
.
.P
\fB\-color\-active\fR \fIbackground, foreground, background alt, highlight background, highlight foreground\fR
.
2015-09-04 19:08:23 +00:00
.P
2015-06-02 17:01:25 +00:00
Specify the colors used in a row per state (normal, active, urgent)\.
.
.P
\fB\-line\-margin\fR
.
2015-09-04 19:08:23 +00:00
.P
Set the spacing between the rows\.
.
.IP "" 4
.
.nf
Default: *3*
Min: *3*
Max: *50*
.
.fi
.
.IP "" 0
.
2015-08-26 16:11:53 +00:00
.P
\fB\-separator\-style\fR \fIstyle\fR
.
2015-09-04 19:08:23 +00:00
.P
2015-09-30 07:10:33 +00:00
Set separator style\. Possible options are "none", "solid" or "dash"\.
2015-09-04 19:08:23 +00:00
.
2015-08-26 16:11:53 +00:00
.IP "" 4
.
.nf
Default: *dash*
.
.fi
.
.IP "" 0
.
2015-09-04 19:08:23 +00:00
.P
\fB\-hide\-scrollbar\fR
.
.P
Hide the scrollbar\.
.
2015-10-25 09:53:22 +00:00
.P
2015-12-13 12:51:59 +00:00
\fB\-scrollbar\-width\fR \fIwidth\fR
.
.P
Set the scrollbar width\.
.
.P
2015-10-25 09:53:22 +00:00
\fB\-glob\fR
.
.P
2015-11-25 08:16:30 +00:00
Use glob style matching \fIWarning this option might be slow on large lists\fR
.
.P
\fB\-regex\fR
.
.P
Use regex matching
2015-10-25 09:53:22 +00:00
.
.P
\fB\-tokenize\fR
.
.P
Tokenize the input\.
.
2015-06-02 17:01:25 +00:00
.SS "Layout"
\fB\-lines\fR
.
.P
2015-09-04 19:08:23 +00:00
Maximum number of lines to show before scrolling\.
2015-06-02 17:01:25 +00:00
.
.IP "" 4
.
.nf
2015-09-04 19:08:23 +00:00
rofi \-lines 25
2015-06-02 17:01:25 +00:00
.
2014-05-22 08:37:25 +00:00
.fi
2015-06-02 17:01:25 +00:00
.
.IP "" 0
.
.P
Default: \fI15\fR
.
.P
\fB\-columns\fR
.
.P
2015-09-04 19:08:23 +00:00
Number of columns to show before scrolling\.
2015-06-02 17:01:25 +00:00
.
.IP "" 4
.
2014-05-22 08:37:25 +00:00
.nf
2015-06-02 17:01:25 +00:00
2015-09-04 19:08:23 +00:00
rofi \-columns 2
2015-06-02 17:01:25 +00:00
.
2014-05-22 08:37:25 +00:00
.fi
2015-06-02 17:01:25 +00:00
.
.IP "" 0
.
.P
Default: \fI1\fR
.
.P
\fB\-width\fR [value]
.
.P
2015-09-04 19:08:23 +00:00
Set width of menu\. \fB[value]\fR is specified in percentage\.
2015-06-02 17:01:25 +00:00
.
.IP "" 4
.
2014-05-22 08:37:25 +00:00
.nf
2015-06-02 17:01:25 +00:00
2015-09-04 19:08:23 +00:00
rofi \-width 60
2015-06-02 17:01:25 +00:00
.
2014-05-22 08:37:25 +00:00
.fi
2015-06-02 17:01:25 +00:00
.
.IP "" 0
.
.P
2015-09-04 19:08:23 +00:00
If \fB[value]\fR is larger then 100, size is set in pixels\. Example to span a full hd monitor:
2015-06-02 17:01:25 +00:00
.
.IP "" 4
.
2014-08-14 19:16:42 +00:00
.nf
2015-06-02 17:01:25 +00:00
2015-09-04 19:08:23 +00:00
rofi \-width 1920
2015-06-02 17:01:25 +00:00
.
2014-08-14 19:16:42 +00:00
.fi
2015-06-02 17:01:25 +00:00
.
.IP "" 0
.
.P
2015-09-04 19:08:23 +00:00
If \fB[value]\fR is negative, it tries to estimates a character width\. To show 30 characters on a row:
2015-06-02 17:01:25 +00:00
.
.IP "" 4
.
2014-08-14 19:16:42 +00:00
.nf
2015-06-02 17:01:25 +00:00
2015-09-04 19:08:23 +00:00
rofi \-width \-30
2015-06-02 17:01:25 +00:00
.
2014-08-14 19:16:42 +00:00
.fi
2015-06-02 17:01:25 +00:00
.
.IP "" 0
.
.P
Character width is a rough estimation, and might not be correct, but should work for most monospaced fonts\.
.
.P
Default: \fI50\fR
.
.P
\fB\-location\fR
.
.P
2015-09-04 19:08:23 +00:00
Specify where the window should be located\. The numbers map to the following locations on screen:
2015-06-02 17:01:25 +00:00
.
.IP "" 4
.
2014-05-22 08:37:25 +00:00
.nf
2015-06-02 17:01:25 +00:00
2014-08-01 21:29:01 +00:00
1 2 3
8 0 4
7 6 5
2015-06-02 17:01:25 +00:00
.
2014-05-22 08:37:25 +00:00
.fi
2015-06-02 17:01:25 +00: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 14:55:06 +00:00
\fB\-fullscreen\fR
.
.P
Use the full screen height and width\.
.
.P
2015-06-02 17:01:25 +00:00
\fB\-sidebar\-mode\fR
.
2015-09-04 19:08:23 +00:00
.P
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-06-02 17:01:25 +00:00
.IP "" 4
.
.nf
2015-09-04 19:08:23 +00:00
rofi \-show run \-sidebar\-mode \-lines 0
2015-06-02 17:01:25 +00:00
.
.fi
.
.IP "" 0
.
.P
\fB\-lazy\-filter\-limit\fR \fIlimit\fR
.
.P
The number of entries required for \fBrofi\fR to go into lazy filter mode\. In lazy filter mode, it won\'t re\-filter the list on each keypress, but only after \fBrofi\fR been idle for 250ms\. Experiments shows that the default (5000 lines) works well, set to 0 to always enable\.
.
.P
Default: \fI5000\fR
.
.P
\fB\-auto\-select\fR
.
2015-09-04 19:08:23 +00:00
.P
When one entry is left, automatically select it\.
2015-06-02 17:01:25 +00:00
.
2015-08-02 13:45:52 +00:00
.P
\fB\-m\fR \fInum\fR \fB\-monitor\fR \fInum\fR
.
2015-09-04 19:08:23 +00:00
.P
Select (Xinerama) monitor to display \fBrofi\fR on\. The special number \-1 denotes the currently focused monitor, the number \-2 denotes the currently focused window (i\.e\. rofi will be displayed on top of the focused window)\.
.
2015-08-02 13:45:52 +00:00
.IP "" 4
.
.nf
Default: *\-1*
2015-08-02 13:45:52 +00:00
.
.fi
.
.IP "" 0
.
2015-06-02 17:01:25 +00:00
.SS "PATTERN setting"
\fB\-terminal\fR
.
.P
Specify what terminal to start\.
.
.IP "" 4
.
2014-10-20 18:29:26 +00:00
.nf
2015-06-02 17:01:25 +00:00
2015-09-04 19:08:23 +00:00
rofi \-terminal xterm
2015-06-02 17:01:25 +00: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
Default: \fI{terminal} \-e {ssh\-client} {host}\fR
.
.P
\fB\-parse\-hosts\fR
.
2015-09-04 19:08:23 +00:00
.P
Parse the \fB/etc/hosts\fR file for entries\.
2015-06-02 17:01:25 +00: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 17:01:25 +00:00
.SS "Run settings"
\fB\-run\-command\fR \fIcmd\fR
.
.P
2015-09-04 19:08:23 +00:00
Set command (\fI{cmd}\fR) to execute when running an application\. See \fIPATTERN\fR\.
2015-06-02 17:01:25 +00:00
.
.P
Default: \fI{cmd}\fR
.
.P
\fB\-run\-shell\-command\fR \fIcmd\fR
.
.P
2015-09-04 19:08:23 +00:00
Set command to execute when running an application in a shell\. See \fIPATTERN\fR\.
2015-06-02 17:01:25 +00:00
.
.P
Default: \fI{terminal} \-e {cmd}\fR
.
.P
\fB\-run\-list\-command\fR \fIcmd\fR
.
.P
If set, use an external tool to generate list of executable commands\. Uses \'run\-command\'
.
.P
Default: \fI""\fR
.
.SS "Combi settings"
\fB\-combi\-modi\fR \fImode1,mode2\fR
.
2015-09-04 19:08:23 +00:00
.P
The modi to combine in combi mode\. For syntax to see \fB\-modi\fR\. To get one merge view, of window,run,ssh:
.
2015-06-02 17:01:25 +00:00
.IP "" 4
.
.nf
2015-09-04 19:08:23 +00:00
rofi \-show combi \-combi\-modi "window,run,ssh"
2015-06-02 17:01:25 +00:00
.
2015-04-01 12:49:27 +00:00
.fi
2015-06-02 17:01:25 +00:00
.
.IP "" 0
.
.SS "History and Sorting"
\fB\-disable\-history\fR \fB\-no\-disable\-history\fR (re\-enable history)
.
.P
2014-06-05 19:55:47 +00:00
Disable history
2015-06-02 17:01:25 +00:00
.
.P
\fB\-levenshtein\-sort\fR to enable \fB\-no\-levenshtein\-sort\fR to disable
.
.P
When searching sort the result based on levenshtein distance\.
.
.SS "Dmenu specific"
\fB\-sep\fR \fIseparator\fR
.
2015-09-04 19:08:23 +00:00
.P
Separator for dmenu\. Example: To show list \'a\' to \'e\' with \'|\' as separator:
.
2015-06-02 17:01:25 +00:00
.IP "" 4
.
.nf
2015-09-04 19:08:23 +00:00
echo "a|b|c|d|e" | rofi \-sep \'|\' \-dmenu
2015-06-02 17:01:25 +00:00
.
.fi
.
.IP "" 0
.
.P
\fB\-p\fR \fIprompt\fR
.
2015-09-04 19:08:23 +00:00
.P
Specify the prompt to show in dmenu mode\. E\.g\. select monkey a,b,c,d or e\.
.
2015-06-02 17:01:25 +00:00
.IP "" 4
.
.nf
2015-09-04 19:08:23 +00:00
echo "a|b|c|d|e" | rofi \-sep \'|\' \-dmenu \-p "monkey:"
2015-06-02 17:01:25 +00:00
.
2014-11-02 11:58:57 +00:00
.fi
2015-06-02 17:01:25 +00:00
.
.IP "" 0
.
.P
2015-09-04 19:08:23 +00:00
Default: \fIdmenu\fR
2015-06-02 17:01:25 +00:00
.
2015-09-04 19:08:23 +00:00
.P
\fB\-selected\-row\fR \fIselected row\fR
2015-06-02 17:01:25 +00:00
.
2015-09-04 19:08:23 +00:00
.P
Select a certain row\.
2015-06-02 17:01:25 +00:00
.
2015-09-04 19:08:23 +00:00
.P
Default: \fI0\fR
2015-06-02 17:01:25 +00: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 19:08:23 +00:00
rofi \-lines 25
.
.fi
.
.IP "" 0
.
.P
Default: \fI15\fR
.
.P
2015-06-02 17:01:25 +00:00
\fB\-i\fR
.
2015-09-04 19:08:23 +00:00
.P
Makes dmenu searches case\-insensitive
2015-06-02 17:01:25 +00:00
.
.P
\fB\-a\fR \fIX\fR
.
2015-09-04 19:08:23 +00:00
.P
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 17:01:25 +00:00
.
.P
\fB\-u\fR \fIX\fR
.
2015-09-04 19:08:23 +00:00
.P
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 17:01:25 +00:00
.
2015-09-04 19:08:23 +00:00
.P
\fB\-only\-match\fR
2015-06-02 17:01:25 +00:00
.
2015-09-04 19:08:23 +00: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 17:01:25 +00:00
.
2015-09-04 19:08:23 +00:00
.P
\fB\-no\-custom\fR
2015-06-02 17:01:25 +00:00
.
.P
2015-09-04 19:08:23 +00:00
Only return a selected item, do not allow custom entry\. This mode returns directly when no entries given\.
2015-06-02 17:01:25 +00:00
.
2015-09-04 19:08:23 +00:00
.P
\fB\-format\fR \fIformat\fR
2015-06-02 17:01:25 +00:00
.
2015-09-04 19:08:23 +00:00
.P
Allows the output of dmenu to be customized (N is total number of input entries):
2015-06-02 17:01:25 +00:00
.
2015-09-04 19:08:23 +00:00
.IP "\(bu" 4
\'s\' selected string\.
2015-06-02 17:01:25 +00:00
.
2015-09-04 19:08:23 +00:00
.IP "\(bu" 4
\'i\' index (0 \- (N\-1))\.
2015-06-02 17:01:25 +00:00
.
2015-09-04 19:08:23 +00:00
.IP "\(bu" 4
\'d\' index (1 \- N)\.
2015-06-11 18:38:48 +00:00
.
2015-09-04 19:08:23 +00:00
.IP "\(bu" 4
\'q\' quote string\.
2015-06-11 18:38:48 +00:00
.
2015-09-04 19:08:23 +00:00
.IP "\(bu" 4
\'f\' filter string (user input)\.
2015-06-11 18:38:48 +00:00
.
2015-09-04 19:08:23 +00:00
.IP "\(bu" 4
\'F\' quoted filter string (user input)\.
2015-06-11 18:38:48 +00:00
.
.IP "" 0
.
.P
2015-06-02 17:01:25 +00:00
Default: \'s\'
.
.P
\fB\-select\fR \fIstring\fR
.
2015-09-04 19:08:23 +00:00
.P
2015-05-24 07:20:01 +00:00
Select first line that matches the given string
2015-06-02 17:01:25 +00: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 09:45:28 +00:00
.P
\fB\-normal\-window\fR
.
.P
2015-09-30 07:10:33 +00:00
Make \fBrofi\fR reacts like a normal application window\. Useful for scripts like Clerk that are basically an application\.
2015-09-20 09:45:28 +00:00
.
2015-10-21 18:31:58 +00:00
.P
2015-11-28 12:36:28 +00:00
\fB\-dump\fR
2015-10-21 18:31:58 +00:00
.
.P
2015-11-28 12:36:28 +00: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 18:31:58 +00:00
.
2015-12-04 08:50:53 +00:00
.P
\fB\-input\fR \fIfile\fR
.
.P
Reads from \fIfile\fR instead of stdin\.
.
2016-01-10 12:28:14 +00:00
.P
\fB\-password\fR
.
.P
Hide the input text\. This should not be considered secure!
.
2015-06-02 17:01:25 +00:00
.SS "Message dialog"
\fB\-e\fR \fImessage\fR
.
2015-09-04 19:08:23 +00:00
.P
Popup a message dialog (used internally for showing errors) with \fImessage\fR\. Message can be multi\-line\.
2015-06-02 17:01:25 +00:00
.
.SS "Other"
\'\-pid\' \fIpath\fR
.
2015-09-04 19:08:23 +00:00
.P
Make \fBrofi\fR create a pid file and check this on startup\. Avoiding multiple copies running simultaneously\. This is useful when running \fBrofi\fR from a keybinding daemon\.
2015-06-02 17:01:25 +00:00
.
2015-11-28 12:36:28 +00:00
.P
\fB\-fake\-transparency\fR
.
.P
Enable fake transparency\. This only works with transparent background color in the theme, not the opacity setting\.
.
2015-06-02 17:01:25 +00:00
.SS "Debug"
\fB\-no\-config\fR
.
.P
Disable parsing of configuration\. This runs rofi in \fIstock\fR mode\.
.
.SH "PATTERN"
To launch commands (e\.g\. 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:
.
.IP "\(bu" 4
\fB{host}\fR: The host to connect to\.
.
.IP "\(bu" 4
\fB{terminal}\fR: The configured terminal (See \-terminal\-emulator)
.
.IP "\(bu" 4
\fB{ssh\-client}\fR: The configured ssh client (See \-ssh\-client)
.
.IP "\(bu" 4
\fB{cmd}\fR: The command to execute\.
.
.IP "" 0
.
.SH "DMENU REPLACEMENT"
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\.
.
.IP "" 4
.
.nf
2015-06-02 17:01:25 +00:00
2015-12-04 08:50:53 +00:00
ln \-s /usr/bin/rofi /usr/bin/dmenu
2015-06-02 17:01:25 +00:00
.
.fi
.
.IP "" 0
.
.SH "THEMING"
With \fBrofi\fR 0\.15\.4 we have a new way of specifying colors, the old settings still apply (for now)\. To enable the new setup, set \fBrofi\.color\-enabled\fR to true\. The new setup allows you to specify colors per state, similar to \fBi3\fR Currently 3 states exists:
.
.IP "\(bu" 4
\fBnormal\fR Normal row\.
.
.IP "\(bu" 4
\fBurgent\fR Highlighted row (urgent)
.
.IP "\(bu" 4
\fBactive\fR Highlighted row (active)
.
.IP "" 0
.
.P
2015-04-06 20:17:05 +00:00
For each state the following 5 colors must be set:
2015-06-02 17:01:25 +00:00
.
.IP "\(bu" 4
\fBbg\fR Background color row
.
.IP "\(bu" 4
\fBfg\fR Text color
.
.IP "\(bu" 4
\fBbgalt\fR Background color alternating row
.
.IP "\(bu" 4
\fBhlfg\fR Foreground color selected row
.
.IP "\(bu" 4
\fBhlbg\fR Background color selected row
.
.IP "" 0
.
.P
The window background and border color should be specified separate\. The key \fBcolor\-window\fR contains a pair \fBbackground,border\fR\. An example for \fBXresources\fR file:
.
2015-07-07 20:10:40 +00:00
.IP "" 4
2015-06-02 17:01:25 +00:00
.
2015-07-07 20:10:40 +00: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
! \'background\', \'border\'
rofi\.color\-window: #fdf6e3, #002b36
.
.fi
.
.IP "" 0
2015-06-02 17:01:25 +00:00
.
.P
2015-04-06 20:17:05 +00:00
Same settings can also be specified on command\-line:
2015-06-02 17:01:25 +00:00
.
2015-07-07 20:10:40 +00:00
.IP "" 4
.
.nf
rofi \-color\-normal "#fdf6e3,#002b36,#eee8d5,#586e75,#eee8d5"
.
.fi
.
.IP "" 0
2015-06-02 17:01:25 +00:00
.
.SH "COLORS"
2015-09-04 19:08:23 +00:00
Rofi has an experimental mode for a \'nicer\' transparency\. The idea is to make the background of the window transparent, leaving the text opaque\. There are 2 requirements for this feature: 1\. Your Xserver supports TrueColor, 2\. You are running a composite manager\. If this is satisfied you can use the following format for colors:
2015-06-02 17:01:25 +00:00
.
2015-09-04 19:08:23 +00:00
.IP "" 4
.
.nf
2015-06-02 17:01:25 +00:00
argb:FF444444
.
2015-09-04 19:08:23 +00:00
.fi
.
.IP "" 0
.
2015-06-02 17:01:25 +00:00
.P
2015-09-04 19:08:23 +00: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 17:01:25 +00:00
.
.SH "KEYBINDINGS"
\fBrofi\fR has the following key\-bindings:
.
.IP "\(bu" 4
\fBCtrl\-v, Insert\fR: Paste clipboard
.
.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 08:16:30 +00:00
\fBCtrl\-Alt\-d\fR: Delete word
2015-06-02 17:01:25 +00: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
\fBPage Up\fR: Go to the previous page
.
.IP "\(bu" 4
\fBPage Down\fR: Go to the next page
.
.IP "\(bu" 4
\fBCtrl\-Page Up\fR: Go to the previous column
.
.IP "\(bu" 4
\fBCtrl\-Page Down\fR: Go to the next column
.
.IP "\(bu" 4
\fBCtrl\-Enter\fR: Use entered text as command (in ssh/run modi)
.
.IP "\(bu" 4
\fBShift\-Enter\fR: Launch the application in a terminal (in run mode)
.
.IP "\(bu" 4
\fBShift\-Enter\fR: Return the selected entry and move to the next item while keeping Rofi open\. (in dmenu)
.
.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 08:50:53 +00:00
\fBgrave\fR: Toggle case sensitivity\.
2015-06-02 17:01:25 +00:00
.
2015-12-09 07:29:18 +00:00
.IP "\(bu" 4
2015-12-13 10:50:59 +00:00
\fBAlt\-grave\fR: Toggle levenshtein sorting\.
.
.IP "\(bu" 4
2015-12-09 07:29:18 +00:00
\fBAlt\-Shift\-S\fR: Take a screenshot and store this in the Pictures directory\.
.
2015-06-02 17:01:25 +00:00
.IP "" 0
.
.P
To get a full list of keybindings, see \fBrofi \-dump\-xresources | grep kb\-\fR\. Keybindings can be modified using the configuration systems\.
.
2015-11-25 08:16:30 +00:00
.SH "Available Modi"
.
.SS "Window"
Show a list of all the windows and allow switching between them\.
.
.SS "WindowCD"
Shows a list of the windows on the current desktop and allows switching between them\.
.
.SS "Run"
Shows a list of executables in \fB$PATH\fR and can launch them (optional in a terminal)\.
.
.SS "DRun"
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\.
.
.SS "SSH"
Shows a list of SSH targets based on your ssh config file, and allows to quickly ssh into them\.
.
.SS "Script"
Allows custom scripted Modi to be added\.
.
2015-06-02 17:01:25 +00:00
.SH "FAQ"
\fBText in window switcher is not nicely lined out\fR
.
.IP "" 4
.
2015-04-25 15:40:01 +00:00
.nf
2015-06-02 17:01:25 +00:00
Try using a mono\-space font\.
.
.fi
.
.IP "" 0
.
.P
\fBrofi\fR is completely black\.
2015-06-02 17:01:25 +00:00
.
.IP "" 4
.
.nf
Check quotes used on the commandline: e\.g\. used “ instead of "\.
.
.fi
.
.IP "" 0
.
.P
\fBrofi\fR what does the icon in the top right show?
.
.IP "" 4
.
.nf
\- Case sensitivity enabled
+ Sorting enabled
± Sorting and Case sensitivity enabled"
.
.fi
.
.IP "" 0
.
2015-06-02 17:01:25 +00:00
.SH "LICENSE"
.
.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
2015-06-02 17:01:25 +00:00
included in all copies or substantial portions of the Software\.
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
2015-06-02 17:01:25 +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
2015-06-02 17:01:25 +00:00
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE\.
.
.fi
.
.SH "WEBSITE"
\fBrofi\fR website can be found at here \fIhttps://davedavenport\.github\.io/rofi/\fR
.
.P
\fBrofi\fR bugtracker can be found here \fIhttps://github\.com/DaveDavenport/rofi/issues\fR
.
.SH "AUTHOR"
Qball Cow \fIqball@gmpclient\.org\fR
.
.P
2015-06-04 20:29:26 +00:00
Rasmus Steinke \fIrasi@xssn\.at\fR
2015-06-02 17:01:25 +00:00
.
.P
Original code based on work by: Sean Pringle \fIsean\.pringle@gmail\.com\fR
.
.P
For a full list of authors, check the AUTHORS file\.