summaryrefslogtreecommitdiff
path: root/common/modules/matugen/templates/matugen-polybar.nix
blob: 40cf1cf8a1ef890000850d35be65db70ab5b3cc2 (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
{
  xdg.configFile = {
    "matugen/templates/polybar-colors.ini" = {
      enable = true;
      text =
        # ini
        ''
          [colors]
          <* if {{ is_dark_mode }} *>
          background = {{colors.surface.default.hex}}
          background-alt = {{colors.surface_container.default.hex}}
          <* else *>
          background={{colors.surface_container.default.hex}}
          background-alt = {{colors.surface_container_highest.default.hex}};
          <* endif *>
          foreground = {{colors.on_surface.default.hex}}
          primary = {{colors.primary.default.hex}}
          on_primary = {{colors.on_primary.default.hex}}
          secondary = {{colors.secondary.default.hex}}
          alert = {{colors.error.default.hex}}
          disabled = {{colors.outline.default.hex}}
        '';
    };
  };
}