reorganize theme stuff
This commit is contained in:
parent
a55c75925c
commit
cb510f5173
8 changed files with 60 additions and 28 deletions
|
@ -293,20 +293,6 @@ in {
|
|||
initial_workspace_tracking = 0;
|
||||
};
|
||||
};
|
||||
|
||||
extraConfig = ''
|
||||
general {
|
||||
col.active_border=$pink
|
||||
col.inactive_border=$surface0
|
||||
}
|
||||
decoration {
|
||||
col.shadow=$surface0
|
||||
col.shadow_inactive=$surface0
|
||||
}
|
||||
misc {
|
||||
background_color=$crust
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -16,7 +16,6 @@ in {
|
|||
extraConfig = {
|
||||
show-icons = true;
|
||||
};
|
||||
theme = ../../config/rofi.rasi;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,9 +5,10 @@ let
|
|||
cfg = config.modules.desktop.themes;
|
||||
accent = "pink";
|
||||
variant = "mocha";
|
||||
colorScheme = inputs.nix-colors.colorSchemes.catppuccin-mocha;
|
||||
in {
|
||||
config = mkIf (cfg.active == "catppuccin") {
|
||||
colorScheme = inputs.nix-colors.colorSchemes.catppuccin-mocha;
|
||||
colorScheme = colorScheme;
|
||||
|
||||
modules.desktop.themes = {
|
||||
dark = true;
|
||||
|
@ -63,7 +64,35 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
hyprland = "${inputs.hyprland-catppuccin}/themes/${variant}.conf";
|
||||
hyprland = {
|
||||
source = "${inputs.hyprland-catppuccin}/themes/${variant}.conf";
|
||||
extraConfig = ''
|
||||
general {
|
||||
col.active_border=''$${accent}
|
||||
col.inactive_border=$surface0
|
||||
}
|
||||
decoration {
|
||||
col.shadow=$surface0
|
||||
col.shadow_inactive=$surface0
|
||||
}
|
||||
misc {
|
||||
background_color=$crust
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
||||
waybar = builtins.concatStringsSep "\n" [
|
||||
"@import \"${inputs.waybar-catppuccin}/themes/${variant}.css\";"
|
||||
(lib.readFile ./waybar.css)
|
||||
];
|
||||
|
||||
wob = with colorScheme.palette; {
|
||||
borderColor = "${base04}FF";
|
||||
backgroundColor = "${base01}66";
|
||||
barColor = "${base05}FF";
|
||||
};
|
||||
|
||||
rofi = ./rofi.rasi;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -18,10 +18,6 @@ in {
|
|||
hm.programs.waybar = {
|
||||
enable = true;
|
||||
package = cfg.package;
|
||||
style = builtins.concatStringsSep "\n" [
|
||||
"@import \"${inputs.waybar-catppuccin}/themes/mocha.css\";"
|
||||
(lib.readFile ../../config/waybar.css)
|
||||
];
|
||||
settings = {
|
||||
mainBar = {
|
||||
layer = "top";
|
||||
|
|
|
@ -22,7 +22,7 @@ in {
|
|||
in [ script ];
|
||||
hm.services.wob = {
|
||||
enable = true;
|
||||
settings = with config.colorScheme.palette; {
|
||||
settings = {
|
||||
"" = {
|
||||
timeout = 1000;
|
||||
|
||||
|
@ -36,10 +36,6 @@ in {
|
|||
|
||||
margin = 12;
|
||||
|
||||
border_color = "${base04}FF";
|
||||
background_color = "${base01}66";
|
||||
bar_color = "${base05}FF";
|
||||
|
||||
overflow_mode = "nowrap";
|
||||
output_mode = "focused";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue