{ pkgs, lib, ... }: { # Dependencies home.packages = with pkgs; [ (pkgs.callPackage ./aozora.nix { }) (pkgs.callPackage ./polybar-now-playing.nix { }) ]; services.polybar = { enable = true; script = "polybar &"; package = pkgs.polybar.override { i3GapsSupport = true; alsaSupport = true; }; config = { "colors" = { background = "#2e3440"; background-alt = "#3b4252"; foreground = "#eceff4"; primary = "#8fbcbb"; secondary = "#ff00ff"; # not sure what this does alert = "#ff00ff"; # not sure what this does disabled = "#434c5e"; }; "bar/top" = { font-0 = "Noto Sans Mono;2"; font-1 = "Noto Sans CJK JP;2"; background = "\${colors.background}"; foreground = "\${colors.foreground}"; width = "100%"; height = "24pt"; line-size = "3pt"; padding-right = 1; module-margin = 1; separator = "|"; separator-foreground = "\${colors.disabled}"; cursor-click = "pointer"; cursor-scroll = "ns-resize"; modules-left = [ "xworkspaces" "xwindow" "now-playing" ]; modules-right = [ "aozora" "filesystem" "pulseaudio" "memory" "cpu" "date" ]; }; "module/xworkspaces" = { type = "internal/xworkspaces"; label-active-background = "\${colors.background-alt}"; label-active-underline = "\${colors.primary}"; label-active-padding-right = 1; label-occupied-padding-right = 1; label-urgent-background = "\${colors.alert}"; label-urgent-padding-right = 1; label-empty-foreground = "\${colors.disabled}"; label-empty-padding-right = 1; }; "module/xwindow" = { type = "internal/xwindow"; }; "module/now-playing" = { type = "custom/script"; tail = true; format = "