summaryrefslogtreecommitdiff
path: root/common/modules/matugen/templates/matugen-terminal.nix
diff options
context:
space:
mode:
Diffstat (limited to 'common/modules/matugen/templates/matugen-terminal.nix')
-rw-r--r--common/modules/matugen/templates/matugen-terminal.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/common/modules/matugen/templates/matugen-terminal.nix b/common/modules/matugen/templates/matugen-terminal.nix
index d8ee733..5ae9d86 100644
--- a/common/modules/matugen/templates/matugen-terminal.nix
+++ b/common/modules/matugen/templates/matugen-terminal.nix
@@ -10,7 +10,11 @@
text = ''
[colors-dark]
foreground={{colors.on_surface.default.hex_stripped}}
+ <* if {{ is_dark_mode }} *>
background={{colors.background.default.hex_stripped}}
+ <* else *>
+ background={{colors.surface_container.default.hex_stripped}}
+ <* endif *>
selection-foreground={{colors.on_surface.default.hex_stripped}}
selection-background={{colors.primary_container.default.hex_stripped}}
cursor = {{colors.background.default.hex_stripped}} {{colors.primary.default.hex_stripped}}
@@ -42,7 +46,11 @@
xdg.configFile."matugen/templates/alacritty-colors.toml" = {
text = ''
[colors.primary]
+ <* if {{ is_dark_mode }} *>
background = '{{colors.background.default.hex}}'
+ <* else *>
+ background = '{{colors.surface_container.default.hex}}'
+ <* endif *>
foreground = '{{colors.on_surface.default.hex}}'
[colors.selection]
@@ -78,7 +86,11 @@
(lib.mkIf config.beeMods.terminal.ghostty {
xdg.configFile."matugen/templates/ghostty.conf" = {
text = ''
- background = {{colors.background.default.hex}}
+ <* if {{ is_dark_mode }} *>
+ background = '{{colors.background.default.hex}}'
+ <* else *>
+ background = '{{colors.surface_container.default.hex}}'
+ <* endif *>
foreground = {{colors.on_surface.default.hex}}
cursor-color = {{colors.primary.default.hex}}
selection-background = {{colors.primary_container.default.hex}}