aboutsummaryrefslogtreecommitdiffstats
path: root/home/dunst/default.nix
blob: 8a5f4ad9a510ab2350a864d6fd398a477bbfb4c7 (plain) (blame)
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
73
74
75
{ config, pkgs, ... }: {
  services.dunst = {
    enable = true;
    settings = {
      global = {
        alignment = "center";
        allow_markup = true;
        browser =
          "${config.programs.firefox.package}/bin/firefox -new-tab";
        bounce_freq = 0;
        corner_radius = 5;
        dmenu = "${pkgs.rofi}/bin/rofi -dmenu";
        follow = "mouse";
        font = "Fira Code 10";
        format = ''
          <b>%s</b>
          %b
          %p'';
        frame_color = "#555555";
        frame_width = 2;
        geometry = "400-30+30";
        horizontal_padding = 15;
        icon_position = "off";
        idle_threshold = 120;
        ignore_newline = false;
        indicate_hidden = true;
        line_height = 0;
        markup = "full";
        max_icon_size = 130;
        padding = 15;
        separator_color = "frame";
        separator_height = 2;
        show_age_threshold = 60;
        shrink = true;
        sort = true;
        startup_notification = false;
        sticky_history = true;
        transparency = 0;
        word_wrap = true;
      };

      frame = {
        width = 2;
        color = "#83a598";
      };

      urgency_low = {
        frame_color = "#fabd2f";
        background = "#282828";
        foreground = "#ebdbb2";
        timeout = 5;
      };

      urgency_normal = {
        background = "#282828";
        foreground = "#ebdbb2";
        timeout = 15;
      };

      urgency_critical = {
        background = "#282828";
        foreground = "#ebdbb2";
        frame_color = "#CC241D";
        timeout = 0;
      };

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