Linux command
rofi 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show application launcher
rofi -show drun
Show command launcher
rofi -show run
Switch between open windows
rofi -show window
Use as dmenu replacement
printf "Choice1\nChoice2\nChoice3" | rofi -dmenu
SSH to a host
rofi -show ssh
Use a specific theme
rofi -show drun -theme [solarized]
说明
rofi is a versatile application launcher and window switcher. It provides a searchable interface for launching programs, switching windows, running commands, and more. The tool is highly customizable with themes and supports scripting via the dmenu mode. It's popular in tiling window manager setups as a replacement for dmenu.
参数
- -show _mode_
- Show specified mode
- -dmenu
- Run as dmenu replacement
- -theme _theme_
- Use specified theme
- -modi _modes_
- Enable specified modes
- -matching _method_
- Match method (fuzzy, regex, glob, normal)
- -i
- Case insensitive matching
FAQ
What is the rofi command used for?
rofi is a versatile application launcher and window switcher. It provides a searchable interface for launching programs, switching windows, running commands, and more. The tool is highly customizable with themes and supports scripting via the dmenu mode. It's popular in tiling window manager setups as a replacement for dmenu.
How do I run a basic rofi example?
Run `rofi -show drun` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -show _mode_ do in rofi?
Show specified mode