{ programs.waybar = { enable = true; catppuccin.enable = true; settings = { mainBar = let in { layer = "top"; position = "top"; height = 30; output = [ "eDP-1" "HDMI-A-1" ]; modules-left = [ "sway/workspaces" ]; modules-center = [ "clock#week" "clock#year" "clock#time" ]; modules-right = [ "network" "pulseaudio" "memory" "cpu" "battery" ]; "clock#time" = { format = "{:%H:%M:%S}"; interval = 1; }; "clock#week" = { format = "{:%a}"; }; "clock#year" = { format = "{:%Y-%m-%d}"; }; battery = { format = "{icon} {capacity}% {time}"; format-time = " {H} h {M} m"; format-icons = [ "" "" "" "" "" ]; states = { warning = 30; critical = 15; }; }; cpu = { format = " {usage}%"; }; memory = { format = " {percentage}%"; interval = 5; }; pulseaudio = { format = "{icon} {volume}% | {format_source}"; format-muted = "󰝟 {volume}% | {format_source}"; format-source = "{volume}% "; format-source-muted = "{volume}% "; format-icons = { headphone = ""; default = [ "" "" "" ]; }; }; network = { format-ethernet = "󰈁 | {bandwidthUpBytes} {bandwidthDownBytes}"; format-wifi = "{icon} | {bandwidthUpBytes} {bandwidthDownBytes}"; format-disconnected = "󰈂 no connection"; format-icons = [ "󰤟" "󰤢" "󰤥" "󰤨" ]; interval = 5; }; "sway/workspaces" = { disable-scroll = true; all-outputs = true; }; }; }; systemd = { enable = true; target = "sway-session.target"; }; style = builtins.readFile ./style.css; }; }