# 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 = "#00000000"; 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 = "I;○"; ws-icon-1 = "II;○"; ws-icon-2 = "III;○"; ws-icon-3 = "IV;○"; ws-icon-4 = "V;○"; ws-icon-5 = "VI;○"; ws-icon-6 = "VII;○"; ws-icon-7 = "VIII;○"; ws-icon-8 = "IX;○"; ws-icon-default = "○"; label-focused = "●"; label-focused-foreground = "#90ffff"; label-focused-padding = 2; label-occupied = "●"; label-occupied-padding = 2; label-occupied-foreground = "#d8dee9"; label-urgent = "%name%"; label-urgent-background = "#bf616a"; label-urgent-padding = 2; label-empty = "○"; 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%%"; }; }; }; }