{pkgs, ...}: {
programs.waybar = {
enable = true;
package = pkgs.waybar;
settings = [
{
mainBar = {
layer = "top";
position = "top";
output = [
"eDP-1"
"DP-2"
];
};
modules-left = [
"wlr/workspaces"
"hyprland/submap"
"wlr/taskbar"
];
modules-center = [
"hyprland/window"
];
modules-right = [
"idle_inhibitor"
"memory"
"cpu"
"battery"
"clock"
];
"wlr/workspaces" = {
"format" = "{icon}";
"on-scroll-up" = "${pkgs.hyprland}/bin/hyprctl dispatch workspace e+1";
"on-scroll-down" = "${pkgs.hyprland}/bin/hyprctl dispatch workspace e-1";
"on-click" = "activate";
};
"clock" = {
"timezone" = "Europe/Berlin";
"tooltip-format" = "{:%Y %B}\n{calendar}";
"format-alt" = "{:%Y-%m-%d}";
};
}
];
style = ./style.css;
systemd = {
enable = true;
target = "hyprland-session.target";
};
};
}