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
- <home-manager/modules/programs/waybar.nix>