Modularise the hyprland config

This commit is contained in:
SebastianStork 2024-04-14 14:45:49 +02:00
parent 74982fa9f8
commit f6b56dae28
4 changed files with 96 additions and 75 deletions

View file

@ -0,0 +1,48 @@
{
config,
lib,
...
}: {
config = lib.mkIf config.myConfig.de.hyprland.enable {
programs.waybar = {
enable = true;
systemd.enable = true;
settings = {
mainBar = {
layer = "top";
position = "top";
spacing = 3;
modules-left = ["clock"];
modules-center = ["hyprland/workspaces"];
modules-right = ["tray" "wireplumber" "backlight" "battery"];
"hyprland/workspaces" = {
active-only = false;
all-outputs = true;
};
backlight = {
device = "amdgpu_bl1";
};
};
};
style = ''
* {
border: none;
border-radius: 0px;
font-family: "JetBrainsMono Nerd Font";
font-size: 14px;
}
window#waybar {
background-color: rgba(43, 48, 59, 0.5);
color: #ffffff;
}
'';
};
};
}