summaryrefslogtreecommitdiff
path: root/common/modules/matugen/templates/matugen-dunst.nix
blob: d7f9200969c4868790e3dc48c41280089965df7c (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
{
  config,
  lib,
  ...
}:
{
  config = lib.mkIf config.services.dunst.enable {
    xdg.configFile."matugen/templates/dunstrc" = {
      text = ''
        [global]
        frame_color = "{{colors.primary.default.hex}}"
        separator_color = "{{colors.primary_container.default.hex}}"
        foreground = "{{colors.on_surface.default.hex}}"
        highlight = "{{colors.primary.default.hex}}"
        <* if {{ is_dark_mode }} *>
        background = "{{colors.surface.default.hex}}"
        <* else *>
        background = "{{colors.surface_container.default.hex}}"
        <* endif *>

        [urgency_critical]
        background = "{{colors.error_container.default.hex}}"
        foreground = "{{colors.on_error_container.default.hex}}"
        frame_color = "{{colors.error.default.hex}}"
        highlight = "{{colors.error.default.hex}}"
      '';
    };
  };
}