{
programs.waybar = {
enable = true;
systemd.enable = true;
settings = {
mainBar = {
layer = "top";
position = "top";
height = 32;
modules-left = ["sway/workspaces" "sway/mode"];
modules-center = ["custom/media"];
modules-right = [
"idle_inhibitor"
"pulseaudio"
"network"
"cpu"
"memory"
"temperature"
"backlight"
"battery"
"clock"
"tray"
];
"sway/workspaces" = {
disable-scroll = true;
enable-bar-scroll = false;
active-only = false;
all-outputs = false;
format = "{icon}";
format-icons = {
"1" = "";
"2" = "";
"3" = "ﭮ";
"4" = "ﱘ";
"5" = "";
};
};
"idle_inhibitor" = {
format = "{icon}";
format-icons = {
"activated" = "";
"deactivated" = "";
};
};
"tray" = {
icon-size = 25;
spacing = 12;
};
"clock" = {
tooltip-format = "{%R:%S}\n{calendar}";
format-alt = "{%d %b %Y}";
};
"cpu" = {
format = "{usage}% ";
interval = 5;
tooltip = false;
# states = {
# ""
# };
};
};
};
};
}