# ROFI 1 rofi ## NAME rofi - A window switcher, run dialog and dmenu replacement ## SYNOPSIS **rofi** [ -width *pct_scr* ] [ -lines *lines* ] [ -columns *columns* ] [ -font *pangofont* ] [ -fg *color* ] [ -fg-urgent *color* ] [ -fg-active *color* ] [ -bg-urgent *color* ] [ -bg-active *color* ] [ -bg *color* ] [ -bgalt *color* ] [ -hlfg *color* ] [ -hlbg *color* ] [ -key-**mode** *combo* ] [ -terminal *terminal* ] [ -location *position* ] [ -fixed-num-lines ] [ -padding *padding* ] [ -opacity *opacity%* ] [ -display *display* ] [ -bc *color* ] [ -bw *width* ] [ -dmenu [ -p *prompt* ] [ -sep *separator* ] [ -l *selected line* ] ] [ -ssh-client *client* ] [ -ssh-command *command* ] [ -disable-history ] [ -levenshtein-sort ] [ -case-sensitive ] [ -show *mode* ] [ -modi *mode1,mode2* ] [ -eh *element height* ] [ -lazy-filter-limit *limit* ] [ -e *message*] [ -a *row* ] [ -u *row* ] [ -pid *path* ] [ -now ] [ -rnow ] [ -snow ] [ -version ] [ -help] [ -dump-xresources ] [ -auto-select ] [ -parse-hosts ] [ -combi-modi *mode1,mode2* ] [ -quiet ] ## DESCRIPTION **rofi** 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. ## License MIT/X11 ## USAGE **rofi** 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. ### Single-shot mode To launch **rofi** directly in a certain mode, specifying `rofi -show `. To show the run dialog: ``` rofi -show run ``` ### Daemon mode To launch **rofi** in daemon mode don't specify a mode to show (`-show `), instead you can bind keys to launch a certain mode. To have run mode open when pressing `F2` start **rofi** like: ``` rofi -key-run F2 ``` Keybindings can also be specified in the `Xresources` file. ### Emulating dmenu **rofi** can emulate `dmenu` (a dynamic menu for X) when launched with the `-dmenu` flag. The official website for `dmenu` can be found: http://tools.suckless.org/dmenu/ ## OPTIONS `-key-{mode}` **KEY** Set the key combination to display a {mode} in daemon mode. rofi -key-run F12 rofi -key-ssh control+shift+s rofi -key-window mod1+Tab `-dmenu` Run rofi in dmenu mode. Allowing it to be used for user interaction in scripts. Pressing `shift-enter` will open the selected entries and move to the next entry. `-show` *mode* Open rofi in a certain mode. For example to show the run-dialog: rofi -show run This function deprecates -rnow,-snow and -now `-switchers` *mode1,mode1* `-modi` *mode1,mode1* Give a comma separated list of modes to enable, in what order. For example to only show the run and ssh launcher (in that order): rofi -modi "run,ssh" -show run Custom modes can be added using the internal 'script' mode. Each mode has two parameters: :