2014-05-22 08:03:36 +00:00
|
|
|
.TH ROFI 1 rofi
|
2012-06-29 17:29:23 +00:00
|
|
|
.SH NAME
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
|
|
|
rofi \- A window switcher, run dialog and dmenu replacement
|
2012-06-29 17:29:23 +00:00
|
|
|
.SH SYNOPSIS
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2015-01-19 14:49:23 +00:00
|
|
|
\fBrofi\fP
|
|
|
|
[ \-width \fIpct_scr\fP ]
|
|
|
|
[ \-lines \fIlines\fP ]
|
|
|
|
[ \-columns \fIcolumns\fP ]
|
|
|
|
[ \-font \fIpangofont\fP ]
|
|
|
|
[ \-fg \fIcolor\fP ]
|
2015-04-04 14:46:30 +00:00
|
|
|
[ \-fg\-urgent \fIcolor\fP ]
|
|
|
|
[ \-fg\-active \fIcolor\fP ]
|
2015-01-19 14:49:23 +00:00
|
|
|
[ \-bg \fIcolor\fP ]
|
|
|
|
[ \-bgalt \fIcolor\fP ]
|
|
|
|
[ \-hlfg \fIcolor\fP ]
|
|
|
|
[ \-hlbg \fIcolor\fP ]
|
2015-02-15 20:15:16 +00:00
|
|
|
[ \-key\-\fBmode\fP \fIcombo\fP ]
|
2015-01-19 14:49:23 +00:00
|
|
|
[ \-terminal \fIterminal\fP ]
|
|
|
|
[ \-location \fIposition\fP ]
|
|
|
|
[ \-fixed\-num\-lines ]
|
|
|
|
[ \-padding \fIpadding\fP ]
|
|
|
|
[ \-opacity \fIopacity%\fP ]
|
|
|
|
[ \-display \fIdisplay\fP ]
|
|
|
|
[ \-bc \fIcolor\fP ]
|
|
|
|
[ \-bw \fIwidth\fP ]
|
|
|
|
[ \-dmenu [ \-p \fIprompt\fP ] [ \-sep \fIseparator\fP ] [ \-l \fIselected line\fP ] ]
|
|
|
|
[ \-ssh\-client \fIclient\fP ]
|
|
|
|
[ \-ssh\-command \fIcommand\fP ]
|
|
|
|
[ \-disable\-history ]
|
|
|
|
[ \-levenshtein\-sort ]
|
|
|
|
[ \-case\-sensitive ]
|
|
|
|
[ \-show \fImode\fP ]
|
2015-02-23 07:39:29 +00:00
|
|
|
[ \-modi \fImode1,mode2\fP ]
|
2015-01-19 14:49:23 +00:00
|
|
|
[ \-eh \fIelement height\fP ]
|
|
|
|
[ \-lazy\-filter\-limit \fIlimit\fP ]
|
|
|
|
[ \-e \fImessage\fP]
|
2015-04-04 14:46:30 +00:00
|
|
|
[ \-a \fIrow\fP ]
|
|
|
|
[ \-u \fIrow\fP ]
|
2015-01-31 17:23:17 +00:00
|
|
|
[ \-pid \fIpath\fP ]
|
2015-01-19 14:49:23 +00:00
|
|
|
[ \-now ]
|
|
|
|
[ \-rnow ]
|
|
|
|
[ \-snow ]
|
|
|
|
[ \-version ]
|
|
|
|
[ \-help]
|
|
|
|
[ \-dump\-xresources ]
|
2015-02-24 16:34:25 +00:00
|
|
|
[ \-auto\-select ]
|
2015-03-29 10:27:00 +00:00
|
|
|
[ \-parse\-hosts ]
|
2015-04-01 12:49:27 +00:00
|
|
|
[ \-combi\-modi \fImode1,mode2\fP ]
|
2012-06-29 17:29:23 +00:00
|
|
|
.SH DESCRIPTION
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2015-01-19 14:49:23 +00:00
|
|
|
\fBrofi\fP is an X11 popup window switcher, run dialog, dmenu replacement and more. It focusses on
|
|
|
|
being fast to use and have minimal distraction. It supports keyboard and mouse navigation, type to
|
|
|
|
filter, tokenized search and more.
|
2014-05-22 08:37:25 +00:00
|
|
|
.SH License
|
|
|
|
.PP
|
|
|
|
MIT/X11
|
2012-06-29 17:29:23 +00:00
|
|
|
.SH USAGE
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2014-08-01 21:29:01 +00:00
|
|
|
\fBrofi\fP can be used in two ways, single\-shot; executes once and directly exits when done or as
|
2014-05-22 08:37:25 +00:00
|
|
|
daemon listening to specific key\-combinations.
|
2015-04-05 19:49:55 +00:00
|
|
|
.SS Single\-shot mode
|
|
|
|
.PP
|
|
|
|
To launch \fBrofi\fP directly in a certain mode, specifying \fB\fCrofi \-show <mode>\fR\&.
|
|
|
|
To show the run dialog:
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
rofi \-show run
|
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.SS Deamon mode
|
|
|
|
.PP
|
|
|
|
To launch \fBrofi\fP in daemon mode don't specify a mode to show (\fB\fC\-show <mode>\fR), instead you can
|
|
|
|
bind keys to launch a certain mode. To have run mode open when pressing \fB\fCF2\fR start \fBrofi\fP like:
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
rofi \-key\-run F2
|
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.PP
|
|
|
|
Keybindings can also be specified in the \fB\fCXresources\fR file.
|
2012-06-29 17:29:23 +00:00
|
|
|
.SH OPTIONS
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2015-02-16 08:07:05 +00:00
|
|
|
\fB\fC\-key\-{mode}\fR \fBKEY\fP
|
2014-08-01 21:29:01 +00:00
|
|
|
.IP
|
2015-02-16 08:07:05 +00:00
|
|
|
Set the key combination to display a {mode} in daemon mode.
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
2015-02-15 20:15:16 +00:00
|
|
|
rofi \-key\-run F12
|
|
|
|
rofi \-key\-ssh control+shift+s
|
|
|
|
rofi \-key\-window mod1+Tab
|
2014-05-22 08:37:25 +00:00
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.PP
|
2014-10-20 18:29:26 +00:00
|
|
|
\fB\fC\-dmenu\fR
|
|
|
|
.IP
|
|
|
|
Run rofi in dmenu mode. Allowing it to be used for user interaction in scripts.
|
|
|
|
.IP
|
|
|
|
Pressing \fB\fCshift\-enter\fR will open the selected entries and move to the next entry.
|
|
|
|
.PP
|
|
|
|
\fB\fC\-show\fR \fImode\fP
|
|
|
|
.IP
|
|
|
|
Open rofi in a certain mode.
|
|
|
|
.IP
|
|
|
|
For example to show the run\-dialog:
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
rofi \-show run
|
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.IP
|
|
|
|
This function deprecates \-rnow,\-snow and \-now
|
|
|
|
.PP
|
|
|
|
\fB\fC\-switchers\fR \fImode1,mode1\fP
|
2015-02-23 07:39:29 +00:00
|
|
|
\fB\fC\-modi\fR \fImode1,mode1\fP
|
2014-10-20 18:29:26 +00:00
|
|
|
.IP
|
|
|
|
Give a comma separated list of modes to enable, in what order.
|
|
|
|
.IP
|
2015-02-23 07:39:29 +00:00
|
|
|
For example to only show the run and ssh launcher (in that order):
|
2014-10-20 18:29:26 +00:00
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
2015-02-23 07:39:29 +00:00
|
|
|
rofi \-modi "run,ssh" \-show run
|
2014-10-20 18:29:26 +00:00
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.IP
|
|
|
|
Custom modes can be added using the internal 'script' mode. Each mode has two parameters:
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
<name>:<script>
|
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.IP
|
|
|
|
So to have a mode 'Workspaces' using the \fB\fCi3_switch_workspace.sh\fR script type:
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
2015-02-23 07:39:29 +00:00
|
|
|
rofi \-modi "window,run,ssh,Workspaces:i3_switch_workspaces.sh" \-show Workspaces
|
2014-10-20 18:29:26 +00:00
|
|
|
.fi
|
|
|
|
.RE
|
2015-01-12 13:13:46 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-case\-sensitive\fR
|
|
|
|
.IP
|
|
|
|
Start in case sensitive mode.
|
2014-10-20 18:29:26 +00:00
|
|
|
.SS Theming
|
|
|
|
.PP
|
2014-05-22 08:37:25 +00:00
|
|
|
\fB\fC\-bg\fR
|
2014-08-01 21:29:01 +00:00
|
|
|
.IP
|
2015-01-19 14:49:23 +00:00
|
|
|
Set the background text color (X11 named color or hex #rrggbb) for the menu.
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2012-06-29 17:29:23 +00:00
|
|
|
.RS
|
2014-05-22 08:37:25 +00:00
|
|
|
.nf
|
2015-01-12 18:16:28 +00:00
|
|
|
rofi \-bg "#222222"
|
|
|
|
.fi
|
|
|
|
.RE
|
2015-01-19 14:49:23 +00:00
|
|
|
.IP
|
|
|
|
Default: \fI#f2f1f0\fP
|
2015-01-12 18:16:28 +00:00
|
|
|
.PP
|
2015-01-19 14:49:23 +00:00
|
|
|
\fB\fC\-bgalt\fR
|
2015-01-12 18:16:28 +00:00
|
|
|
.IP
|
2015-01-19 14:49:23 +00:00
|
|
|
Set the background text color for alternating rows (X11 named color or hex #rrggbb) for the menu.
|
2015-01-12 18:16:28 +00:00
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
rofi \-bgalt "#222222"
|
2014-05-22 08:37:25 +00:00
|
|
|
.fi
|
2012-06-29 17:29:23 +00:00
|
|
|
.RE
|
2015-01-19 14:49:23 +00:00
|
|
|
.IP
|
|
|
|
Default: \fI#f2f1f0\fP
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-bc\fR
|
2014-08-01 21:29:01 +00:00
|
|
|
.IP
|
2015-01-19 14:49:23 +00:00
|
|
|
Set the border color (X11 named color or hex #rrggbb) for the menu.
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2012-07-18 12:14:13 +00:00
|
|
|
.RS
|
2014-05-22 08:37:25 +00:00
|
|
|
.nf
|
2014-08-01 21:29:01 +00:00
|
|
|
rofi \-bc black
|
2014-05-22 08:37:25 +00:00
|
|
|
.fi
|
2012-07-18 12:14:13 +00:00
|
|
|
.RE
|
2015-01-19 14:49:23 +00:00
|
|
|
.IP
|
|
|
|
Default: \fIblack\fP
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-bw\fR
|
2014-08-01 21:29:01 +00:00
|
|
|
.IP
|
2015-01-19 14:49:23 +00:00
|
|
|
Set the border width in pixels.
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2012-07-18 12:14:13 +00:00
|
|
|
.RS
|
2014-05-22 08:37:25 +00:00
|
|
|
.nf
|
2014-08-01 21:29:01 +00:00
|
|
|
rofi \-bw 1
|
2014-05-22 08:37:25 +00:00
|
|
|
.fi
|
2012-07-18 12:14:13 +00:00
|
|
|
.RE
|
2015-01-19 14:49:23 +00:00
|
|
|
.IP
|
|
|
|
Default: \fI1\fP
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-fg\fR
|
2014-08-01 21:29:01 +00:00
|
|
|
.IP
|
2015-01-19 14:49:23 +00:00
|
|
|
Set the foreground text color (X11 named color or hex #rrggbb) for the menu.
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2012-06-29 17:29:23 +00:00
|
|
|
.RS
|
2014-05-22 08:37:25 +00:00
|
|
|
.nf
|
2014-08-01 21:29:01 +00:00
|
|
|
rofi \-fg "#cccccc"
|
2014-05-22 08:37:25 +00:00
|
|
|
.fi
|
2012-06-29 17:29:23 +00:00
|
|
|
.RE
|
2014-08-01 21:29:01 +00:00
|
|
|
.IP
|
2015-01-19 14:49:23 +00:00
|
|
|
Default: \fI#222222\fP
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2015-04-04 14:46:30 +00:00
|
|
|
\fB\fC\-fg\-urgent\fR
|
|
|
|
.IP
|
|
|
|
Set the foreground text color (X11 named color or hex #rrggbb) for the menu.
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
rofi \-fg\-urgent "#ffcccc"
|
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.IP
|
|
|
|
Default: \fI#ff2222\fP
|
|
|
|
.PP
|
|
|
|
\fB\fC\-fg\-active\fR
|
|
|
|
.IP
|
|
|
|
Set the foreground text color (X11 named color or hex #rrggbb) for the menu.
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
rofi \-fg\-active "#ccccff"
|
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.IP
|
|
|
|
Default: \fI#2222ff\fP
|
|
|
|
.PP
|
2014-05-22 08:37:25 +00:00
|
|
|
\fB\fC\-hlbg\fR
|
2014-08-01 21:29:01 +00:00
|
|
|
.IP
|
|
|
|
Set the background text color (X11 named color or hex #rrggbb) for the highlighted item in the
|
2015-01-19 14:49:23 +00:00
|
|
|
menu.
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2012-06-29 17:29:23 +00:00
|
|
|
.RS
|
2014-05-22 08:37:25 +00:00
|
|
|
.nf
|
2015-02-06 07:45:21 +00:00
|
|
|
rofi \-hlbg "#005577"
|
2014-05-22 08:37:25 +00:00
|
|
|
.fi
|
2012-06-29 17:29:23 +00:00
|
|
|
.RE
|
2015-01-19 14:49:23 +00:00
|
|
|
.IP
|
|
|
|
Default: \fI#005577\fP
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-hlfg\fR
|
2014-08-01 21:29:01 +00:00
|
|
|
.IP
|
|
|
|
Set the foreground text color (X11 named color or hex #rrggbb) for the highlighted item in the
|
2015-01-19 14:49:23 +00:00
|
|
|
menu.
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2012-06-29 17:29:23 +00:00
|
|
|
.RS
|
2014-05-22 08:37:25 +00:00
|
|
|
.nf
|
2015-02-06 07:45:21 +00:00
|
|
|
rofi \-hlfg "#ffffff"
|
2014-05-22 08:37:25 +00:00
|
|
|
.fi
|
2012-06-29 17:29:23 +00:00
|
|
|
.RE
|
2015-01-19 14:49:23 +00:00
|
|
|
.IP
|
|
|
|
Default: \fI#FFFFFF\fP
|
|
|
|
.PP
|
|
|
|
\fB\fC\-font\fR
|
|
|
|
.IP
|
|
|
|
Pango font name for use by the menu.
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
rofi \-font monospace\\ 14
|
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.IP
|
|
|
|
Default: \fImono 12\fP
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-opacity\fR
|
2014-08-01 21:29:01 +00:00
|
|
|
.IP
|
|
|
|
Set the window opacity (0\-100).
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2013-01-20 13:20:05 +00:00
|
|
|
.RS
|
2014-05-22 08:37:25 +00:00
|
|
|
.nf
|
2014-08-01 21:29:01 +00:00
|
|
|
rofi \-opacity "75"
|
2014-05-22 08:37:25 +00:00
|
|
|
.fi
|
2013-01-20 13:20:05 +00:00
|
|
|
.RE
|
2015-01-19 14:49:23 +00:00
|
|
|
.IP
|
|
|
|
Default: \fI100\fP
|
|
|
|
.PP
|
|
|
|
\fB\fC\-eh\fR \fIelement height\fP
|
|
|
|
.IP
|
|
|
|
The height of a field in lines. e.g.
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
echo \-e "a\\n3|b\\n4|c\\n5" | rofi \-sep '|' \-eh 2 \-dmenu
|
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.IP
|
|
|
|
Default: \fI1\fP
|
2014-10-20 18:29:26 +00:00
|
|
|
.SS Layout
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-lines\fR
|
2014-08-01 21:29:01 +00:00
|
|
|
.IP
|
2015-01-19 14:49:23 +00:00
|
|
|
Maximum number of lines the menu may show before scrolling.
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2012-06-29 17:29:23 +00:00
|
|
|
.RS
|
2014-05-22 08:37:25 +00:00
|
|
|
.nf
|
2014-08-01 21:29:01 +00:00
|
|
|
rofi \-lines 25
|
2014-05-22 08:37:25 +00:00
|
|
|
.fi
|
2012-06-29 17:29:23 +00:00
|
|
|
.RE
|
2015-01-19 14:49:23 +00:00
|
|
|
.IP
|
|
|
|
Default: \fI15\fP
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-columns\fR
|
2014-08-01 21:29:01 +00:00
|
|
|
.IP
|
2015-01-19 14:49:23 +00:00
|
|
|
The number of columns the menu may show before scrolling.
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2014-05-21 22:38:14 +00:00
|
|
|
.RS
|
2014-05-22 08:37:25 +00:00
|
|
|
.nf
|
2014-08-01 21:29:01 +00:00
|
|
|
rofi \-columns 2
|
2014-05-22 08:37:25 +00:00
|
|
|
.fi
|
2014-05-21 22:38:14 +00:00
|
|
|
.RE
|
2015-01-19 14:49:23 +00:00
|
|
|
.IP
|
|
|
|
Default: \fI1\fP
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2014-08-14 19:16:42 +00:00
|
|
|
\fB\fC\-width\fR [value]
|
2014-08-01 21:29:01 +00:00
|
|
|
.IP
|
2015-01-19 14:49:23 +00:00
|
|
|
Set the width of the menu as a percentage of the screen width.
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2012-06-29 17:29:23 +00:00
|
|
|
.RS
|
2014-05-22 08:37:25 +00:00
|
|
|
.nf
|
2014-08-01 21:29:01 +00:00
|
|
|
rofi \-width 60
|
2014-05-22 08:37:25 +00:00
|
|
|
.fi
|
2012-06-29 17:29:23 +00:00
|
|
|
.RE
|
2014-08-14 19:16:42 +00:00
|
|
|
.IP
|
|
|
|
If value is larger then 100, the size is set in pixels. e.g. to span a full hd monitor:
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
2015-02-06 07:45:21 +00:00
|
|
|
rofi \-width 1920
|
2014-08-14 19:16:42 +00:00
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.IP
|
|
|
|
If the value is negative, it tries to estimates a character width. To show 30 characters on a row:
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
2014-10-20 18:29:26 +00:00
|
|
|
rofi \-width \-30
|
2014-08-14 19:16:42 +00:00
|
|
|
.fi
|
|
|
|
.RE
|
2014-08-01 21:29:01 +00:00
|
|
|
.IP
|
2014-10-20 18:29:26 +00:00
|
|
|
Character width is a rough estimation, and might not be correct, but should work for most monospaced fonts.
|
2015-01-19 14:49:23 +00:00
|
|
|
.IP
|
|
|
|
Default: \fI50\fP
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2014-07-24 18:38:21 +00:00
|
|
|
\fB\fC\-location\fR
|
2014-08-01 21:29:01 +00:00
|
|
|
.IP
|
|
|
|
Specify where the window should be located. The numbers map to the following location on the
|
|
|
|
monitor:
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
2014-08-01 21:29:01 +00:00
|
|
|
1 2 3
|
|
|
|
8 0 4
|
|
|
|
7 6 5
|
2014-05-22 08:37:25 +00:00
|
|
|
.fi
|
|
|
|
.RE
|
2015-01-19 14:49:23 +00:00
|
|
|
.IP
|
|
|
|
Default: \fI0\fP
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-fixed\-num\-lines\fR
|
2014-08-01 21:29:01 +00:00
|
|
|
.IP
|
|
|
|
Keep a fixed number of visible lines (See the \fB\fC\-lines\fR option.)
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-padding\fR
|
2014-08-01 21:29:01 +00:00
|
|
|
.IP
|
2015-01-19 14:49:23 +00:00
|
|
|
Define the inner margin of the window.
|
2014-08-01 21:29:01 +00:00
|
|
|
.IP
|
2015-01-19 14:49:23 +00:00
|
|
|
Default: \fI5\fP
|
2014-11-09 12:10:24 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-sidebar\-mode\fR
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
Go into side\-bar mode, it will show list of modi at the bottom.
|
|
|
|
To show sidebar use:
|
2015-03-30 19:05:13 +00:00
|
|
|
rofi \-show run \-sidebar\-mode \-lines 0
|
2014-11-09 12:10:24 +00:00
|
|
|
.fi
|
|
|
|
.RE
|
2015-01-18 17:17:09 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-lazy\-filter\-limit\fR \fIlimit\fP
|
|
|
|
.PP
|
|
|
|
The number of entries required for Rofi to go into lazy filter mode.
|
|
|
|
In lazy filter mode, it won't refilter the list on each keypress, but only after rofi been idle
|
2015-01-19 14:49:23 +00:00
|
|
|
for 250ms. Experiments shows that the default (5000 lines) works well, set to 0 to always enable.
|
|
|
|
.PP
|
|
|
|
Default: \fI5000\fP
|
2015-02-24 16:34:25 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-auto\-select\fR
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
When one entry is left, automatically select this.
|
|
|
|
.fi
|
|
|
|
.RE
|
2015-01-19 14:49:23 +00:00
|
|
|
.SS PATTERN setting
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2014-10-20 18:29:26 +00:00
|
|
|
\fB\fC\-terminal\fR
|
2014-08-01 21:29:01 +00:00
|
|
|
.IP
|
2015-01-19 14:49:23 +00:00
|
|
|
Specify what terminal to start.
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2014-10-20 18:29:26 +00:00
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
rofi \-terminal xterm
|
|
|
|
.fi
|
|
|
|
.RE
|
2014-05-22 19:56:57 +00:00
|
|
|
.IP
|
2015-01-19 14:49:23 +00:00
|
|
|
Pattern: \fI{terminal}\fP
|
|
|
|
Default: \fIx\-terminal\-emulator\fP
|
2014-05-22 19:56:57 +00:00
|
|
|
.PP
|
2015-01-19 14:49:23 +00:00
|
|
|
\fB\fC\-ssh\-client\fR \fIclient\fP
|
2014-05-22 08:37:25 +00:00
|
|
|
.IP
|
2015-01-19 14:49:23 +00:00
|
|
|
Override the used ssh client.
|
2014-09-03 17:40:24 +00:00
|
|
|
.IP
|
2015-01-19 14:49:23 +00:00
|
|
|
Pattern: \fI{ssh\-client}\fP
|
|
|
|
Default: \fIssh\fP
|
|
|
|
.SS SSH settings
|
2014-09-03 17:40:24 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-ssh\-command\fR \fIcmd\fP
|
|
|
|
.IP
|
|
|
|
Set the command to execute when starting a ssh session.
|
2015-01-19 14:49:23 +00:00
|
|
|
The pattern \fI{host}\fP is replaced by the selected ssh entry.
|
|
|
|
.IP
|
|
|
|
Default: \fI{terminal} \-e {ssh\-client} {host}\fP
|
2015-03-29 10:27:00 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-parse\-hosts\fR
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
Parse the `/etc/hosts` files for entries.
|
|
|
|
.fi
|
|
|
|
.RE
|
2014-10-20 18:29:26 +00:00
|
|
|
.SS Run settings
|
2014-09-03 17:40:24 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-run\-command\fR \fIcmd\fP
|
|
|
|
.IP
|
2015-01-19 14:49:23 +00:00
|
|
|
Set the command (\fI{cmd}\fP) to execute when running an application.
|
2014-09-03 17:40:24 +00:00
|
|
|
See \fIPATTERN\fP\&.
|
2015-01-19 14:49:23 +00:00
|
|
|
.IP
|
|
|
|
Default: \fI{cmd}\fP
|
2014-09-03 17:40:24 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-run\-shell\-command\fR \fIcmd\fP
|
|
|
|
.IP
|
|
|
|
Set the command to execute when running an application in a shell.
|
|
|
|
See \fIPATTERN\fP\&.
|
2015-01-19 14:49:23 +00:00
|
|
|
.IP
|
|
|
|
Default: \fI{terminal} \-e {cmd}\fP
|
2015-01-05 20:53:50 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-run\-list\-command\fR \fIcmd\fP
|
|
|
|
.IP
|
|
|
|
If set, use an external tool to generate list of executable commands. Uses 'run\-command'
|
2015-01-19 14:49:23 +00:00
|
|
|
.IP
|
|
|
|
Default: \fI""\fP
|
2015-04-01 12:49:27 +00:00
|
|
|
.SS Combi settings
|
|
|
|
.PP
|
|
|
|
\fB\fC\-combi\-modi\fR \fImode1,mode2\fP
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
The modi to combine in the combi mode.
|
|
|
|
For syntax to see `\-modi`.
|
|
|
|
To get one merge view, of window,run,ssh:
|
|
|
|
rofi \-show combi \-combi\-mode "window,run,ssh"
|
|
|
|
.fi
|
|
|
|
.RE
|
2014-10-20 18:29:26 +00:00
|
|
|
.SS History and Sorting
|
2014-06-05 19:55:47 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-disable\-history\fR
|
|
|
|
.IP
|
|
|
|
Disable history
|
2014-07-16 18:06:48 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-levenshtein\-sort\fR
|
|
|
|
.IP
|
|
|
|
When searching sort the result based on levenshtein distance.
|
2014-08-21 20:37:13 +00:00
|
|
|
.IP
|
|
|
|
Note that levenshtein sort is disabled in dmenu mode.
|
2014-10-20 18:29:26 +00:00
|
|
|
.SS Dmenu specific
|
2014-07-21 19:39:24 +00:00
|
|
|
.PP
|
2014-10-20 18:29:26 +00:00
|
|
|
\fB\fC\-sep\fR \fIseparator\fP
|
2014-07-21 19:39:24 +00:00
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
2014-10-20 18:29:26 +00:00
|
|
|
Separator for dmenu. For example to show list a to e with '|' as separator:
|
|
|
|
echo "a|b|c|d|e" | rofi \-sep '|' \-dmenu
|
2014-07-21 19:39:24 +00:00
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.PP
|
2014-10-20 18:29:26 +00:00
|
|
|
\fB\fC\-p\fR \fIprompt\fP
|
2014-07-21 19:39:24 +00:00
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
2014-10-20 18:29:26 +00:00
|
|
|
Specify the prompt to show in dmenu mode. E.g. select monkey a,b,c,d or e.
|
|
|
|
echo "a|b|c|d|e" | rofi \-sep '|' \-dmenu \-p "monkey:"
|
2015-01-19 14:49:23 +00:00
|
|
|
Default: *dmenu*
|
2014-11-02 11:58:57 +00:00
|
|
|
.fi
|
|
|
|
.RE
|
2014-12-16 20:08:12 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-l\fR \fIselected line\fP
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
Select a certain line.
|
2015-01-19 14:49:23 +00:00
|
|
|
Default: *0*
|
2014-12-16 20:08:12 +00:00
|
|
|
.fi
|
|
|
|
.RE
|
2015-03-11 17:05:39 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-i\fR
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
Number mode, return the index of the selected row. (starting at 0)
|
|
|
|
.fi
|
|
|
|
.RE
|
2015-04-04 14:46:30 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-a\fR \fIX\fP
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
Active row, mark row X as active. (starting at 0)
|
2015-04-05 09:53:08 +00:00
|
|
|
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-04-04 14:46:30 +00:00
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.PP
|
|
|
|
\fB\fC\-u\fR \fIX\fP
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
Urgent row, mark row X as urgent. (starting at 0)
|
2015-04-05 09:53:08 +00:00
|
|
|
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-04-04 14:46:30 +00:00
|
|
|
.fi
|
|
|
|
.RE
|
2014-10-20 18:29:26 +00:00
|
|
|
.SS Message dialog
|
2014-08-27 17:48:54 +00:00
|
|
|
.PP
|
|
|
|
\fB\fC\-e\fR \fImessage\fP
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
Popup a message dialog (used internally for showing errors) with *message*.
|
2014-10-20 18:29:26 +00:00
|
|
|
Message can be multi\-line.
|
2014-08-27 17:48:54 +00:00
|
|
|
.fi
|
|
|
|
.RE
|
2015-01-31 17:23:17 +00:00
|
|
|
.SS Other
|
|
|
|
.PP
|
|
|
|
\&'\-pid' \fIpath\fP
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
Make **rofi** create a pid file and check this on startup. Avoiding multiple copies running
|
|
|
|
simultaneous. This is useful when running rofi from a keybinding daemon.
|
|
|
|
.fi
|
|
|
|
.RE
|
2014-10-20 18:31:15 +00:00
|
|
|
.SS Debug
|
2014-10-19 17:42:02 +00:00
|
|
|
.PP
|
2014-10-20 18:29:26 +00:00
|
|
|
\fB\fC\-dump\-xresources\fR
|
|
|
|
.IP
|
|
|
|
Dump the current active configuration in xresources format to the command\-line.
|
2015-01-19 14:49:23 +00:00
|
|
|
.SH PATTERN
|
2014-09-03 17:40:24 +00:00
|
|
|
.PP
|
2015-02-23 07:39:29 +00:00
|
|
|
To launch commands (e.g. when using the ssh launcher) the user can enter the used commandline,
|
2014-09-03 17:40:24 +00:00
|
|
|
the following keys can be used that will be replaced at runtime:
|
|
|
|
.RS
|
|
|
|
.IP \(bu 2
|
|
|
|
\fB\fC{host}\fR: The host to connect to.
|
|
|
|
.IP \(bu 2
|
|
|
|
\fB\fC{terminal}\fR: The configured terminal (See \-terminal\-emulator)
|
|
|
|
.IP \(bu 2
|
|
|
|
\fB\fC{ssh\-client}\fR: The configured ssh client (See \-ssh\-client)
|
|
|
|
.IP \(bu 2
|
|
|
|
\fB\fC{cmd}\fR: The command to execute.
|
|
|
|
.RE
|
2014-11-05 09:27:46 +00:00
|
|
|
.SH Dmenu replacemnt
|
|
|
|
.PP
|
|
|
|
If \fB\fCargv[0]\fR (calling command) is dmenu, \fBrofi\fP will start in dmenu mode.
|
|
|
|
This way it can be used as a drop\-in replacement for dmenu. just copy or symlink \fBrofi\fP to dmenu in \fB\fC$PATH\fR\&.
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
ln \-s /usr/bin/dmenu /usr/bin/rofi
|
|
|
|
.fi
|
|
|
|
.RE
|
2014-11-05 09:52:10 +00:00
|
|
|
.SH Signals
|
|
|
|
.PP
|
|
|
|
\fB\fCHUP\fR
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
2015-01-19 14:49:23 +00:00
|
|
|
If in daemon mode, reload the configuration from Xresources. (commandline arguments still
|
2014-11-05 09:52:10 +00:00
|
|
|
.fi
|
|
|
|
.RE
|
2015-01-19 14:49:23 +00:00
|
|
|
.PP
|
|
|
|
override xresources).
|
2015-01-22 14:25:40 +00:00
|
|
|
.SH Colors
|
|
|
|
.PP
|
|
|
|
Rofi has an experimental mode for a 'nicer' transparency. The idea is that you can make the
|
2015-01-27 09:02:12 +00:00
|
|
|
background of the window transparent but the text not. This way, in contrast to the \fB\fC\-opacity\fR
|
2015-01-22 14:25:40 +00:00
|
|
|
option, the text is still fully visible and readable.
|
|
|
|
To use this there are 2 requirements: 1. Your Xserver supports TrueColor, 2. You are running a
|
|
|
|
composite manager. If this is satisfied you can use the following format for colors:
|
|
|
|
.PP
|
|
|
|
argb:FF444444
|
|
|
|
.PP
|
|
|
|
The first two fields specify the alpha level. This determines how much the background shines through
|
|
|
|
the color (00 everything, FF nothing). E.g. 'argb:00FF0000' gives you a bright red color with the
|
|
|
|
background shining through. If you want a dark greenish transparent color use: 'argb:dd2c3311'. This
|
2015-01-27 09:02:12 +00:00
|
|
|
can be done for any color; it is therefore possible to have solid borders, the selected row solid,
|
2015-01-22 14:25:40 +00:00
|
|
|
and the others slightly transparent.
|
2014-08-05 18:09:39 +00:00
|
|
|
.SH Keybindings
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2014-08-05 18:09:39 +00:00
|
|
|
Rofi supports the following keybindings:
|
2014-08-03 19:51:31 +00:00
|
|
|
.RS
|
|
|
|
.IP \(bu 2
|
|
|
|
\fB\fCCtrl\-v, Insert\fR: Paste clipboard
|
|
|
|
.IP \(bu 2
|
|
|
|
\fB\fCCtrl\-Shift\-v, Shift\-Insert\fR: Paste primary selection
|
|
|
|
.IP \(bu 2
|
|
|
|
\fB\fCCtrl\-u\fR: Clear the line
|
|
|
|
.IP \(bu 2
|
|
|
|
\fB\fCCtrl\-a\fR: Beginning of line
|
|
|
|
.IP \(bu 2
|
|
|
|
\fB\fCCtrl\-e\fR: End of line
|
|
|
|
.IP \(bu 2
|
|
|
|
\fB\fCCtrl\-f, Right\fR: Forward one character
|
|
|
|
.IP \(bu 2
|
2015-02-07 15:42:42 +00:00
|
|
|
\fB\fCAlt\-f\fR: Forward one word
|
|
|
|
.IP \(bu 2
|
2014-08-03 19:51:31 +00:00
|
|
|
\fB\fCCtrl\-b, Left\fR: Back one character
|
|
|
|
.IP \(bu 2
|
2015-02-07 15:42:42 +00:00
|
|
|
\fB\fCAlt\-b\fR: Back one word
|
|
|
|
.IP \(bu 2
|
2014-08-03 19:51:31 +00:00
|
|
|
\fB\fCCtrl\-d, Delete\fR: Delete character
|
|
|
|
.IP \(bu 2
|
2015-02-07 15:42:42 +00:00
|
|
|
`Ctrl\-Alt\-d': Delete word
|
|
|
|
.IP \(bu 2
|
2014-08-03 19:51:31 +00:00
|
|
|
\fB\fCCtrl\-h, Backspace\fR: Backspace (delete previous character)
|
|
|
|
.IP \(bu 2
|
2015-02-07 15:42:42 +00:00
|
|
|
\fB\fCCtrl\-Alt\-h\fR: Delete previous word
|
|
|
|
.IP \(bu 2
|
2014-08-03 19:51:31 +00:00
|
|
|
\fB\fCCtrl\-j,Ctrl\-m,Enter\fR: Accept entry
|
|
|
|
.IP \(bu 2
|
|
|
|
\fB\fCCtrl\-n,Down\fR: Select next entry
|
|
|
|
.IP \(bu 2
|
|
|
|
\fB\fCCtrl\-p,Up\fR: Select previous entry
|
|
|
|
.IP \(bu 2
|
|
|
|
\fB\fCPage Up\fR: Go to the previous page
|
|
|
|
.IP \(bu 2
|
|
|
|
\fB\fCPage Down\fR: Go to the next page
|
|
|
|
.IP \(bu 2
|
|
|
|
\fB\fCCtrl\-Page Up\fR: Go to the previous column
|
|
|
|
.IP \(bu 2
|
|
|
|
\fB\fCCtrl\-Page Down\fR: Go to the next column
|
2014-08-05 18:09:39 +00:00
|
|
|
.IP \(bu 2
|
2015-02-23 07:39:29 +00:00
|
|
|
\fB\fCCtrl\-Enter\fR: Use entered text as command (in ssh/run modi)
|
2014-11-29 15:35:43 +00:00
|
|
|
.IP \(bu 2
|
2015-02-23 07:39:29 +00:00
|
|
|
\fB\fCShift\-Enter\fR: Launch the application in a terminal (in run mode)
|
2015-01-23 19:07:56 +00:00
|
|
|
.IP \(bu 2
|
|
|
|
\fB\fCShift\-Enter\fR: Return the selected entry and move to the next item while keeping Rofi open. (in dmenu)
|
|
|
|
.IP \(bu 2
|
2015-02-06 07:45:21 +00:00
|
|
|
\fB\fCShift\-Right\fR: Switch to the next modi. The list can be customized with the \fB\fC\-switchers\fR argument.
|
2014-09-03 17:40:24 +00:00
|
|
|
.IP \(bu 2
|
2015-02-06 07:45:21 +00:00
|
|
|
\fB\fCShift\-Left\fR: Switch to the previous modi. The list can be customized with the \fB\fC\-switchers\fR argument.
|
2014-11-11 20:50:16 +00:00
|
|
|
.IP \(bu 2
|
2015-03-12 16:57:00 +00:00
|
|
|
\fB\fCCtrl\-Tab\fR: Switch to the next modi. The list can be customized with the \fB\fC\-switchers\fR argument.
|
|
|
|
.IP \(bu 2
|
|
|
|
\fB\fCCtrl\-Shift\-Tab\fR: Switch to the previous modi. The list can be customized with the \fB\fC\-switchers\fR argument.
|
|
|
|
.IP \(bu 2
|
2014-09-03 17:40:24 +00:00
|
|
|
\fB\fCCtrl\-space\fR: Set selected item as input text.
|
2014-12-24 15:16:24 +00:00
|
|
|
.IP \(bu 2
|
|
|
|
\fB\fCShift\-Del\fR: Delete entry from history.
|
2015-01-12 13:13:46 +00:00
|
|
|
.IP \(bu 2
|
|
|
|
\fB\fCgrave\fR: Toggle case sensitivity.
|
2014-08-03 19:51:31 +00:00
|
|
|
.RE
|
2014-11-08 12:51:41 +00:00
|
|
|
.SH FAQ
|
|
|
|
.PP
|
|
|
|
\fB\fCText in window switcher is not nicely lined out\fR
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
Try using a mono\-space font.
|
|
|
|
.fi
|
|
|
|
.RE
|
2014-12-07 15:04:22 +00:00
|
|
|
.PP
|
|
|
|
\fB\fCRofi is completely black.\fR
|
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
Check quotes used on the commandline: e.g. used “ instead of ".
|
|
|
|
.fi
|
|
|
|
.RE
|
2014-08-05 18:09:39 +00:00
|
|
|
.SH WEBSITE
|
|
|
|
.PP
|
|
|
|
\fBrofi\fP website can be found at here
|
2015-04-04 14:46:30 +00:00
|
|
|
.UR https://davedavenport.github.io/rofi/
|
|
|
|
.UE
|
2014-09-06 12:57:30 +00:00
|
|
|
.PP
|
|
|
|
\fBrofi\fP bugtracker can be found here
|
2015-04-04 14:46:30 +00:00
|
|
|
.UR https://github.com/DaveDavenport/rofi/issues
|
|
|
|
.UE
|
2012-06-29 17:29:23 +00:00
|
|
|
.SH AUTHOR
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2015-01-31 17:23:17 +00:00
|
|
|
Qball Cow
|
2015-04-04 14:46:30 +00:00
|
|
|
.MT qball@gmpclient.org
|
|
|
|
.ME
|
2014-05-22 08:37:25 +00:00
|
|
|
.PP
|
2015-01-31 17:23:17 +00:00
|
|
|
Original code based on work by: Sean Pringle
|
2015-04-04 14:46:30 +00:00
|
|
|
.MT sean.pringle@gmail.com
|
|
|
|
.ME
|