Next: , Previous: , Up: API  


1.17 (heks-linux rofi)

1.17.1 Parameters

Parameter: rofi-config-dir

Default value:

"/root/.config/rofi"
Parameter: rofi-config-filename

Default value:

"config.rasi"
Parameter: rofi-icon-theme

Default value:

"WhiteSur-pink-dark"
Parameter: rofi-power-menu-dir

Default value:

"/root/.local/bin"
Parameter: rofi-power-menu-filename

Default value:

"heks-rofi-power-menu"
Parameter: rofi-theme-filename

Default value:

"sss-theme.rasi"
Parameter: rofi-theme-menu-dir

Default value:

"/root/.local/bin"
Parameter: rofi-theme-menu-filename

Default value:

"heks-rofi-theme-menu"

1.17.2 Procedures

Procedure: install-rofi-config

Write the launcher config and theme, plus the power and theme-picker scripts. Local overrides are read from $XDG_CONFIG_HOME/heks-linux/rofi-settings.scm first. The two generated scripts are what make rofi -show power and rofi -show theme work.

Procedure: make-rofi-power-menu-script

Generate the Bash script implementing the Rofi power script mode.

Rofi calls it with ROFI_RETV=0 to list the entries and with ROFI_RETV=1 (the chosen entry as $1) to execute its action.

Procedure: make-rofi-theme-menu-script

Generate the Bash script implementing the Rofi theme script mode.

Choosing an entry rewrites ~/.config/heks-linux/local-settings.scm (keeping a .bak of the previous file) and then runs maak install-theme to re-render every palette-dependent dotfile.

Procedure: rofi-configuration

Render the Rofi config.rasi file.

The launcher is registered with four modes: drun (applications), window (the Cmd-Tab style switcher), power (session actions) and theme (the palette picker). The two script modes live in ~/.local/bin next to this configuration.

Procedure: rofi-power-menu-entries

Ordered list of Rofi power-menu entries, each as (label icon command).

Procedure: rofi-theme

Return the Rofi theme as a list of CSS rulesets. Every colour is looked up in the current palette, so the launcher follows the theme. The result is rendered with mk-css-conf-lines.


Next: (heks-linux user-settings), Previous: (heks-linux rmpc), Up: API