summaryrefslogtreecommitdiff
path: root/common/modules/matugen/templates/matugen-xresources.nix
blob: 6ee20c283e4da2ef7082e6c5d7c718740b83eea2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
  config,
  lib,
  ...
}:
{
  config = lib.mkIf config.beeMods.mango.enable {
    xdg.configFile."matugen/templates/colors-xresources" = {
      text = ''
        dwm.normbordercolor : {{colors.outline.default.hex}}
        dwm.normfgcolor : {{colors.on_surface.default.hex}}
        dwm.selbordercolor : {{colors.primary.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}}

        st.color0: \{{color0}}
        st.color8: \{{color8}}

        st.color1: \{{color1}}
        st.color9: \{{color9}}

        st.color2: \{{color2}}
        st.color10: \{{color10}}

        st.color3: \{{color3}}
        st.color11: \{{color11}}

        st.color4: \{{color4}}
        st.color12: \{{color12}}

        st.color5: \{{color5}}
        st.color13: \{{color13}}

        st.color6: \{{color6}}
        st.color14: \{{color14}}

        st.color7: \{{color7}}
        st.color15: \{{color15}}
      '';
    };
  };
}