aboutsummaryrefslogtreecommitdiff
path: root/services/dunst.nix
blob: 6037d67f493cd7d66cc0e1571fb4ebf39c3041e9 (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
, ...
}:

with theme;
{
  services.dunst = {
    enable = true;
    settings = {
      global = {
        font = "Input 9";
        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";
        transparency = "0";
        idle_threshold = "120";
        monitor = "0";
        follow = "mouse";
        sticky_history = "yes";
        history_length = "20";
        icon_folders = "/usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/";
        show_indicators = "yes";
        line_height = "0";
        separator_height = "0";
        padding = "20";
        horizontal_padding = "20";
        separator_color = "auto";
        startup_notification = "false";
      };

      urgency_normal = {
        background = base00;
        foreground = base05;
        timeout = 10;
      };

      urgency_low = {
        background = base00;
        foreground = base05;
        timeout = 2;
      };

      urgency_critical = {
        background = base00;
        foreground = base05;
        timeout = 0;
      };

      frame = {
        width = 0;
        color = base00;
      };

      shortcuts = {
        close = "ctrl+space";
        close_all = "ctrl+shift+space";
        history = "ctrl+grave";
        context = "ctrl+shift+period";
      };
    };
  };
}