summaryrefslogtreecommitdiff
path: root/modules/home/i3wm/dunst.nix
blob: 6f217d92f781fc6a6b7c34f5487b157a7b2eb8ee (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
45
{ config, pkgs, lib, ... }:

{
  services.dunst = {
    enable = true;

    settings = let
      colors = {
        foreground = "#d0b6fd";
        background = "#1c182d";
        alert = "#7b91fc";
      };
    in {
      global = {
        width = "(200,300)";
        height = "(0,150)";
        offset = "(30,50)";
        origin = "bottom-right";
        transparency = 10;
        frame_width = 0;
        font = "Fira Code 10";
      };

      urgency_low = {
        background = colors.background;
        foreground = colors.foreground;
        timeout = 8;
      };

      urgency_normal = {
        background = colors.background;
        foreground = colors.foreground;
        frame-size = "0";
        timeout = 10;
      };

      urgency_critical = {
        background = colors.background;
        foreground = colors.foreground;
        frame-size = "5";
        frame-color = colors.alert;
      };
    };
  };
}