aboutsummaryrefslogtreecommitdiff
path: root/modules/desktop/hjem/wm/dunst.nix
blob: 9366975a3f37da873710727707938e9d1d78aeb4 (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
{
  lib,
  config,
  pkgs,
  ...
}: let
  cfg = config.collinux.desktop.wm.components.dunst;

  settings = with config.collinux.palette; ''
    [global]
      frame_color = "#ffffff00"
      separator_color = frame

      highlight = "#${base13}"

      font = "Iosevka Nerd Font"
      offset = "(8,8)"
      origin = "top-right"

    [urgency_low]
      background = "#${base00}99"
      foreground = "#${base05}ff"

    [urgency_normal]
      background = "#${base00}99"
      foreground = "#${base05}ff"

    [urgency_critical]
      background = "#${base00}99"
      foreground = "#${base05}ff"
      frame_color = "#${base08}"
  '';
in
  lib.mkIf cfg.enable {
    files.".config/dunst/dunstrc".text = settings;
    packages = with pkgs; [dunst inotify-tools];
  }