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.wleave.enable

Whether to enable wleave.

Type: boolean

Default:

false

Example:

true

Declared by:

programs.wleave.package

The wleave package to use.

Type: null or package

Default:

pkgs.wleave

Declared by:

programs.wleave.settings

Configuration for wleave. See https://github.com/AMNatty/wleave#configuration for supported values.

Type: JSON value

Default:

{ }

Example:

{
  margin = 200;
  buttons-per-row = "1/1";
  delay-command-ms = 100;
  close-on-lost-focus = true;
  show-keybinds = true;
  buttons = [
    {
      label = "lock";
      action = "swaylock";
      text = "Lock";
      keybind = "l";
      icon = "${pkgs.wleave}/share/wleave/icons/lock.svg";
    }
    {
      label = "logout";
      action = "loginctl terminate-user $USER";
      text = "Logout";
      keybind = "e";
      icon = "${pkgs.wleave}/share/wleave/icons/logout.svg";
    }
    {
      label = "shutdown";
      action = "systemctl poweroff";
      text = "Shutdown";
      keybind = "s";
      icon = "${pkgs.wleave}/share/wleave/icons/shutdown.svg";
    }
  ];
}

Declared by:

programs.wleave.style

CSS style of wleave.

See https://github.com/AMNatty/wleave#styling for the documentation.

If the value is set to a path literal, then the path will be used as the css file.

Type: null or absolute path or strings concatenated with ā€œ\nā€

Default:

null

Example:

''
  window {
    background-color: rgba(12, 12, 12, 0.8);
  }
  
  button {
    color: var(--view-fg-color);
    background-color: var(--view-bg-color);
    border: none;
    padding: 10px;
  }
  
  button:hover,
  button:focus {
    color: var(--accent-color);
    background-color: var(--window-bg-color);
  }
''

Declared by: