{pkgs, ...}: { programs.waybar = { enable = true; package = pkgs.waybar.overrideAttrs (final: prev: { patches = prev.patches ++ [./waybar-workspace.patch]; }); settings = [ { height = 24; spacing = 4; position = "top"; modules-left = [ "sway/workspaces" ]; modules-center = [ "sway/window" ]; modules-right = [ "tray" "clock" ]; "sway/workspaces" = { format = "{icon}"; }; clock = { format = "{:%a %H:%M}"; tooltip-format = "{:%a %Y-%m-%d %H:%M}\n{calendar}"; }; } ]; style = '' * { font-size: 13px; } button { border: none; border-radius: 0; } #workspaces button { padding: 0 5px; } #workspaces button.urgent { box-shadow: inset 0 -3px blue; } #clock { padding: 0 10px; } ''; systemd = { enable = true; target = "sway-session.target"; }; }; }