nix-config/modules/niri/waybar.conf.nix
2024-08-23 13:30:11 +02:00

41 lines
854 B
Nix

{ ... }: {
mainBar = {
layer = "top";
position = "top";
modules-left = [
"network"
];
modules-center = [
"clock"
];
modules-right = [
"battery"
];
"clock" = {
format = "{:%H:%M}";
format-alt = "{:%a, %Y-%m-%d}";
tooltip = false;
};
"network" = {
format-wifi = "{icon}";
format-alt = "{essid}";
format-ethernet = "󰈁";
format-disconnected = "󰤭 ";
format-icons = ["󰤯 " "󰤟 " "󰤢 " "󰤥 " "󰤨 "];
tooltip = false;
};
"battery" = {
states = {
good = 80;
warning = 30;
critical = 10;
};
format = "{icon}";
format-alt = "{capacity}%";
format-icons = ["󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹" ];
tooltip = false;
};
};
}