diff options
| author | beeb5k <beebeeb5k@gmail.com> | 2026-06-06 15:59:26 +0530 |
|---|---|---|
| committer | beeb5k <beebeeb5k@gmail.com> | 2026-06-06 15:59:26 +0530 |
| commit | 54471f0faf2697e55e01ed4a276de0cd921a7c30 (patch) | |
| tree | dc661f9d2c1c2c623072f81fc6b97f9c2fb6c1aa /common/modules/matugen/templates/matugen-terminal.nix | |
| parent | 2709c6aa130f5eea8414573fa1a7c8a18607ad8d (diff) | |
Add noctalia niri and way to switch between my config and noxtalia easily
Diffstat (limited to 'common/modules/matugen/templates/matugen-terminal.nix')
| -rw-r--r-- | common/modules/matugen/templates/matugen-terminal.nix | 208 |
1 files changed, 105 insertions, 103 deletions
diff --git a/common/modules/matugen/templates/matugen-terminal.nix b/common/modules/matugen/templates/matugen-terminal.nix index 4d7106e..1f09579 100644 --- a/common/modules/matugen/templates/matugen-terminal.nix +++ b/common/modules/matugen/templates/matugen-terminal.nix @@ -4,116 +4,118 @@ ... }: { - config = lib.mkMerge [ - (lib.mkIf config.beeMods.terminal.foot { - xdg.configFile."matugen/templates/foot-colors.ini" = { - text = '' - [colors-dark] - foreground={{colors.on_surface.default.hex_stripped}} - <* if {{ is_dark_mode }} *> - background={{colors.surface.default.hex_stripped}} - <* else *> - background={{colors.surface_container_low.default.hex_stripped}} - <* endif *> - selection-foreground={{colors.on_primary_container.default.hex_stripped}} - selection-background={{colors.primary_container.default.hex_stripped}} - cursor = {{colors.on_primary.default.hex_stripped}} {{colors.primary.default.hex_stripped}} + config = lib.mkIf config.beeMods.windowManagers.beeConfig.enable ( + lib.mkMerge [ + (lib.mkIf config.beeMods.terminal.foot { + xdg.configFile."matugen/templates/foot-colors.ini" = { + text = '' + [colors-dark] + foreground={{colors.on_surface.default.hex_stripped}} + <* if {{ is_dark_mode }} *> + background={{colors.surface.default.hex_stripped}} + <* else *> + background={{colors.surface_container_low.default.hex_stripped}} + <* endif *> + selection-foreground={{colors.on_primary_container.default.hex_stripped}} + selection-background={{colors.primary_container.default.hex_stripped}} + cursor = {{colors.on_primary.default.hex_stripped}} {{colors.primary.default.hex_stripped}} - regular0={{colors.surface_container_high.default.hex_stripped}} - regular1={{colors.error.default.hex_stripped}} - regular2={{colors.primary.default.hex_stripped}} - regular3={{colors.tertiary.default.hex_stripped}} - regular4={{colors.secondary.default.hex_stripped}} - regular5={{colors.primary_fixed.default.hex_stripped}} - regular6={{colors.secondary_fixed.default.hex_stripped}} - regular7={{colors.on_surface_variant.default.hex_stripped}} + regular0={{colors.surface_container_high.default.hex_stripped}} + regular1={{colors.error.default.hex_stripped}} + regular2={{colors.primary.default.hex_stripped}} + regular3={{colors.tertiary.default.hex_stripped}} + regular4={{colors.secondary.default.hex_stripped}} + regular5={{colors.primary_fixed.default.hex_stripped}} + regular6={{colors.secondary_fixed.default.hex_stripped}} + regular7={{colors.on_surface_variant.default.hex_stripped}} - bright0={{colors.outline.default.hex_stripped}} - bright1={{colors.error.default.hex_stripped | to_color | lighten: 10.0}} - bright2={{colors.primary_container.default.hex_stripped}} - bright3={{colors.tertiary_container.default.hex_stripped}} - bright4={{colors.secondary_container.default.hex_stripped}} - bright5={{colors.inverse_primary.default.hex_stripped}} - bright6={{colors.outline_variant.default.hex_stripped}} - bright7={{colors.on_surface.default.hex_stripped}} + bright0={{colors.outline.default.hex_stripped}} + bright1={{colors.error.default.hex_stripped | to_color | lighten: 10.0}} + bright2={{colors.primary_container.default.hex_stripped}} + bright3={{colors.tertiary_container.default.hex_stripped}} + bright4={{colors.secondary_container.default.hex_stripped}} + bright5={{colors.inverse_primary.default.hex_stripped}} + bright6={{colors.outline_variant.default.hex_stripped}} + bright7={{colors.on_surface.default.hex_stripped}} - # dim-blend-towards=<* if {{ is_dark_mode }} *>black<* else *>white<* endif *> - ''; - }; - }) - (lib.mkIf config.beeMods.terminal.alacritty { - xdg.configFile."matugen/templates/alacritty-colors.toml" = { - text = '' - [colors.primary] - <* if {{ is_dark_mode }} *> - background = '{{colors.background.default.hex}}' - <* else *> - background = '{{colors.surface_container_low.default.hex}}' - <* endif *> - foreground = '{{colors.on_surface.default.hex}}' + # dim-blend-towards=<* if {{ is_dark_mode }} *>black<* else *>white<* endif *> + ''; + }; + }) + (lib.mkIf config.beeMods.terminal.alacritty { + xdg.configFile."matugen/templates/alacritty-colors.toml" = { + text = '' + [colors.primary] + <* if {{ is_dark_mode }} *> + background = '{{colors.background.default.hex}}' + <* else *> + background = '{{colors.surface_container_low.default.hex}}' + <* endif *> + foreground = '{{colors.on_surface.default.hex}}' - [colors.selection] - text = '{{colors.on_surface.default.hex}}' - background = '{{colors.primary_container.default.hex}}' + [colors.selection] + text = '{{colors.on_surface.default.hex}}' + background = '{{colors.primary_container.default.hex}}' - [colors.cursor] - text = '{{colors.background.default.hex}}' - cursor = '{{colors.primary.default.hex}}' + [colors.cursor] + text = '{{colors.background.default.hex}}' + cursor = '{{colors.primary.default.hex}}' - [colors.normal] - black = '{{colors.surface_container_high.default.hex}}' - red = '{{colors.error.default.hex}}' - green = '{{colors.primary.default.hex}}' - yellow = '{{colors.tertiary.default.hex}}' - blue = '{{colors.secondary.default.hex}}' - magenta = '{{colors.primary_fixed.default.hex}}' - cyan = '{{colors.secondary_fixed.default.hex}}' - white = '{{colors.on_surface_variant.default.hex}}' + [colors.normal] + black = '{{colors.surface_container_high.default.hex}}' + red = '{{colors.error.default.hex}}' + green = '{{colors.primary.default.hex}}' + yellow = '{{colors.tertiary.default.hex}}' + blue = '{{colors.secondary.default.hex}}' + magenta = '{{colors.primary_fixed.default.hex}}' + cyan = '{{colors.secondary_fixed.default.hex}}' + white = '{{colors.on_surface_variant.default.hex}}' - [colors.bright] - black = '{{colors.outline.default.hex}}' - red = '{{colors.error_container.default.hex | to_color | lighten: 10.0}}' - green = '{{colors.primary_container.default.hex}}' - yellow = '{{colors.tertiary_container.default.hex}}' - blue = '{{colors.secondary_container.default.hex}}' - magenta = '{{colors.inverse_primary.default.hex}}' - cyan = '{{colors.outline_variant.default.hex}}' - white = '{{colors.on_surface.default.hex}}' + [colors.bright] + black = '{{colors.outline.default.hex}}' + red = '{{colors.error_container.default.hex | to_color | lighten: 10.0}}' + green = '{{colors.primary_container.default.hex}}' + yellow = '{{colors.tertiary_container.default.hex}}' + blue = '{{colors.secondary_container.default.hex}}' + magenta = '{{colors.inverse_primary.default.hex}}' + cyan = '{{colors.outline_variant.default.hex}}' + white = '{{colors.on_surface.default.hex}}' - ''; - }; - }) - (lib.mkIf config.beeMods.terminal.ghostty { - xdg.configFile."matugen/templates/ghostty-colors.conf" = { - text = '' - <* if {{ is_dark_mode }} *> - background = {{colors.background.default.hex}} - <* else *> - background = {{colors.surface_container_low.default.hex}} - <* endif *> - foreground = {{colors.on_surface.default.hex}} - cursor-color = {{colors.primary.default.hex}} - selection-background = {{colors.primary_container.default.hex}} - selection-foreground = {{colors.on_surface.default.hex}} + ''; + }; + }) + (lib.mkIf config.beeMods.terminal.ghostty { + xdg.configFile."matugen/templates/ghostty-colors.conf" = { + text = '' + <* if {{ is_dark_mode }} *> + background = {{colors.background.default.hex}} + <* else *> + background = {{colors.surface_container_low.default.hex}} + <* endif *> + foreground = {{colors.on_surface.default.hex}} + cursor-color = {{colors.primary.default.hex}} + selection-background = {{colors.primary_container.default.hex}} + selection-foreground = {{colors.on_surface.default.hex}} - palette = 0={{colors.surface_container_high.default.hex}} - palette = 1={{colors.error.default.hex}} - palette = 2={{colors.primary.default.hex}} - palette = 3={{colors.tertiary.default.hex}} - palette = 4={{colors.secondary.default.hex}} - palette = 5={{colors.primary_fixed.default.hex}} - palette = 6={{colors.secondary_fixed.default.hex}} - palette = 7={{colors.on_surface_variant.default.hex}} - palette = 8={{colors.outline.default.hex}} - palette = 9={{colors.error_container.default.hex | to_color | lighten: 10.0}} - palette = 10={{colors.primary_container.default.hex}} - palette = 11={{colors.tertiary_container.default.hex}} - palette = 12={{colors.secondary_container.default.hex}} - palette = 13={{colors.inverse_primary.default.hex}} - palette = 14={{colors.outline_variant.default.hex}} - palette = 15={{colors.on_surface.default.hex}} - ''; - }; - }) - ]; + palette = 0={{colors.surface_container_high.default.hex}} + palette = 1={{colors.error.default.hex}} + palette = 2={{colors.primary.default.hex}} + palette = 3={{colors.tertiary.default.hex}} + palette = 4={{colors.secondary.default.hex}} + palette = 5={{colors.primary_fixed.default.hex}} + palette = 6={{colors.secondary_fixed.default.hex}} + palette = 7={{colors.on_surface_variant.default.hex}} + palette = 8={{colors.outline.default.hex}} + palette = 9={{colors.error_container.default.hex | to_color | lighten: 10.0}} + palette = 10={{colors.primary_container.default.hex}} + palette = 11={{colors.tertiary_container.default.hex}} + palette = 12={{colors.secondary_container.default.hex}} + palette = 13={{colors.inverse_primary.default.hex}} + palette = 14={{colors.outline_variant.default.hex}} + palette = 15={{colors.on_surface.default.hex}} + ''; + }; + }) + ] + ); } |
