summaryrefslogtreecommitdiff
path: root/common/modules/matugen/templates/matugen-dunst.nix
blob: 2f7d10739b189ff1761e695999b753098eb8533b (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
{
  config,
  pkgs,
  ...
}:
let
  playSound = pkgs.writeShellScriptBin "play-notification-sound" ''
    ${pkgs.libcanberra-gtk3}/bin/canberra-gtk-play -i message
  '';
in
{
  xdg.configFile."matugen/templates/dunstrc" = {
    text = ''
      [global]
      font = "Lilex Nerd Font 11"
      corner_radius=0
      frame_width = 2
      markup = yes
      plain_text = no
      browser = zen --new-tab

      [play_sound]
      summary = "*"
      script = "${playSound}/bin/play-notification-sound"

      # --- Matugen Colors ---
      frame_color = "{{colors.primary.default.hex}}"
      separator_color = "{{colors.primary_container.default.hex}}"

      [urgency_low]
      background = "{{colors.surface.default.hex}}"
      foreground = "{{colors.on_surface.default.hex}}"

      [urgency_normal]
      background = "{{colors.surface.default.hex}}"
      foreground = "{{colors.on_surface.default.hex}}"

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