summaryrefslogtreecommitdiff
path: root/common/modules/matugen/templates/matugen-rofi.nix
blob: 8dc50cb7ed2aa338eccbcf89bcd601c2804c2ea1 (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
{
  config,
  lib,
  ...
}:
{
  config = lib.mkIf config.programs.rofi.enable {
    xdg.configFile = {
      "matugen/templates/rofi-colors.rasi" = {
        text = ''
          * {
              <* if {{ is_dark_mode }}  *>
              bg:          {{colors.surface.default.hex}};
              bg-alt:      {{colors.surface_container.default.hex}};
              <* else *>
              bg:          {{colors.surface_container_low.default.hex}};
              bg-alt:      {{colors.surface_container_highest.default.hex}};
              <* endif *>
              fg:          {{colors.on_surface.default.hex}};
              fg-dim:      {{colors.on_surface_variant.default.hex}};
              accent:      {{colors.primary.default.hex}};
              selected-bg: {{colors.primary.default.hex}};
              selected-fg: {{colors.on_primary.default.hex}};
              urgent:      {{colors.error.default.hex}};
              outline:     {{colors.outline.default.hex}};
          }
        '';
      };
    };
  };
}