.\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . .TH "ROFI\-MANPAGE" "" "January 2017" "" "" . .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 ] [ \-terminal \fIterminal\fR ] [ \-location \fIposition\fR ] [ \-fixed\-num\-lines ] [ \-padding \fIpadding\fR ] [ \-display \fIdisplay\fR ] [ \-bw \fIwidth\fR ] [ \-dmenu [ \-p \fIprompt\fR ] [ \-sep \fIseparator\fR ] [ \-l \fIselected line\fR ] [ \-mesg ] [ \-select ] [ \-input \fIinput\fR ] ] [ \-filter \fIfilter\fR ] [ \-ssh\-client \fIclient\fR ] [ \-ssh\-command \fIcommand\fR ] [ \-window\-command \fIcommand\fR ] [ \-disable\-history ] [ \-levenshtein\-sort ] [ \-case\-sensitive ] [ \-cycle ] [ \-show \fImode\fR ] [ \-modi \fImode1,mode2\fR ] [ \-eh \fIelement height\fR ] [ \-e \fImessage\fR] [ \-a \fIrow\fR ] [ \-u \fIrow\fR ] [ \-pid \fIpath\fR ] [ \-version ] [ \-help ] [ \-dump\-xresources ] [ \-dump\-xresources\-theme ] [ \-auto\-select ] [ \-parse\-hosts ] [ \-no\-parse\-known\-hosts ] [ \-combi\-modi \fImode1,mode2\fR ] [ \-normal\-window ] [ \-fake\-transparency ] [ \-matching \fImethod\fR ] [ \-tokenize ] [ \-no\-click\-to\-exit ] [ \-threads \fInum\fR ] [ \-config \fIfilename\fR ] [ \-no\-show\-match ] [ \-theme \fIfilename\fR ] [ \-theme\-str \fIstring\fR ] [ \-dpi \fIdpi\fR ] . .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 main functionality is to assist in your workflow, allowing you to quickly (with a few keystrokes) switch between windows, start applications or log into a remote machine via ssh\. There are different modi for different type of actions\. . .P \fBrofi\fR can also function as (drop in) replacement for \fBdmenu(1)\fR\. . .SS "Running rofi" To launch \fBrofi\fR directly in a certain mode, specify a mode with \fBrofi \-show \fR\. To show the run dialog: . .IP "" 4 . .nf rofi \-show run . .fi . .IP "" 0 . .SS "Emulating dmenu" \fBrofi\fR can emulate \fBdmenu(1)\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 "CONFIGURATION" There are currently three methods of setting configuration options (evaluated in order below): . .IP "\(bu" 4 System configuration file (f\.e\. /etc/rofi\.conf)\. . .IP "\(bu" 4 Xresources: A method of storing key values in the Xserver\. See here \fIhttps://en\.wikipedia\.org/wiki/X_resources\fR for more information\. This is the recommended way of configuring \fBrofi\fR\. . .IP "\(bu" 4 Configuration File: This uses the same format as the Xresources file\. By default it looks in \fBXDG_USER_CONFIG_DIR\fR/rofi/config, but can be overriden on commandline\. By default XDG_USER_CONFIG_DIR defaults to \fB$HOME/\.config\fR\. (See \fBrofi \-h\fR for current location)\. . .IP "\(bu" 4 Command\-line options: Arguments passed to \fBrofi\fR\. . .IP "" 0 . .P \fBTIP\fR: To get a template config file run: \fBrofi \-dump\-xresources > rofi\-example\.config\fR\. . .P The Xresources file expects options starting with \fBrofi\.\fR followed by it\'s name\. An Example to set the number of lines: . .IP "" 4 . .nf rofi\.lines: 10 . .fi . .IP "" 0 . .P Command line options override settings from Xresources file\. The same option set as argument: prefixed with a \'\-\': . .IP "" 4 . .nf rofi \-lines 10 . .fi . .IP "" 0 . .P To get a list of available options, formatted as Xresources entries run: . .IP "" 4 . .nf rofi \-dump\-xresources . .fi . .IP "" 0 . .P The configuration system supports the following types: . .IP "\(bu" 4 String . .IP "\(bu" 4 Integer (signed and unsigned) . .IP "\(bu" 4 Char . .IP "\(bu" 4 Boolean . .IP "" 0 . .P Boolean options have a non\-default command\-line syntax\. Example to enable option X: . .IP "" 4 . .nf \-X . .fi . .IP "" 0 . .P To disable option X: . .IP "" 4 . .nf \-no\-X . .fi . .IP "" 0 . .P Below is a list of the most important options: . .SS "General" \fB\-help\fR . .P The help option shows the full list of commandline options and the current set value\. These include dynamic (run\-time generated) options\. . .P \fB\-dump\-xresources\fR . .P Dump the current active configuration in Xresources format to the command\-line\. This does not validate all passed values (e\.g\. colors)\. . .P \fB\-dump\-xresources\-theme\fR . .P Dump the current color scheme in Xresources format to the command\-line\. . .P \fB\-threads\fR \fInum\fR . .P Specify the number of threads \fBrofi\fR should use: . .IP "\(bu" 4 0: Autodetect the number of supported hardware threads\. . .IP "\(bu" 4 1: Disable threading . .IP "\(bu" 4 2\.\.N: Specify the maximum number of threads to use in the thread pool\. . .IP "" 0 . .P \fB\-dmenu\fR . .P Run \fBrofi\fR in dmenu mode\. This allows for interactive scripts\. In \fBdmenu\fR mode, \fBrofi\fR reads from STDIN, and output to STDOUT\. A simple example, displaying 3 pre\-defined options: . .IP "" 4 . .nf echo \-e "Option #1\enOption #2\enOption #3" | rofi \-dmenu . .fi . .IP "" 0 . .P Or get the options from a script: . .IP "" 4 . .nf ~/my_script\.sh | rofi \-dmenu . .fi . .IP "" 0 . .P \fB\-show\fR \fImode\fR . .P Open \fBrofi\fR in a certain mode\. Available modes are \fBwindow\fR, \fBrun\fR, \fBdrun\fR, \fBssh\fR, \fBcombi\fR\. The special argument \fBkeys\fR can be used to open a searchable list of supported keybindings (see \fIKEYBINDINGS\fR) . .P To show the run\-dialog: . .IP "" 4 . .nf rofi \-show run . .fi . .IP "" 0 . .P \fB\-modi\fR \fImode1,mode1\fR . .P 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: . .IP "" 4 . .nf rofi \-modi "run,ssh" \-show run . .fi . .IP "" 0 . .P Custom modes can be added using the internal \'script\' mode\. Each mode has two parameters: . .IP "" 4 . .nf :