nixos/home-manager/waybar.nix
2025-04-06 21:12:10 +02:00

49 lines
1.2 KiB
Nix

{ config, ... }: {
home.file."${config.xdg.configHome}/waybar/config.jsonc" = {
text = builtins.toJSON {
height = 35;
spacing = 4;
modules-left = [ ];
modules-center = [
"clock"
];
modules-right = [
"pulseaudio"
"cpu"
"memory"
"tray"
];
pulseaudio = {
# "scroll-step": 1, // %, can be a float
"format" = "{volume}% {icon} {format_source}";
"format-bluetooth" = "{volume}% {icon} {format_source}";
"format-bluetooth-muted" = " {icon} {format_source}";
"format-muted" = " {format_source}";
"format-source" = "{volume}% ";
"format-source-muted" = "";
"format-icons" = {
"headphone" = "";
"hands-free" = "";
"headset" = "";
"phone" = "";
"portable" = "";
"car" = "";
"default" = [ "" "" "" ];
};
"on-click" = "pavucontrol";
};
cpu = {
format = "{usage}% ";
tooltip = false;
};
memory = {
format = "{}% ";
};
tray = {
spacing = 10;
};
};
};
}