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.wlr-which-key.enable

Whether to enable wlr-which-key, a keymap manager for wlroots-based compositors.

Type: boolean

Default:

false

Example:

true

Declared by:

programs.wlr-which-key.package

The wlr-which-key package to use.

Type: null or package

Default:

pkgs.wlr-which-key

Declared by:

programs.wlr-which-key.extraMenus

Additional named menu configurations, each written to $XDG_CONFIG_HOME/wlr-which-key/<name>.yaml. These can be launched with wlr-which-key <name>.yaml.

Type: attribute set of (YAML 1.1 value)

Default:

{ }

Example:

{
  apps = {
    anchor = "bottom-left";
    menu = [
      { key = "f"; desc = "Firefox"; cmd = "firefox"; }
      { key = "v"; desc = "Vesktop"; cmd = "vesktop"; }
      { key = "q"; desc = "Qutebrowser"; cmd = "qutebrowser"; }
    ];
  };
  power = {
    menu = [
      { key = "s"; desc = "Sleep"; cmd = "systemctl suspend"; }
      { key = "r"; desc = "Reboot"; cmd = "reboot"; }
      { key = "o"; desc = "Off"; cmd = "poweroff"; }
    ];
  };
}

Declared by:

programs.wlr-which-key.settings

Main wlr-which-key configuration written to $XDG_CONFIG_HOME/wlr-which-key/config.yaml.

See https://github.com/MaxVerevkin/wlr-which-key#configuration for the full list of options.

Type: YAML 1.1 value

Default:

{ }

Example:

{
  font = "JetBrainsMono Nerd Font 12";
  background = "#282828d0";
  color = "#fbf1c7";
  border = "#8ec07c";
  separator = " ➜ ";
  border_width = 2;
  corner_r = 10;
  padding = 15;
  rows_per_column = 5;
  column_padding = 25;
  anchor = "center";
  margin_right = 0;
  margin_bottom = 0;
  margin_left = 0;
  margin_top = 0;
  menu = [
    {
      key = "p";
      desc = "Power";
      submenu = [
        { key = "s"; desc = "Sleep"; cmd = "systemctl suspend"; }
        { key = "r"; desc = "Reboot"; cmd = "reboot"; }
        { key = "o"; desc = "Off"; cmd = "poweroff"; }
      ];
    }
  ];
}

Declared by: