我的Manjaro rofi配置

Rofi 配置

Arch Wiki about rofi: https://wiki.archlinux.org/index.php/Rofi

git : https://github.com/davatorium/rofi

基本命令:

rofi -show run
rofi -show ssh
rofi -show drun

我自己使用的是rofi -show drun,在i3中的配置如下:

vim ~/.i3/config

bindsym $mod+d exec --no-startup-id rofi -show drun -theme fancy

如果不喜欢默认主题,可以使用命令选择喜欢的主题,然后根据提示按Alt + A?保存,也可以像上面配置中的,直接指定默认主题。除此之外,还可以在参数上指定font等等。

 rofi-theme-selector
 

如果指定了默认主题,可以在rofi的配置文件中找到,例如我的:

vim ~/.config/rofi/config

rofi.theme: /usr/share/rofi/themes/fancy.rasi

定制一个自定义图标的主题:

参考:https://www.jianshu.com/p/f25465ca5e73

生成相关配置文件:

mkdir -p ~/.config/rofi
rofi -dump-config > ~/.config/rofi/config.rasi

我的config.rasi文件:

configuration {
    /* 配置显示类型 */
    modi: "window,run,ssh,drun";
    /* 配置是否支持icon以及icon主题 */
    show-icons: true;
    icon-theme: "Numix";
    drun-icon-theme: "Numix";
    

icon主题可以从系统的主题目录(/usr/share/icons)里拷贝一份到~/.icons/或者~/.local/share/icons/里。

我的rofi配置归档

Gitee: https://gitee.com/siyingcheng/my_manjaro_i3wm_config/blob/master/config/rofi/

猜你喜欢

转载自www.cnblogs.com/siyingcheng/p/11706215.html