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

Whether to enable Waybar.

Type: boolean

Default:

false

Example:

true

Declared by:

programs.waybar.package

The waybar package to use.

Type: package

Default:

pkgs.waybar

Declared by:

programs.waybar.settings

Configuration for Waybar, see https://github.com/Alexays/Waybar/wiki/Configuration for supported values.

Type: (list of (open submodule of (JSON value))) or attribute set of (open submodule of (JSON value))

Default:

[ ]

Example:

{
  mainBar = {
    layer = "top";
    position = "top";
    height = 30;
    output = [
      "eDP-1"
      "HDMI-A-1"
    ];
    modules-left = [ "sway/workspaces" "sway/mode" "wlr/taskbar" ];
    modules-center = [ "sway/window" "custom/hello-from-waybar" ];
    modules-right = [ "mpd" "custom/mymodule#with-css-id" "temperature" ];

    "sway/workspaces" = {
      disable-scroll = true;
      all-outputs = true;
    };
    "custom/hello-from-waybar" = {
      format = "hello {}";
      max-length = 40;
      interval = "once";
      exec = pkgs.writeShellScript "hello-from-waybar" ''
        echo "from within waybar"
      '';
    };
  };
}

Declared by:

programs.waybar.style

CSS style of the bar.

See https://github.com/Alexays/Waybar/wiki/Configuration 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:

''
  * {
    border: none;
    border-radius: 0;
    font-family: Source Code Pro;
  }
  window#waybar {
    background: #16191C;
    color: #AAB2BF;
  }
  #workspaces button {
    padding: 0 5px;
  }
''

Declared by:

programs.waybar.systemd.enable

Whether to enable Waybar systemd integration.

Type: boolean

Default:

false

Example:

true

Declared by:

programs.waybar.systemd.enableDebug

Whether to enable debug logging.

Type: boolean

Default:

false

Example:

true

Declared by:

programs.waybar.systemd.enableInspect

Inspect objects and find their CSS classes, experiment with live CSS styles, and lookup the current value of CSS properties.

See https://developer.gnome.org/documentation/tools/inspector.html

Type: boolean

Default:

false

Example:

true

Declared by:

programs.waybar.systemd.targets

The systemd targets that will automatically start the Waybar service.

When setting this value to [ "sway-session.target" ], make sure to also enable wayland.windowManager.sway.systemd.enable, otherwise the service may never be started.

Type: list of string

Default:

[ config.wayland.systemd.target ]

Example:

[
  "sway-session.target"
]

Declared by: