summary refs log tree commit diff stats
path: root/user/settings/dunst.nix
blob: 0232d47fbcaf403496734b62837b50137ab535a9 (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
{
  config,
  pkgs,
  ...
}: {
  services.dunst = {
    enable = true;
    settings = {
      global = {
        font = "Monospace 13";
        geometry = "300x10-10+30";
        follow = "none";
        sticky_history = "yes";
        history_length = 20;
        show_indicators = "yes";
        separator_height = 2;
        padding = 8;
        horizontal_padding = 8;
        idle_threshold = 30;

        dmenu = "${pkgs.rofi}/bin/dmenu -p dunst";

        indicate_hidden = "no";

        allow_markup = "yes";
        format = "<b>%s</b>\\n%b";
        word_wrap = "yes";
        ignore_newline = "no";

        separator_color = "frame";

        mouse_left_click = "do_action";
        mouse_right_click = "close_current";
      };
      frame = {
        width = 1;
        color = "#383838";
      };
      shortcuts = {
        close = "mod4+apostrophe";
        close_all = "mod4+shift+apostrophe";
        history = "mod4+grave";
        context = "mod4+shift+period";
      };
      urgency_low = {
        background = "#b8b8b8";
        foreground = "#f8f8f8";
        timeout = 10;
      };

      urgency_normal = {
        background = "#7cafc2";
        foreground = "#f8f8f8";
        timeout = 10;
      };

      urgency_critical = {
        background = "#ab4642";
        foreground = "#f8f8f8";
        timeout = 0;
      };
    };
  };
}