2015-06-02 13:01:25 -04:00
. \" generated with Ronn/v0.7.3
. \" http://github.com/rtomayko/ronn/tree/0.7.3
.
2015-09-04 15:08:23 -04:00
.TH "ROFI\-MANPAGE" "" "September 2015" "" ""
2015-06-02 13:01:25 -04:00
.
.SH "NAME"
\fB rofi\fR \- A window switcher, run launcher, ssh dialog and dmenu replacement
.
.SH "SYNOPSIS"
2015-08-20 15:42:53 -04:00
\fB rofi\fR [ \- width \fI pct_scr\fR ] [ \- lines \fI lines\fR ] [ \- columns \fI columns\fR ] [ \- font \fI pangofont\fR ] [ \- fg \fI color\fR ] [ \- fg\- urgent \fI color\fR ] [ \- fg\- active \fI color\fR ] [ \- bg\- urgent \fI color\fR ] [ \- bg\- active \fI color\fR ] [ \- bg \fI color\fR ] [ \- bgalt \fI color\fR ] [ \- hlfg \fI color\fR ] [ \- hlbg \fI color\fR ] [ \- key\- \fB mode\fR \fI combo\fR ] [ \- terminal \fI terminal\fR ] [ \- location \fI position\fR ] [ \- fixed\- num\- lines ] [ \- padding \fI padding\fR ] [ \- opacity \fI opacity%\fR ] [ \- display \fI display\fR ] [ \- bc \fI color\fR ] [ \- bw \fI width\fR ] [ \- dmenu [ \- p \fI prompt\fR ] [ \- sep \fI separator\fR ] [ \- l \fI selected line\fR ] [ \- mesg ] [ \- select ] ] [ \- filter \fI filter\fR ] [ \- ssh\- client \fI client\fR ] [ \- ssh\- command \fI command\fR ] [ \- disable\- history ] [ \- levenshtein\- sort ] [ \- case\- sensitive ] [ \- show \fI mode\fR ] [ \- modi \fI mode1,mode2\fR ] [ \- eh \fI element height\fR ] [ \- lazy\- filter\- limit \fI limit\fR ] [ \- e \fI message\fR ] [ \- a \fI row\fR ] [ \- u \fI row\fR ] [ \- pid \fI path\fR ] [ \- now ] [ \- rnow ] [ \- snow ] [ \- version ] [ \- help] [ \- dump\- xresources ] [ \- auto\- select ] [ \- parse\- hosts ] [ \- combi\- modi \fI mode1,mode2\fR ] [ \- quiet ]
2015-06-02 13:01:25 -04:00
.
.SH "DESCRIPTION"
\fB rofi\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"
\fB rofi\fR can be used in three ways, single\- shot; executes once and directly exits when done, as a daemon listening to specific key\- combination or emulating dmenu\.
.
.SS "Single\-shot mode"
2015-09-04 15:08:23 -04:00
To launch \fB rofi\fR directly in a certain mode, specify a mode with \fB rofi \- 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 "Daemon mode"
2015-09-04 15:08:23 -04:00
To launch \fB rofi\fR in daemon mode don\' t specify any mode, instead keys can be bound to launch a certain mode\. To show run\- mode by pressing \fB F2\fR start \fB rofi\fR like this:
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 \- key\- run F2
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
.
.P
2015-07-07 16:10:40 -04:00
Keybindings can also be specified in the \fB Xresources\fR file\.
2015-06-02 13:01:25 -04:00
.
.SS "Emulating dmenu"
\fB rofi\fR can emulate \fB dmenu\fR (a dynamic menu for X) when launched with the \fB \- dmenu\fR flag\.
.
.P
The official website for \fB dmenu\fR can be found here \fI http://tools\. suckless\. org/dmenu/\fR \.
.
.SH "OPTIONS"
2015-04-21 16:17:20 -04:00
There are currently three methods of setting configuration options:
2015-06-02 13:01:25 -04: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 \fI https://en\. wikipedia\. org/wiki/X_resources\fR for more information\. This is the recommended way of configuring \fB rofi\fR \.
.
.IP "\(bu" 4
Command\- line options: Arguments passed to \fB rofi\fR \.
.
.IP "" 0
.
.P
2015-09-04 15:08:23 -04:00
The Xresources file expects options starting with \fB rofi\. \fR followed by it\' s name\. An Example to set the number of lines:
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
2015-04-21 16:17:20 -04:00
.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
2015-09-04 15:08:23 -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
.
2015-04-21 16:17:20 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
2015-04-21 16:17:20 -04:00
To get a list of available options, formatted as Xresources entries run:
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
2015-04-21 16:17:20 -04:00
.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
.
2015-04-21 16:17:20 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
2015-04-21 16:17:20 -04:00
The configuration system supports the following types:
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2015-04-21 16:17:20 -04:00
String
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2015-04-21 16:17:20 -04:00
Integer (signed and unsigned)
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2015-04-21 16:17:20 -04:00
Char
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
2015-04-21 16:17:20 -04:00
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
2015-04-21 16:17:20 -04:00
to disable it:
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
2015-04-21 16:17:20 -04:00
Below is a list of the most important options:
2015-06-02 13:01:25 -04:00
.
.SS "General"
\fB \- key\- {mode}\fR \fB KEY\fR
.
.P
Set the key combination to display a {mode} in daemon mode\.
.
.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 \- key\- run F12
rofi \- key\- ssh control+shift+s
rofi \- key\- window mod1+Tab
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
\fB \- dmenu\fR
.
.P
2015-09-04 15:08:23 -04:00
Run \fB rofi\fR in dmenu mode\. This allows for interactive scripts\. In \fB dmenu\fR mode, \fB rofi\fR reads from STDIN, and output to STDOUT\. A simple example, displaying 3 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\e nOption #2\e nOption #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
2015-09-04 15:08:23 -04:00
Pressing \fB shift\- enter\fR sends the selected entry to STDOUT and moves to the next entry\.
2015-06-02 13:01:25 -04:00
.
.P
\fB \- show\fR \fI mode\fR
.
.P
2015-09-04 15:08:23 -04:00
Open \fB rofi\fR in a certain mode\. Available modes are \fB window\fR , \fB run\fR , \fB ssh\fR 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 \fI mode1,mode1\fR
2015-06-02 13:01:25 -04:00
.
.P
2015-09-04 15:08:23 -04: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 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
2015-09-04 15:08:23 -04:00
Example: Have a mode \' Workspaces\' using the \fB i3_switch_workspace\. 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
\fB \- case\- sensitive\fR
.
.P
Start in case sensitive mode\.
.
.P
\fB \- quiet\fR
.
.P
Do not print any message when starting in daemon mode\.
.
2015-07-01 03:12:22 -04:00
.P
\fB \- fuzzy\fR
.
2015-09-04 15:08:23 -04:00
.P
2015-07-01 03:12:22 -04:00
Enable experimental fuzzy matching\.
.
2015-08-20 15:42:53 -04:00
.P
\fB \- filter\fR \fI filter\fR
.
2015-09-04 15:08:23 -04:00
.P
Filter the list by setting text in input bar to \fI filter\fR
2015-08-20 15:42:53 -04:00
.
2015-06-02 13:01:25 -04:00
.SS "Theming"
2015-09-04 15:08:23 -04:00
All colors are either hex #rrggbb values or X11 color names\. \fB \- bg\fR
2015-06-02 13:01:25 -04:00
.
.P
\fB \- bg\- active\fR
.
.P
\fB \- bg\- urgent\fR
.
.P
2015-09-04 15:08:23 -04:00
Set background color in menu\.
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 \- bg "#222222"
2015-06-02 13:01:25 -04:00
.
2015-01-12 13:16:28 -05:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
Default: \fI #f2f1f0\fR
.
.P
\fB \- bgalt\fR
.
.P
2015-09-04 15:08:23 -04:00
Set background color for alternating rows in menu\.
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
2015-01-12 13:16:28 -05:00
.nf
2015-06-02 13:01:25 -04:00
2015-09-04 15:08:23 -04:00
rofi \- bgalt "#222222"
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: \fI #f2f1f0\fR
.
.P
\fB \- bc\fR
.
.P
2015-09-04 15:08:23 -04:00
Set border color for menu\.
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 \- bc black
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: \fI black\fR
.
.P
\fB \- bw\fR
.
.P
2015-09-04 15:08:23 -04:00
Set border width in pixels\.
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 \- bw 1
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: \fI 1\fR
.
.P
\fB \- fg\fR
.
.P
\fB \- fg\- urgent\fR
.
.P
\fB \- fg\- active\fR
.
.P
2015-09-04 15:08:23 -04:00
Set foreground text color for the menu\.
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
2015-04-04 10:46:30 -04:00
.nf
2015-06-02 13:01:25 -04:00
2015-09-04 15:08:23 -04:00
rofi \- fg "#cccccc"
2015-06-02 13:01:25 -04:00
.
2015-04-04 10:46:30 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
Default: \fI #222222\fR
.
.P
\fB \- hlbg\fR
.
.P
\fB \- hlbg\- active\fR
.
.P
\fB \- hlbg\- urgent\fR
.
.P
2015-09-04 15:08:23 -04:00
Set background color for the highlighted item in the menu\.
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 \- hlbg "#005577"
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: \fI #005577\fR
.
.P
\fB \- hlfg\fR
.
.P
\fB \- hlfg\- active\fR
.
.P
\fB \- hlfg\- urgent\fR
.
.P
2015-09-04 15:08:23 -04:00
Set foreground text color for the highlighted item in the menu\.
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 \- hlfg "#ffffff"
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: \fI #FFFFFF\fR
.
.P
\fB \- font\fR
.
.P
2015-09-04 15:08:23 -04:00
Specify a font\. Pango syntax is used\.
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 \- font "Dejavu Sans Mono 14"
2015-06-02 13:01:25 -04:00
.
.fi
.
.IP "" 0
.
.P
Default: \fI mono 12\fR
.
.P
\fB \- opacity\fR
.
.P
2015-09-04 15:08:23 -04:00
Set window opacity (0\- 100)\.
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
.nf
2015-09-04 15:08:23 -04:00
rofi \- opacity "75"
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: \fI 100\fR
.
.P
\fB \- eh\fR \fI element height\fR
.
.P
The height of a field in lines\. e\. g\.
.
.IP "" 4
.
.nf
2015-09-04 15:08:23 -04:00
echo \- e "a\e n3|b\e n4|c\e n5" | rofi \- sep \' |\' \- eh 2 \- dmenu
2015-06-02 13:01:25 -04:00
.
.fi
.
.IP "" 0
.
.P
Default: \fI 1\fR
.
.P
2015-04-12 03:31:59 -04:00
The following options are further explained in the theming section:
2015-06-02 13:01:25 -04:00
.
.P
\fB \- color\- enabled\fR
.
2015-09-04 15:08:23 -04:00
.P
2015-06-02 13:01:25 -04:00
Enable the exteneded coloring options\.
.
.P
2015-08-26 12:11:53 -04:00
\fB \- color\- window\fR \fI background\fR \fI border color\fR \fI separator color\fR /
2015-06-02 13:01:25 -04:00
.
2015-09-04 15:08:23 -04:00
.P
2015-08-26 12:11:53 -04:00
Set window background, border and separator color\.
2015-06-02 13:01:25 -04:00
.
.P
\fB \- color\- normal\fR \fI background, foreground, background alt, highlight background, highlight foreground\fR
.
.P
\fB \- color\- urgent\fR \fI background, foreground, background alt, highlight background, highlight foreground\fR
.
.P
\fB \- color\- active\fR \fI background, foreground, background alt, highlight background, highlight foreground\fR
.
2015-09-04 15:08:23 -04:00
.P
2015-06-02 13:01:25 -04:00
Specify the colors used in a row per state (normal, active, urgent)\.
.
2015-08-04 03:42:14 -04:00
.P
\fB \- line\- margin\fR
.
2015-09-04 15:08:23 -04:00
.P
Set the spacing between the rows\.
.
2015-08-04 03:42:14 -04:00
.IP "" 4
.
.nf
Default: *3*
Min: *3*
Max: *50*
.
.fi
.
.IP "" 0
.
2015-08-26 12:11:53 -04:00
.P
\fB \- separator\- style\fR \fI style\fR
.
2015-09-04 15:08:23 -04:00
.P
Set separator style\. Possible options are "solid" or "dash"\.
.
2015-08-26 12:11:53 -04:00
.IP "" 4
.
.nf
Default: *dash*
.
.fi
.
.IP "" 0
.
2015-09-04 15:08:23 -04:00
.P
\fB \- hide\- scrollbar\fR
.
.P
Hide the scrollbar\.
.
2015-06-02 13:01:25 -04:00
.SS "Layout"
\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: \fI 15\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: \fI 1\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
2015-09-04 15:08:23 -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
2015-09-04 15:08:23 -04:00
If \fB [value]\fR is negative, it tries to estimates a character width\. To show 30 characters on 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
Character width is a rough estimation, and might not be correct, but should work for most monospaced fonts\.
.
.P
Default: \fI 50\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: \fI 0\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: \fI 5\fR
.
.P
\fB \- sidebar\- mode\fR
.
2015-09-04 15:08:23 -04: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 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 \- lazy\- filter\- limit\fR \fI limit\fR
.
.P
The number of entries required for \fB rofi\fR to go into lazy filter mode\. In lazy filter mode, it won\' t re\- filter the list on each keypress, but only after \fB rofi\fR been idle for 250ms\. Experiments shows that the default (5000 lines) works well, set to 0 to always enable\.
.
.P
Default: \fI 5000\fR
.
.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 \fI num\fR \fB \- monitor\fR \fI num\fR
.
2015-09-04 15:08:23 -04:00
.P
Select (Xinerama) monitor to display \fB rofi\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 09:45:52 -04:00
.IP "" 4
.
2015-08-20 15:42:53 -04:00
.nf
Default: *\- 1*
2015-08-02 09:45:52 -04:00
.
.fi
.
.IP "" 0
.
2015-06-02 13:01:25 -04:00
.SS "PATTERN setting"
\fB \- terminal\fR
.
.P
Specify what terminal to start\.
.
.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: \fI x\- terminal\- emulator\fR
.
.P
\fB \- ssh\- client\fR \fI client\fR
.
.P
Override the used ssh client\.
.
.P
Pattern: \fI {ssh\- client}\fR Default: \fI ssh\fR
.
.SS "SSH settings"
\fB \- ssh\- command\fR \fI cmd\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 15:08:23 -04:00
.P
Parse the \fB /etc/hosts\fR file for entries\.
2015-06-02 13:01:25 -04:00
.
.SS "Run settings"
\fB \- run\- command\fR \fI cmd\fR
.
.P
2015-09-04 15:08:23 -04:00
Set command (\fI {cmd}\fR ) to execute when running an application\. See \fI PATTERN\fR \.
2015-06-02 13:01:25 -04:00
.
.P
Default: \fI {cmd}\fR
.
.P
\fB \- run\- shell\- command\fR \fI cmd\fR
.
.P
2015-09-04 15:08:23 -04:00
Set command to execute when running an application in a shell\. See \fI PATTERN\fR \.
2015-06-02 13:01:25 -04:00
.
.P
Default: \fI {terminal} \- e {cmd}\fR
.
.P
\fB \- run\- list\- command\fR \fI cmd\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 \fI mode1,mode2\fR
.
2015-09-04 15:08:23 -04: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 13:01:25 -04:00
.IP "" 4
.
.nf
2015-09-04 15:08:23 -04:00
rofi \- show combi \- combi\- modi "window,run,ssh"
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
.
.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
\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 \fI separator\fR
.
2015-09-04 15:08:23 -04:00
.P
Separator for dmenu\. Example: To show list \' a\' to \' e\' with \' |\' as separator:
.
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 \fI prompt\fR
.
2015-09-04 15:08:23 -04:00
.P
Specify the prompt to show in dmenu mode\. E\. g\. select monkey a,b,c,d or e\.
.
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: \fI dmenu\fR
2015-06-02 13:01:25 -04:00
.
2015-09-04 15:08:23 -04:00
.P
\fB \- selected\- row\fR \fI selected row\fR
2015-06-02 13:01:25 -04:00
.
2015-09-04 15:08:23 -04:00
.P
2015-08-04 03:42:14 -04:00
Select a certain row\.
2015-06-02 13:01:25 -04:00
.
2015-09-04 15:08:23 -04:00
.P
Default: \fI 0\fR
2015-06-02 13:01:25 -04:00
.
.P
2015-08-02 15:24:07 -04:00
\fB \- l\fR \fI number 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
2015-08-02 15:24:07 -04:00
.
.fi
.
.IP "" 0
.
.P
Default: \fI 15\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 \fI X\fR
.
2015-09-04 15:08:23 -04: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 13:01:25 -04:00
.
.P
\fB \- u\fR \fI X\fR
.
2015-09-04 15:08:23 -04: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 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 \fI format\fR
2015-06-02 13:01:25 -04:00
.
2015-09-04 15:08:23 -04:00
.P
Allows the output of dmenu to be customized (N is total number of input entries):
2015-06-02 13:01:25 -04:00
.
2015-09-04 15:08:23 -04:00
.IP "\(bu" 4
\' s\' selected string\.
2015-06-02 13:01:25 -04:00
.
2015-09-04 15:08:23 -04:00
.IP "\(bu" 4
\' i\' index (0 \- (N\- 1))\.
2015-06-02 13:01:25 -04:00
.
2015-09-04 15:08:23 -04:00
.IP "\(bu" 4
\' d\' index (1 \- N)\.
2015-06-11 14:38:48 -04:00
.
2015-09-04 15:08:23 -04:00
.IP "\(bu" 4
\' q\' quote string\.
2015-06-11 14:38:48 -04:00
.
2015-09-04 15:08:23 -04:00
.IP "\(bu" 4
\' f\' filter string (user input)\.
2015-06-11 14:38:48 -04:00
.
2015-09-04 15:08:23 -04:00
.IP "\(bu" 4
\' 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 \fI string\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 \fI string\fR
.
.P
Add a message line below the filter entry box\. Supports pango markup\. For more information on supported markup see here \fI https://developer\. gnome\. org/pango/stable/PangoMarkupFormat\. html\fR
.
.SS "Message dialog"
\fB \- e\fR \fI message\fR
.
2015-09-04 15:08:23 -04:00
.P
Popup a message dialog (used internally for showing errors) with \fI message\fR \. Message can be multi\- line\.
2015-06-02 13:01:25 -04:00
.
.SS "Other"
\' \- pid\' \fI path\fR
.
2015-09-04 15:08:23 -04:00
.P
Make \fB rofi\fR create a pid file and check this on startup\. Avoiding multiple copies running simultaneously\. This is useful when running \fB rofi\fR from a keybinding daemon\.
2015-06-02 13:01:25 -04:00
.
.SS "Debug"
2015-07-07 16:10:40 -04:00
\fB \- dump\- xresources\fR
2015-06-02 13:01:25 -04:00
.
.P
2015-07-08 10:31:47 -04:00
Dump the current active configuration in Xresources format to the command\- line\. This does not validate all passed values (e\. g\. colors)\.
2015-06-02 13:01:25 -04:00
.
.P
\fB \- no\- config\fR
.
.P
Disable parsing of configuration\. This runs rofi in \fI stock\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 \fB argv[0]\fR (calling command) is dmenu, \fB rofi\fR will start in dmenu mode\. This way it can be used as a drop\- in replacement for dmenu\. just copy or symlink \fB rofi\fR to dmenu in \fB $PATH\fR \.
.
.IP "" 4
.
2014-11-05 04:27:46 -05:00
.nf
2015-06-02 13:01:25 -04:00
2014-11-05 04:27:46 -05:00
ln \- s /usr/bin/dmenu /usr/bin/rofi
2015-06-02 13:01:25 -04:00
.
.fi
.
.IP "" 0
.
2015-07-29 11:55:26 -04:00
.SH "SIGNALS"
\fB HUP\fR
.
.P
If in daemon mode, reload the configuration from Xresources\. (commandline arguments still \- override Xresources)\. This will also reload configured key\- bindings\.
.
.P
\fB INT\fR
.
.P
If in daemon mode, quits \fB rofi\fR \.
.
.P
\fB USR1\fR
.
.P
If in daemon mode, dumps the current configuration to stdout\. Similar to \fB \- xresources\- dump\fR
.
2015-06-02 13:01:25 -04:00
.SH "THEMING"
With \fB rofi\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 \fB rofi\. color\- enabled\fR to true\. The new setup allows you to specify colors per state, similar to \fB i3\fR Currently 3 states exists:
.
.IP "\(bu" 4
\fB normal\fR Normal row\.
.
.IP "\(bu" 4
\fB urgent\fR Highlighted row (urgent)
.
.IP "\(bu" 4
\fB active\fR Highlighted row (active)
.
.IP "" 0
.
.P
2015-04-06 16:17:05 -04:00
For each state the following 5 colors must be set:
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
\fB bg\fR Background color row
.
.IP "\(bu" 4
\fB fg\fR Text color
.
.IP "\(bu" 4
\fB bgalt\fR Background color alternating row
.
.IP "\(bu" 4
\fB hlfg\fR Foreground color selected row
.
.IP "\(bu" 4
\fB hlbg\fR Background color selected row
.
.IP "" 0
.
.P
The window background and border color should be specified separate\. The key \fB color\- window\fR contains a pair \fB background,border\fR \. An example for \fB Xresources\fR file:
.
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
! \' background\' , \' border\'
rofi\. color\- window: #fdf6e3, #002b36
.
.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"
2015-09-04 15:08:23 -04: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 13:01:25 -04:00
.
2015-09-04 15:08:23 -04:00
.IP "" 4
.
.nf
2015-06-02 13:01:25 -04:00
argb:FF444444
.
2015-09-04 15:08:23 -04:00
.fi
.
.IP "" 0
.
2015-06-02 13:01:25 -04:00
.P
2015-09-04 15:08:23 -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
.
.SH "KEYBINDINGS"
\fB rofi\fR has the following key\- bindings:
.
.IP "\(bu" 4
\fB Ctrl\- v, Insert\fR : Paste clipboard
.
.IP "\(bu" 4
\fB Ctrl\- Shift\- v, Shift\- Insert\fR : Paste primary selection
.
.IP "\(bu" 4
\fB Ctrl\- u\fR : Clear the line
.
.IP "\(bu" 4
\fB Ctrl\- a\fR : Beginning of line
.
.IP "\(bu" 4
\fB Ctrl\- e\fR : End of line
.
.IP "\(bu" 4
\fB Ctrl\- f, Right\fR : Forward one character
.
.IP "\(bu" 4
\fB Alt\- f\fR : Forward one word
.
.IP "\(bu" 4
\fB Ctrl\- b, Left\fR : Back one character
.
.IP "\(bu" 4
\fB Alt\- b\fR : Back one word
.
.IP "\(bu" 4
\fB Ctrl\- d, Delete\fR : Delete character
.
.IP "\(bu" 4
`Ctrl\- Alt\- d\' : Delete word
.
.IP "\(bu" 4
\fB Ctrl\- h, Backspace\fR : Backspace (delete previous character)
.
.IP "\(bu" 4
\fB Ctrl\- Alt\- h\fR : Delete previous word
.
.IP "\(bu" 4
\fB Ctrl\- j,Ctrl\- m,Enter\fR : Accept entry
.
.IP "\(bu" 4
\fB Ctrl\- n,Down\fR : Select next entry
.
.IP "\(bu" 4
\fB Ctrl\- p,Up\fR : Select previous entry
.
.IP "\(bu" 4
\fB Page Up\fR : Go to the previous page
.
.IP "\(bu" 4
\fB Page Down\fR : Go to the next page
.
.IP "\(bu" 4
\fB Ctrl\- Page Up\fR : Go to the previous column
.
.IP "\(bu" 4
\fB Ctrl\- Page Down\fR : Go to the next column
.
.IP "\(bu" 4
\fB Ctrl\- Enter\fR : Use entered text as command (in ssh/run modi)
.
.IP "\(bu" 4
\fB Shift\- Enter\fR : Launch the application in a terminal (in run mode)
.
.IP "\(bu" 4
\fB Shift\- Enter\fR : Return the selected entry and move to the next item while keeping Rofi open\. (in dmenu)
.
.IP "\(bu" 4
\fB Shift\- Right\fR : Switch to the next modi\. The list can be customized with the \fB \- switchers\fR argument\.
.
.IP "\(bu" 4
\fB Shift\- Left\fR : Switch to the previous modi\. The list can be customized with the \fB \- switchers\fR argument\.
.
.IP "\(bu" 4
\fB Ctrl\- Tab\fR : Switch to the next modi\. The list can be customized with the \fB \- switchers\fR argument\.
.
.IP "\(bu" 4
\fB Ctrl\- Shift\- Tab\fR : Switch to the previous modi\. The list can be customized with the \fB \- switchers\fR argument\.
.
.IP "\(bu" 4
\fB Ctrl\- space\fR : Set selected item as input text\.
.
.IP "\(bu" 4
\fB Shift\- Del\fR : Delete entry from history\.
.
.IP "\(bu" 4
\fB Ctrl\- grave\fR : Toggle case sensitivity\.
.
.IP "" 0
.
.P
To get a full list of keybindings, see \fB rofi \- dump\- xresources | grep kb\- \fR \. Keybindings can be modified using the configuration systems\.
.
.SH "FAQ"
\fB Text in window switcher is not nicely lined out\fR
.
.IP "" 4
.
2015-04-25 11:40:01 -04:00
.nf
2015-06-02 13:01:25 -04:00
Try using a mono\- space font\.
.
.fi
.
.IP "" 0
.
.P
\fB **rofi** is completely black\. \fR
.
.IP "" 4
.
.nf
Check quotes used on the commandline: e\. g\. used “ instead of "\.
.
.fi
.
.IP "" 0
.
.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"
\fB rofi\fR website can be found at here \fI https://davedavenport\. github\. io/rofi/\fR
.
.P
\fB rofi\fR bugtracker can be found here \fI https://github\. com/DaveDavenport/rofi/issues\fR
.
.SH "AUTHOR"
Qball Cow \fI qball@gmpclient\. org\fR
.
.P
2015-06-04 16:29:26 -04:00
Rasmus Steinke \fI rasi@xssn\. at\fR
2015-06-02 13:01:25 -04:00
.
.P
Original code based on work by: Sean Pringle \fI sean\. pringle@gmail\. com\fR
.
.P
For a full list of authors, check the AUTHORS file\.