nix-config/modules/niri/waybar.conf.nix
2024-07-28 19:21:26 +02:00

57 lines
1.2 KiB
Nix

{ ... }: {
mainBar = {
layer = "top";
position = "top";
modules-left = [
"backlight"
"wireplumber"
];
modules-center = [
"clock"
];
modules-right = [
"network"
"battery"
];
"backlight" = {
format = "{icon}";
format-alt = "{percent}%";
format-icons = [ "" "" "" "" "" "" "" "" "" "" "" "" "" ];
tooltip = false;
};
"wireplumber" = {
format = "{icon}";
format-alt = "{volume}%";
format-muted = "";
format-icons = ["" "" ""];
tooltip = false;
};
"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;
};
};
}