non important commit

This commit is contained in:
benstrb 2026-01-11 17:09:10 +01:00
parent 503a09fa03
commit 5c02bb8e5c

View file

@ -1,8 +1,11 @@
# home/modules/polybar.nix {pkgs, ...}: {
{
services.polybar = { services.polybar = {
enable = true; enable = true;
package = pkgs.polybar.override {
mpdSupport = true;
};
script = '' script = ''
polybar primary & polybar primary &
polybar secondary & polybar secondary &
@ -66,6 +69,7 @@
cursor-scroll = "ns-resize"; cursor-scroll = "ns-resize";
modules-left = "bspwm"; modules-left = "bspwm";
modules-center = "mpd"
modules-right = "date"; modules-right = "date";
}; };
@ -154,6 +158,25 @@
format-padding = 1; format-padding = 1;
label = "%{T2}%time%%{T-}"; label = "%{T2}%time%%{T-}";
}; };
"module/mpd" = {
type = "internal/mpd";
interval = 1;
format-online = "<icon-prev><toggle><icon-next>";
format-stopped = "<icon-prev><toggle><icon-next>";
icon-play = "%{T7}%{T-}";
icon-play-foreground = "\${colors.fg}";
icon-play-padding = 1;
icon-pause = "%{T7}%{T-}";
icon-pause-foreground = "\${colors.fg}";
icon-pause-padding = 1;
icon-prev = "%{T7}%{T-}";
icon-prev-foreground = "\${colors.fg}";
icon-prev-padding = 1;
icon-next = "%{T7}%{T-}";
icon-next-foreground = "\${colors.fg}";
icon-next-padding = 1;
};
}; };
}; };
} }