rofi 命令详解

| 选择喜欢的代码风格  

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

rofi 命令安装:


-bash/zsh: rofi command not found

#Debian
apt-get install rofi

#Ubuntu
apt-get install rofi

#Arch Linux
pacman -S rofi

#Kali Linux
apt-get install rofi

#Fedora
dnf install rofi

#Raspbian
apt-get install rofi

rofi 命令补充说明:


Rofi 是一个窗口切换器、运行对话框、 ssh-launcherdmenu 替代品,它最初是 simpleswitcher 的克隆,由 Sean Pringle 编写,后来由 Dave Davenport 扩展。

Simpleswitcher 奠定了基础,因此 Sean Pringle 应该为这个工具赢得大部分荣誉。Rofi (重命名,因为它失去了简单的属性)已经扩展了额外的功能,比如应用程序启动器和 ssh 启动器,并且可以作为一个直接的 dmenu 替代品,使其成为一个非常通用的工具。

rofi 使用:


  • Press F2 (mode: run)
  • Click Menu > Run (mode: run)
  • Click Menu > All apps (mode: drun)
  • In terminal: rofi -show run

rofi 截图:


rofi 命令语法:


rofi [ -show mode ]|[ -dmenu ]|[  -e msg ] [ CONFIGURATION ]

rofi 命令选项:


There are currently three methods of setting configuration options (evaluated in order below):

•Xresources: A method of storing key values in the Xserver. See here https://en.wikipedia.org/wiki/X_resources for more information. This is the recommended way of configuring rofi.
•Configuration File: This uses the same format as the Xresources file. By default it looks in XDG_USER_CONFIG_DIR/rofi/config, but can be overriden on commandline.
•Command-line options: Arguments passed to rofi.
•System configuration file (f.e. /etc/rofi.conf).

rofi 命令实例:


rofi 显示应用列表:

rofi -show drun

rofi 显示所有命令的列表:

rofi -show run

rofi 在窗口之间切换:

rofi -show window

rofi 扩展阅读:




rofi 命令评论