nixos/home/desktop/waybar/main.nix

40 lines
990 B
Nix
Raw Normal View History

{...}: {
2023-07-10 11:24:42 +01:00
imports = [./default.nix];
programs.waybar.settings.main = {
layer = "top";
position = "top";
spacing = 10;
margin-top = 10;
margin-left = 20;
margin-right = 20;
margin-bottom = 5;
"modules-left" = [
"wlr/workspaces"
2023-07-10 11:24:42 +01:00
"cpu"
"memory"
"temperature"
];
"modules-center" = [
"clock"
2023-07-10 11:24:42 +01:00
];
"modules-right" = [
"pulseaudio"
"bluetooth"
"network"
"battery"
"tray"
];
clock = import ./modules/clock.nix;
cpu = import ./modules/cpu.nix;
memory = import ./modules/memory.nix;
temperature = import ./modules/temperature.nix;
"wlr/workspaces" = import ./modules/wlr_workspaces.nix;
pulseaudio = import ./modules/pulseaudio.nix;
bluetooth = import ./modules/bluetooth.nix;
network = import ./modules/network.nix;
backlight = import ./modules/backlight.nix;
battery = import ./modules/battery.nix;
tray = import ./modules/tray.nix;
2023-07-10 11:24:42 +01:00
};
}