# home/modules/polybar.nix { services.polybar = { enable = true; script = '' polybar primary & polybar secondary & ''; settings = { "bar/primary" = { monitor = "DVI-I-1"; width = "100%"; height = 30; radius = 0; fixed-center = true; background = "#f000f0a0"; foreground = "#d8dee9"; line-size = 3; padding-left = 2; padding-right = 2; module-margin-left = 1; module-margin-right = 1; font-0 = "FiraCode Nerd Font:size=10;2"; font-1 = "FiraCode Nerd Font:size=12;2"; modules-left = "bspwm"; modules-center = "date"; cursor-click = "pointer"; }; "bar/secondary" = { monitor = "HDMI-0"; width = "100%"; height = 30; radius = 0; fixed-center = true; background = "#2e3440"; foreground = "#d8dee9"; line-size = 3; padding-left = 2; padding-right = 2; module-margin-left = 1; module-margin-right = 1; font-0 = "FiraCode Nerd Font:size=10;2"; font-1 = "FiraCode Nerd Font:size=12;2"; modules-left = "bspwm"; modules-center = "date"; cursor-click = "pointer"; }; "module/bspwm" = { type = "internal/bspwm"; ws-icon-0 = "1;○"; ws-icon-1 = "2;○"; ws-icon-2 = "3;○"; ws-icon-3 = "4;○"; ws-icon-4 = "5;○"; ws-icon-5 = "6;○"; ws-icon-6 = "7;○"; ws-icon-7 = "8;○"; ws-icon-8 = "9;○"; ws-icon-default = "○"; label-focused = "●"; label-focused-background = "#88c0d0"; label-focused-foreground = "#2e3440"; label-focused-padding = 2; label-occupied = "%name%"; label-occupied-padding = 2; label-occupied-foreground = "#d8dee9"; label-urgent = "%name%"; label-urgent-background = "#bf616a"; label-urgent-padding = 2; label-empty = "%name%"; label-empty-foreground = "#4c566a"; label-empty-padding = 2; }; "module/date" = { type = "internal/date"; interval = 1; date = "%d-%m-%Y"; time = "%H:%M:%S"; format-prefix = " "; format-prefix-foreground = "#88c0d0"; label = "%date% %time%"; }; "module/cpu" = { type = "internal/cpu"; interval = 2; format-prefix = " "; format-prefix-foreground = "#a3be8c"; label = "%percentage:2%%"; }; "module/memory" = { type = "internal/memory"; interval = 2; format-prefix = " "; format-prefix-foreground = "#b48ead"; label = "%percentage_used%%"; }; }; }; }