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

1325 lines
22 KiB
Groff
Raw Normal View History

2015-06-02 13:01:25 -04:00
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "ROFI\-MANPAGE" "" "June 2015" "" ""
.
.SH "NAME"
\fBrofi\fR \- A window switcher, run launcher, ssh dialog and dmenu replacement
.
.SH "SYNOPSIS"
\fBrofi\fR [ \-width \fIpct_scr\fR ] [ \-lines \fIlines\fR ] [ \-columns \fIcolumns\fR ] [ \-font \fIpangofont\fR ] [ \-fg \fIcolor\fR ] [ \-fg\-urgent \fIcolor\fR ] [ \-fg\-active \fIcolor\fR ] [ \-bg\-urgent \fIcolor\fR ] [ \-bg\-active \fIcolor\fR ] [ \-bg \fIcolor\fR ] [ \-bgalt \fIcolor\fR ] [ \-hlfg \fIcolor\fR ] [ \-hlbg \fIcolor\fR ] [ \-key\-\fBmode\fR \fIcombo\fR ] [ \-terminal \fIterminal\fR ] [ \-location \fIposition\fR ] [ \-fixed\-num\-lines ] [ \-padding \fIpadding\fR ] [ \-opacity \fIopacity%\fR ] [ \-display \fIdisplay\fR ] [ \-bc \fIcolor\fR ] [ \-bw \fIwidth\fR ] [ \-dmenu [ \-p \fIprompt\fR ] [ \-sep \fIseparator\fR ] [ \-l \fIselected line\fR ] [ \-mesg ] [ \-filter ] [ \-select ] ] [ \-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 ] [ \-auto\-select ] [ \-parse\-hosts ] [ \-combi\-modi \fImode1,mode2\fR ] [ \-quiet ]
.
.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"
\fBrofi\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"
To launch \fBrofi\fR directly in a certain mode, specifying \fBrofi \-show <mode>\fR\. To show the run dialog:
.
2015-06-26 10:33:13 -04:00
.P
```
.
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-06-26 10:33:13 -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
.
2015-06-26 10:33:13 -04:00
.P
```
.
2015-06-02 13:01:25 -04:00
.SS "Daemon mode"
To launch \fBrofi\fR in daemon mode don\'t specify a mode to show (\fB\-show <mode>\fR), instead you can bind keys to launch a certain mode\. To have run mode open when pressing \fBF2\fR start \fBrofi\fR like:
.
2015-06-26 10:33:13 -04:00
.P
```
.
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-06-26 10:33:13 -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-06-26 10:33:13 -04:00
\fB`` Keybindings can also be specified in the\fRXresources` file\.
2015-06-02 13:01:25 -04:00
.
.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 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 \fIhttps://en\.wikipedia\.org/wiki/X_resources\fR for more information\. This is the recommended way of configuring \fBrofi\fR\.
.
.IP "\(bu" 4
Command\-line options: Arguments passed to \fBrofi\fR\.
.
.IP "" 0
.
.P
The Xresources options and the command\-line options are aliased\. So to set option X you would set:
.
.IP "" 4
.
.nf
2015-06-02 13:01:25 -04:00
rofi\.X: value
.
.fi
.
.IP "" 0
.
.P
In the Xresources file, and to (override) this via the command\-line you would pass the same key prefixed with a \'\-\':
.
.IP "" 4
.
.nf
rofi \-X value
2015-06-02 13:01:25 -04:00
.
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
To get a list of available options, formatted as Xresources entries run:
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
.nf
2015-06-02 13:01:25 -04:00
2015-04-25 11:40:01 -04:00
rofi \-dump\-Xresources
2015-06-02 13:01:25 -04:00
.
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
The configuration system supports the following types:
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
String
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
Integer (signed and unsigned)
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
Char
2015-06-02 13:01:25 -04:00
.
.IP "\(bu" 4
Boolean
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
The boolean option has a non\-default command\-line syntax, to enable option X you do:
.
.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
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
Below is a list of the most important options:
2015-06-02 13:01:25 -04:00
.
.SS "General"
\fB\-key\-{mode}\fR \fBKEY\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
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
Run \fBrofi\fR in dmenu mode\. Allowing it to be used for user interaction in scripts\.
.
.P
In \fBdmenu\fR mode, \fBrofi\fR will read input from STDIN, and will output to STDOUT by default\.
.
.P
2015-04-07 21:50:57 -04:00
Example to let the user choose between three pre\-defined options:
2015-06-02 13:01:25 -04:00
.
.IP "" 4
.
2015-04-07 21:50:57 -04:00
.nf
2015-06-02 13:01:25 -04:00
echo \-e "Option #1\enOption #2\enOption #3" | rofi \-dmenu
.
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
~/my_script\.sh | rofi \-dmenu
.
.fi
.
.IP "" 0
.
.P
Pressing \fBshift\-enter\fR will open the selected entries and move to the next entry\.
.
.P
\fB\-show\fR \fImode\fR
.
.P
Open \fBrofi\fR in a certain mode\.
.
.P
2014-10-20 14:29:26 -04:00
For example 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
2014-10-20 14:29:26 -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
2014-10-20 14:29:26 -04:00
This function deprecates \-rnow,\-snow and \-now
2015-06-02 13:01:25 -04:00
.
.P
\fB\-switchers\fR \fImode1,mode1\fR \fB\-modi\fR \fImode1,mode1\fR
.
.P
Give a comma separated list of modes to enable, in what order\.
.
.P
For example to only show the run and ssh launcher (in that order):
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
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
2014-10-20 14:29:26 -04:00
<name>:<script>
2015-06-02 13:01:25 -04:00
.
.fi
.
.IP "" 0
.
.P
So to have a mode \'Workspaces\' using the \fBi3_switch_workspace\.sh\fR script type:
.
.IP "" 4
.
.nf
rofi \-modi "window,run,ssh,Workspaces:i3_switch_workspaces\.sh" \-show Workspaces
.
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\.
.
.SS "Theming"
\fB\-bg\fR
.
.P
\fB\-bg\-active\fR
.
.P
\fB\-bg\-urgent\fR
.
.P
Set the background text color (X11 named color or hex #rrggbb) for the menu\.
.
.IP "" 4
.
2014-05-22 04:37:25 -04:00
.nf
2015-06-02 13:01:25 -04:00
rofi \-bg "#222222"
2015-06-02 13:01:25 -04:00
.
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
Default: \fI#f2f1f0\fR
.
.P
\fB\-bgalt\fR
.
.P
Set the background text color for alternating rows (X11 named color or hex #rrggbb) for the menu\.
.
.IP "" 4
.
.nf
2015-06-02 13:01:25 -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
Set the border color (X11 named color or hex #rrggbb) for the menu\.
.
.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
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: \fIblack\fR
.
.P
\fB\-bw\fR
.
.P
Set the border width in pixels\.
.
.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
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: \fI1\fR
.
.P
\fB\-fg\fR
.
.P
\fB\-fg\-urgent\fR
.
.P
\fB\-fg\-active\fR
.
.P
Set the foreground text color (X11 named color or hex #rrggbb) for the menu\.
.
.IP "" 4
.
2015-04-04 10:46:30 -04:00
.nf
2015-06-02 13:01:25 -04:00
2015-04-06 09:23:58 -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
Set the background text color (X11 named color or hex #rrggbb) for the highlighted item in the menu\.
.
.IP "" 4
.
2014-05-22 04:37:25 -04:00
.nf
2015-06-02 13:01:25 -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
Set the foreground text color (X11 named color or hex #rrggbb) for the highlighted item in the menu\.
.
.IP "" 4
.
2014-05-22 04:37:25 -04:00
.nf
2015-06-02 13:01:25 -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
Pango font name for use by the menu\.
.
.IP "" 4
.
2014-05-22 04:37:25 -04:00
.nf
2015-06-02 13:01:25 -04:00
rofi \-font monospace\e 14
.
.fi
.
.IP "" 0
.
.P
Default: \fImono 12\fR
.
.P
\fB\-opacity\fR
.
.P
Set the window opacity (0\-100)\.
.
.IP "" 4
.
.nf
2014-08-01 17:29:01 -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: \fI100\fR
.
.P
\fB\-eh\fR \fIelement height\fR
.
.P
The height of a field in lines\. e\.g\.
.
.IP "" 4
.
.nf
echo \-e "a\en3|b\en4|c\en5" | rofi \-sep \'|\' \-eh 2 \-dmenu
.
.fi
.
.IP "" 0
.
.P
Default: \fI1\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
.
.IP "" 4
.
2014-05-22 04:37:25 -04:00
.nf
2015-06-02 13:01:25 -04:00
Enable the exteneded coloring options\.
.
.fi
.
.IP "" 0
.
.P
\fB\-color\-window\fR \fIbackground\fR \fIborder color\fR
.
.IP "" 4
.
.nf
Set window background and border color\.
.
.fi
.
.IP "" 0
.
.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
.
.IP "" 4
.
.nf
Specify the colors used in a row per state (normal, active, urgent)\.
.
.fi
.
.IP "" 0
.
.SS "Layout"
\fB\-lines\fR
.
.P
Maximum number of lines the menu may show before scrolling\.
.
.IP "" 4
.
.nf
2014-08-01 17:29:01 -04:00
rofi \-lines 25
2015-06-02 13:01:25 -04:00
.
2014-05-22 04:37:25 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
Default: \fI15\fR
.
.P
\fB\-columns\fR
.
.P
The number of columns the menu may show before scrolling\.
.
.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
rofi \-columns 2
2015-06-02 13:01:25 -04:00
.
2014-05-22 04:37:25 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
Default: \fI1\fR
.
.P
\fB\-width\fR [value]
.
.P
Set the width of the menu as a percentage of the screen width\.
.
.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
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
If value is larger then 100, the size is set in pixels\. e\.g\. to span a full hd monitor:
.
.IP "" 4
.
2014-08-14 15:16:42 -04:00
.nf
2015-06-02 13:01:25 -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
If the value is negative, it tries to estimates a character width\. To show 30 characters on a row:
.
.IP "" 4
.
2014-08-14 15:16:42 -04:00
.nf
2015-06-02 13:01:25 -04:00
2014-10-20 14:29:26 -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: \fI50\fR
.
.P
\fB\-location\fR
.
.P
Specify where the window should be located\. The numbers map to the following location on the monitor:
.
.IP "" 4
.
2014-05-22 04:37:25 -04:00
.nf
2015-06-02 13:01:25 -04:00
2014-08-01 17:29:01 -04:00
1 2 3
8 0 4
7 6 5
2015-06-02 13:01:25 -04:00
.
2014-05-22 04:37:25 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
Default: \fI0\fR
.
.P
\fB\-fixed\-num\-lines\fR
.
.P
Keep a fixed number of visible lines (See the \fB\-lines\fR option\.)
.
.P
\fB\-padding\fR
.
.P
Define the inner margin of the window\.
.
.P
Default: \fI5\fR
.
.P
\fB\-sidebar\-mode\fR
.
.IP "" 4
.
.nf
Go into side\-bar mode, it will show list of modi at the bottom\.
2014-11-09 07:10:24 -05:00
To show sidebar use:
2015-06-02 13:01:25 -04:00
2015-03-30 15:05:13 -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 \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
.
.IP "" 4
.
.nf
When one entry is left, automatically select this\.
.
2014-11-09 07:10:24 -05:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.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
2014-10-20 14:29:26 -04:00
rofi \-terminal xterm
2015-06-02 13:01:25 -04:00
.
.fi
.
.IP "" 0
.
.P
Pattern: \fI{terminal}\fR Default: \fIx\-terminal\-emulator\fR
.
.P
\fB\-ssh\-client\fR \fIclient\fR
.
.P
Override the used ssh client\.
.
.P
Pattern: \fI{ssh\-client}\fR Default: \fIssh\fR
.
.SS "SSH settings"
\fB\-ssh\-command\fR \fIcmd\fR
.
.P
Set the command to execute when starting a ssh session\. The pattern \fI{host}\fR is replaced by the selected ssh entry\.
.
.P
Default: \fI{terminal} \-e {ssh\-client} {host}\fR
.
.P
\fB\-parse\-hosts\fR
.
.IP "" 4
.
.nf
Parse the `/etc/hosts` files for entries\.
.
2014-10-20 14:29:26 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.SS "Run settings"
\fB\-run\-command\fR \fIcmd\fR
.
.P
Set the command (\fI{cmd}\fR) to execute when running an application\. See \fIPATTERN\fR\.
.
.P
Default: \fI{cmd}\fR
.
.P
\fB\-run\-shell\-command\fR \fIcmd\fR
.
.P
Set the command to execute when running an application in a shell\. See \fIPATTERN\fR\.
.
.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
.
.IP "" 4
.
.nf
The modi to combine in the combi mode\.
For syntax to see `\-modi`\.
2015-04-01 08:49:27 -04:00
To get one merge view, of window,run,ssh:
2015-06-02 13:01:25 -04:00
2015-06-01 09:57:56 -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 \fIseparator\fR
.
.IP "" 4
.
.nf
Separator for dmenu\. For example to show list a to e with \'|\' as separator:
echo "a|b|c|d|e" | rofi \-sep \'|\' \-dmenu
.
.fi
.
.IP "" 0
.
.P
\fB\-p\fR \fIprompt\fR
.
.IP "" 4
.
.nf
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:"
Default: *dmenu*
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
\fB\-l\fR \fIselected line\fR
.
.IP "" 4
.
.nf
2015-06-02 13:01:25 -04:00
Select a certain line\.
Default: *0*
2015-06-02 13:01:25 -04:00
.
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
\fB\-i\fR
.
.IP "" 4
.
.nf
2015-06-02 13:01:25 -04:00
Number mode, return the index of the selected row\. (starting at 0)
.
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
\fB\-a\fR \fIX\fR
.
.IP "" 4
.
2015-04-04 10:46:30 -04:00
.nf
2015-06-02 13:01:25 -04:00
Active row, mark row X as active\. (starting at 0)
You can specify single element: \-a 3
A range: \-a 3\-8
or a set of rows: \-a 0,2
Or any combination: \-a 0,2\-3,9
2015-06-02 13:01:25 -04:00
.
2015-04-04 10:46:30 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
\fB\-u\fR \fIX\fR
.
.IP "" 4
.
2015-04-04 10:46:30 -04:00
.nf
2015-06-02 13:01:25 -04:00
Urgent row, mark row X as urgent\. (starting at 0)
You can specify single element: \-u 3
A range: \-u 3\-8
or a set of rows: \-u 0,2
Or any combination: \-u 0,2\-3,9
2015-06-02 13:01:25 -04:00
.
2015-04-04 10:46:30 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
\fB\-only\-match\fR
.
.IP "" 4
.
2015-05-10 06:08:08 -04:00
.nf
2015-06-02 13:01:25 -04:00
Only return a selected item, do not allow custom entry\.
This mode always returns an entry, or returns directly when no entries given\.
.
2015-05-10 06:08:08 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
2015-06-11 14:38:48 -04:00
\fB\-no\-custom\fR
.
.IP "" 4
.
.nf
Only return a selected item, do not allow custom entry\.
This mode returns directly when no entries given\.
.
.fi
.
.IP "" 0
.
.P
2015-06-02 13:01:25 -04:00
\fB\-format\fR \fIformat\fR
.
.IP "" 4
.
2015-05-10 06:08:08 -04:00
.nf
2015-06-02 13:01:25 -04:00
2015-05-11 17:20:34 -04:00
Allows the output of dmenu to be customized (N is total number of input entries):
2015-06-02 13:01:25 -04:00
* \'s\' selected string\.
* \'i\' index (0 \- (N\-1))\.
* \'d\' index (1 \- N)\.
* \'q\' quote string\.
* \'f\' filter string (user input)\.
* \'F\' quoted filter string (user input)\.
Default: \'s\'
.
.fi
.
.IP "" 0
.
.P
\fB\-filter\fR \fIfilter\fR
.
.IP "" 4
.
2015-05-24 03:20:01 -04:00
.nf
2015-06-02 13:01:25 -04:00
Preset user filter to *filter* in the entry box and pre\-filter the list\.
.
.fi
.
.IP "" 0
.
.P
\fB\-select\fR \fIstring\fR
.
.IP "" 4
.
.nf
2015-05-24 03:20:01 -04:00
Select first line that matches the given string
2015-06-02 13:01:25 -04:00
.
.fi
.
.IP "" 0
.
.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-06-26 10:33:13 -04:00
.P
\fB\-z\fR
.
.IP "" 4
.
.nf
Enable sloppy fuzzy matching\.
.
.fi
.
.IP "" 0
.
2015-06-02 13:01:25 -04:00
.SS "Message dialog"
\fB\-e\fR \fImessage\fR
.
.IP "" 4
.
.nf
Popup a message dialog (used internally for showing errors) with *message*\.
Message can be multi\-line\.
.
.fi
.
.IP "" 0
.
.SS "Other"
\'\-pid\' \fIpath\fR
.
.IP "" 4
.
.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\.
.
2015-05-24 03:20:01 -04:00
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.SS "Debug"
\fB\-dump\-Xresources\fR
.
.P
Dump the current active configuration in Xresources format to the command\-line\.
.
.P
\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 13:01:25 -04:00
ln \-s /usr/bin/dmenu /usr/bin/rofi
2015-06-02 13:01:25 -04:00
.
.fi
.
.IP "" 0
.
.SH "SIGNALS"
\fBHUP\fR
.
.IP "" 4
.
.nf
If in daemon mode, reload the configuration from Xresources\. (commandline arguments still
.
.fi
2015-06-02 13:01:25 -04:00
.
.IP "" 0
.
.P
override Xresources)\.
.
.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 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
\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-06-26 10:33:13 -04:00
.P
``` ! 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
2015-06-02 13:01:25 -04:00
.
2015-06-26 10:33:13 -04:00
.P
! \'background\', \'border\' rofi\.color\-window: #fdf6e3, #002b36 ```
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-06-26 10:33:13 -04:00
.P
\fBrofi \-color\-normal "#fdf6e3,#002b36,#eee8d5,#586e75,#eee8d5"\fR
2015-06-02 13:01:25 -04:00
.
.SH "COLORS"
Rofi has an experimental mode for a \'nicer\' transparency\. The idea is that you can make the background of the window transparent but the text not\. This way, in contrast to the \fB\-opacity\fR 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:
.
.P
argb:FF444444
.
.P
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 can be done for any color; it is therefore possible to have solid borders, the selected row solid, and the others slightly transparent\.
.
.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
`Ctrl\-Alt\-d\': Delete word
.
.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
\fBCtrl\-grave\fR: Toggle case sensitivity\.
.
.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\.
.
.SH "FAQ"
\fBText 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"
\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 16:29:26 -04:00
Rasmus Steinke \fIrasi@xssn\.at\fR
2015-06-02 13:01:25 -04: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\.