53 lines
995 B
Nix
53 lines
995 B
Nix
{lib, ...}: {
|
|
programs.waybar = {
|
|
enable = true;
|
|
|
|
style = lib.mkForce ./style.css;
|
|
settings = [
|
|
{
|
|
layer = "top";
|
|
position = "top";
|
|
height = 22;
|
|
|
|
modules-left = ["ext/workspaces"];
|
|
modules-center = ["dwl/window"];
|
|
modules-right = [
|
|
"cpu"
|
|
"memory"
|
|
"pulseaudio"
|
|
"clock"
|
|
];
|
|
|
|
"ext/workspaces" = {
|
|
disable-scroll = true;
|
|
all-outputs = true;
|
|
format = "{name}";
|
|
};
|
|
|
|
"dwl/window" = {
|
|
format = "{title}";
|
|
max-length = 80;
|
|
};
|
|
|
|
cpu = {
|
|
format = "cpu {usage}%";
|
|
interval = 3;
|
|
};
|
|
|
|
memory = {
|
|
format = "mem {percentage}%";
|
|
interval = 3;
|
|
};
|
|
|
|
pulseaudio = {
|
|
format = "vol {volume}%";
|
|
format-muted = "vol mute";
|
|
};
|
|
|
|
clock = {
|
|
format = "{:%Y-%m-%d %H:%M}";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
}
|