aboutsummaryrefslogtreecommitdiff
path: root/services/dunst.nix
blob: b0b1e673b4cd23792eb172284326b66ff7734506 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{ config
, pkgs
, theme
, font
, ...
}:

with theme;
{
  services.dunst = {
    enable = true;
    settings = {
      global = {
        font = "${font.name} 10";
        allow_markup = "no";
        format = ''%s\n%b'';
        sort = "yes";
        indicate_hidden = "yes";
        alignment = "right";
        bounce_freq = "0";
        show_age_threshold = "60";
        word_wrap = "yes";
        ignore_newline = "no";
        geometry = "300x8-20+20";
        shrink = "yes";
        frame_width = 1;
        transparency = "0";
        idle_threshold = "120";
        monitor = "0";
        follow = "mouse";
        sticky_history = "yes";
        history_length = "20";
        icon_position = "off";
        show_indicators = "yes";
        line_height = "0";
        separator_height = "0";
        padding = "20";
        horizontal_padding = "20";
        separator_color = "auto";
        startup_notification = "false";
        stack_duplicates = "true";
        mouse_left_click = "close_current";
        mouse_middle_click = "do_action, close_current";
        mouse_right_click = "close_all";
        gap_size = 12;
        progress_bar_height = 4;
        progress_bar_corner_radius = 4;
      };

      urgency_normal = {
        background = base00;
        foreground = base05;
        frame_color = base01;
        timeout = 5;
      };

      urgency_low = {
        background = base00;
        foreground = base05;
        frame_color = base01;
        timeout = 3;
      };

      urgency_critical = {
        background = base0C;
        foreground = base00;
        frame_color = base0C;
        timeout = 5;
      };
    };
  };
}