added waybar config

This commit is contained in:
Dennis Frieberg 2025-05-04 17:34:29 +02:00
parent 5ca2070f3c
commit a5f08a71a7
Signed by: nerf
GPG key ID: 7C58AFED036072C5
2 changed files with 47 additions and 2 deletions

View file

@ -8,7 +8,10 @@
system.stateVersion = "25.05"; system.stateVersion = "25.05";
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
users.users.nerf.extraGroups = [ "networkmanager" ]; users.users.nerf.extraGroups = [
"networkmanager"
"input"
];
services.displayManager.ly.enable = true; services.displayManager.ly.enable = true;

View file

@ -13,7 +13,48 @@
kitty.enable = true; kitty.enable = true;
wofi.enable = true; wofi.enable = true;
helix.enable = true; helix.enable = true;
waybar.enable = true;
waybar = {
enable = true;
settings = {
mainBar = {
layer = "bottom";
height = 30;
modules-left = [
"hyprland/workspaces"
"hyprland/window"
];
modules-center = [ ];
modules-right = [
"idle_inhibitor"
"pulseaudio"
"network"
"cpu"
"memory"
"temperature"
"backlight"
"battery"
"clock"
"tray"
];
idle_inhibitor = {
format = "{icon}";
format-icons = {
activated = "";
deactivated = "";
};
};
tray = {
spacing = 10;
};
cpu = {
format = "{usage}% ";
tooltip = false;
};
memory.format = "{}% ";
};
};
};
}; };
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
@ -22,6 +63,7 @@
portalPackage = null; portalPackage = null;
systemd.variables = [ "--all" ]; # import environment (like PATH) into the systemd unit systemd.variables = [ "--all" ]; # import environment (like PATH) into the systemd unit
settings = { settings = {
exec-once = "waybar";
input = { input = {
kb_layout = "de"; kb_layout = "de";
kb_variant = "neo"; kb_variant = "neo";