summaryrefslogtreecommitdiff
path: root/common/modules/matugen/templates/matugen-xresources.nix
diff options
context:
space:
mode:
Diffstat (limited to 'common/modules/matugen/templates/matugen-xresources.nix')
-rw-r--r--common/modules/matugen/templates/matugen-xresources.nix12
1 files changed, 9 insertions, 3 deletions
diff --git a/common/modules/matugen/templates/matugen-xresources.nix b/common/modules/matugen/templates/matugen-xresources.nix
index 614a4bc..6ee20c2 100644
--- a/common/modules/matugen/templates/matugen-xresources.nix
+++ b/common/modules/matugen/templates/matugen-xresources.nix
@@ -8,13 +8,19 @@
xdg.configFile."matugen/templates/colors-xresources" = {
text = ''
dwm.normbordercolor : {{colors.outline.default.hex}}
- dwm.normbgcolor : {{colors.surface.default.hex}}
dwm.normfgcolor : {{colors.on_surface.default.hex}}
dwm.selbordercolor : {{colors.primary.default.hex}}
- dwm.selbgcolor : {{colors.surface_container.default.hex}}
dwm.selfgcolor : {{colors.primary.default.hex}}
-
+ <* if {{ is_dark_mode }} *>
st.background: {{colors.surface.default.hex}}
+ dwm.normbgcolor : {{colors.surface.default.hex}}
+ dwm.selbgcolor : {{colors.surface_container.default.hex}}
+ <* else *>
+ st.background: {{colors.surface_container.default.hex}}
+ dwm.normbgcolor : {{colors.surface_container.default.hex}}
+ dwm.selbgcolor : {{colors.secondary_fixed.default.hex}}
+ <* endif *>
+
st.foreground: {{colors.on_surface.default.hex}}
st.cursorColor: {{colors.primary.default.hex}}