reorganize theme stuff

This commit is contained in:
Reid 2024-07-25 21:22:21 -07:00
parent a55c75925c
commit cb510f5173
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
8 changed files with 60 additions and 28 deletions

View file

@ -44,7 +44,20 @@ in {
};
};
hyprland = mkOpt (nullOr str) null;
hyprland = {
source = mkOpt (nullOr str) null;
extraConfig = mkOpt (nullOr str) null;
};
waybar = mkOpt str "";
wob = {
borderColor = mkOpt (nullOr str) null;
backgroundColor = mkOpt (nullOr str) null;
barColor = mkOpt (nullOr str) null;
};
rofi = mkOpt (nullOr path) null;
};
config = mkIf (cfg.active != null) {
@ -96,6 +109,19 @@ in {
};
};
hm.wayland.windowManager.hyprland.settings.source = mkIf (cfg.hyprland != null) [ cfg.hyprland ];
hm.wayland.windowManager.hyprland = {
settings.source = mkIf (cfg.hyprland.source != null) [ cfg.hyprland.source ];
extraConfig = mkIf (cfg.hyprland.extraConfig != null) cfg.hyprland.extraConfig;
};
hm.programs.waybar.style = cfg.waybar;
hm.services.wob.settings."" = {
border_color = cfg.wob.borderColor;
background_color = cfg.wob.backgroundColor;
bar_color = cfg.wob.barColor;
};
hm.programs.rofi.theme = cfg.rofi;
};
}