LinuxCommandLibrary

rofi

Launch applications and execute commands

TLDR

Show the list of apps

$ rofi -show drun
copy

Show the list of all commands
$ rofi -show run
copy

Switch between windows
$ rofi -show window
copy

Pipe a list of items to stdin and print the selected item to stdout
$ printf "[Choice1\nChoice2\nChoice3]" | rofi -dmenu
copy

SYNOPSIS

rofi [options]

PARAMETERS

-help
    Show the help message and exit.

-version
    Show the version number and exit.

-show {mode}
    Show the specified mode (e.g., 'dmenu', 'window', 'run').

-modi {mode}
    Comma separated list of modes to enable (e.g., 'run,ssh').

-theme {theme}
    Specify the theme to use.

-dump-config
    Dump the current configuration to stdout.

-dmenu
    Run in dmenu mode.

-window
    Run in window mode.

-run
    Run in run mode (application launcher).

-lines {number}
    Set the number of lines to display.

-width {pixels}
    Set the width of the window.

-location {location}
    Set the location of the window. (e.g. north, south, center)

DESCRIPTION

Rofi is a window switcher, application launcher, and dmenu replacement. It's highly configurable and themeable, allowing you to create custom workflows and interfaces. It can be used to launch applications, switch between windows, manage SSH connections, perform system commands, and even create custom scripts to perform various tasks. Rofi is designed to be fast and efficient, providing a user-friendly interface for interacting with your system. Its flexibility makes it a valuable tool for both novice and experienced Linux users. Rofi's capabilities are extended via plugins. It supports a variety of modes, including a dmenu mode, a window mode, and an application launcher mode. These modes can be easily switched between using command-line options or keybindings. Rofi reads the configuration from '~/.config/rofi/config.rasi' or '/etc/rofi/config.rasi' and its themes from '/usr/share/rofi/themes/'.

CAVEATS

Configuration files are important for rofi customizations. It is important to understand the 'rasi' syntax.

CONFIGURATION FILES

Rofi reads its configuration from '~/.config/rofi/config.rasi' or '/etc/rofi/config.rasi'. This file allows you to customize the appearance and behavior of rofi.

THEMES

Rofi uses themes to control its appearance. Themes are stored in '/usr/share/rofi/themes/' and can be selected using the '-theme' option.

HISTORY

Rofi was initially developed as a lightweight window switcher, but has evolved into a versatile application launcher and dmenu replacement. It has gained popularity due to its speed, configurability, and ease of use. The tool is under continuous development with active community involvement.

SEE ALSO

dmenu(1), xprop(1)

Copied to clipboard