Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

programs.rofi.enable

Whether to enable Rofi: A window switcher, application launcher and dmenu replacement.

Type: boolean

Default:

false

Example:

true

Declared by:

programs.rofi.package

The rofi package to use.

Type: package

Default:

pkgs.rofi

Example:

pkgs.rofi.override { plugins = [ pkgs.rofi-emoji ]; }

Declared by:

programs.rofi.configPath

Path where to put generated configuration file.

Type: non-empty string

Default:

"$XDG_CONFIG_HOME/rofi/config.rasi"

Declared by:

programs.rofi.cycle

Whether to cycle through the results list.

Type: null or boolean

Default:

null

Declared by:

programs.rofi.extraConfig

Additional configuration to add.

Type: attribute set of ((attribute set of (string or signed integer or boolean or (Rasi literal string) or list of (string or signed integer or boolean or (Rasi literal string)))) or string or signed integer or boolean or (Rasi literal string) or list of (string or signed integer or boolean or (Rasi literal string)))

Default:

{ }

Example:

{
  kb-primary-paste = "Control+V,Shift+Insert";
  kb-secondary-paste = "Control+v,Insert";
  "run,drun" = {
    display-name = "open:";
  };
}

Declared by:

programs.rofi.finalPackage

Resulting customized rofi package.

Type: package (read only)

Declared by:

programs.rofi.font

Font to use.

Type: null or string

Default:

null

Example:

"Droid Sans Mono 14"

Declared by:

programs.rofi.location

The location rofi appears on the screen.

Type: one of “bottom”, “bottom-left”, “bottom-right”, “center”, “left”, “right”, “top”, “top-left”, “top-right”

Default:

"center"

Declared by:

programs.rofi.modes

Modes to enable. For custom modes see man 5 rofi-script.

Type: list of (string or (submodule))

Default:

[ ]

Example:

[
  "drun"
  "emoji"
  "ssh"
  {
    name = "whatnot";
    path = lib.getExe pkgs.rofi-whatnot;
  }
]

Declared by:

programs.rofi.modes.*.name

Name used to reference the custom mode in the mode list.

Type: string

programs.rofi.modes.*.path

Executable path for the custom rofi script mode.

Type: string

programs.rofi.pass.enable

Whether to enable rofi integration with password-store.

Type: boolean

Default:

false

Example:

true

Declared by:

programs.rofi.pass.package

The rofi-pass package to use.

Type: null or package

Default:

pkgs.rofi-pass

Example:

pkgs.rofi-pass-wayland

Declared by:

programs.rofi.pass.extraConfig

Extra configuration to be added at to the rofi-pass config file. Additional examples can be found at https://github.com/carnager/rofi-pass/blob/master/config.example.

Type: strings concatenated with “\n”

Default:

""

Example:

''
  URL_field='url'
  USERNAME_field='user'
  AUTOTYPE_field='autotype'
''

Declared by:

programs.rofi.pass.stores

Directory roots of your password-stores.

Type: list of string

Default:

[ ]

Declared by:

programs.rofi.plugins

List of rofi plugins to be installed.

Type: list of package

Default:

[ ]

Example:

[ pkgs.rofi-calc ]

Declared by:

programs.rofi.terminal

Path to the terminal which will be used to run console applications

Type: null or string

Default:

null

Example:

"\${pkgs.gnome.gnome_terminal}/bin/gnome-terminal"

Declared by:

programs.rofi.theme

Name of theme or path to theme file in rasi format or attribute set with theme configuration. Available named themes can be viewed using the rofi-theme-selector tool.

Type: null or string or absolute path or attribute set of ((attribute set of (string or signed integer or boolean or (Rasi literal string) or list of (string or signed integer or boolean or (Rasi literal string)))) or string)

Default:

null

Example:

let
  # Use `mkLiteral` for string-like values that should show without
  # quotes, e.g.:
  # {
  #   foo = "abc"; => foo: "abc";
  #   bar = mkLiteral "abc"; => bar: abc;
  # };
  inherit (config.lib.formats.rasi) mkLiteral;
in {
  "*" = {
    background-color = mkLiteral "#000000";
    foreground-color = mkLiteral "rgba ( 250, 251, 252, 100 % )";
    border-color = mkLiteral "#FFFFFF";
    width = 512;
  };

  "#inputbar" = {
    children = map mkLiteral [ "prompt" "entry" ];
  };

  "#textbox-prompt-colon" = {
    expand = false;
    str = ":";
    margin = mkLiteral "0px 0.3em 0em 0em";
    text-color = mkLiteral "@foreground-color";
  };
}

Declared by:

programs.rofi.xoffset

Offset in the x-axis in pixels relative to the chosen location.

Type: signed integer

Default:

0

Declared by:

programs.rofi.yoffset

Offset in the y-axis in pixels relative to the chosen location.

Type: signed integer

Default:

0

Declared by: