Skip to content

Rofi

Rofi uses .rasi files (CSS-like syntax). It loads a main configuration file (config.rasi). This file can import a theme using @theme "name".

We use the Template pattern. We generate a .rasi file containing the colors and save it as ~/.config/rofi/themis.rasi.

One-time: Edit ~/.config/rofi/config.rasi to point to the generated theme.

configuration {
/* ... settings ... */
}
@theme "themis";
enroll:
rofi:
type: template
input: "~/.config/themis/templates/rofi.rasi.j2"
output: "~/.config/rofi/themis.rasi"
# Rofi reads config at startup; no reload needed unless the daemon is running (rare).