nix/home/programs/waybar.nix
2022-02-17 14:51:28 -05:00

64 lines
1.5 KiB
Nix

{
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 = "<big>{%R:%S}</big>\n<tt><small>{calendar}</small></tt>";
format-alt = "{%d %b %Y}";
};
"cpu" = {
format = "{usage}% ";
interval = 5;
tooltip = false;
# states = {
# ""
# };
};
};
};
};
}