diff --git a/home/config/rofi/config.rasi b/home/config/rofi/config.rasi new file mode 100644 index 0000000..976d563 --- /dev/null +++ b/home/config/rofi/config.rasi @@ -0,0 +1,106 @@ +/* + * ROFI color theme + * + * Based on Something Found in the Internet + * + * User: Yutent + * + */ + +configuration { + modi: "window,combi,ssh,drun,run"; + font: "Menlo 12"; + lines: 10; + columns: 2; + dpi: 192; + drun-icon-theme: "Reversal-green-dark"; + + drun { + display-name: ""; + } + + run { + display-name: ""; + } + + window { + display-name: ""; + } + + windowcd { + display-name: ""; + } + + ssh { + display-name: "⚝"; + } + + window-format: "{c} - {t}"; + + timeout { + delay: 10; + action: "kb-cancel"; + } +} + +* { + border: 0; + margin: 0; + padding: 0; + spacing: 0; + + bg: #282a3680; + fg: #f8f8f2; + blue: #6272a4; + purple: #bd93f9; + + background-color: @bg; + text-color: @fg; +} + +window { + transparency: "real"; + border-radius: 6px; +} + +mainbox { + children: [inputbar, listview]; +} + +inputbar { + background-color: @blue; + children: [prompt, entry]; +} + +entry { + background-color: inherit; + padding: 16px 4px; +} + +prompt { + background-color: inherit; + padding: 16px; +} + +listview { + lines: 8; +} + +element { + children: [element-icon, element-text]; + text-color: @blue; +} + +element-icon { + size: 2ch; + padding: 12px 10px; +} + +element-text { + padding: 12px 0; + text-color: inherit; +} + +element-text selected { + text-color: @purple; +} \ No newline at end of file diff --git a/home/config/rofi/some_command.md b/home/config/rofi/some_command.md new file mode 100644 index 0000000..1ac39b4 --- /dev/null +++ b/home/config/rofi/some_command.md @@ -0,0 +1,36 @@ + + +### 应用启动器 + +```bash +rofi -show drun +``` + +### 显示打开的窗口 + +```bash +rofi -show window # 显示全部工作区的 +rofi -show windowcd # 只显示当前工作区的 +``` + + +### ssh书签 +> 弥补`alacritty`没有书签功能的遗憾。 + +```bash +rofi -show ssh +``` + +需要在`HOME`目录下的`.ssh/`下放置一个`config`文件, 没有就新建, 有了的, 就在后面追加以下格式的内容。 + +``` +Host server1 + Hostname example.com + Port 22 + User username + +Host server2 + Hostname example.net + Port 2200 + User username +``` \ No newline at end of file