-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdunst.nix
81 lines (74 loc) · 2.15 KB
/
dunst.nix
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
76
77
78
79
80
81
{ pkgs, ... }:
{
services.dunst = {
enable = true;
settings =
let
transparency = "DD";
in
{
global = {
follow = "mouse";
width = 300;
height = 300;
origin = "top-right";
offset = "10x50";
scale = 0;
notification_limit = 0;
indicate_hidden = true;
separator_height = 2;
padding = 6;
horizontal_padding = 6;
text_icon_padding = 0;
frame_width = 3;
frame_color = "#8EC07C${transparency}";
sort = true;
idle_threshold = 0;
font = "Meslo Nerd Font 11";
line_height = 3;
markup = "full";
format = "<b>%s</b>\\n%b";
alignment = "center";
vertical_alignment = "top";
show_age_threshold = 10;
ellipsize = "middle";
ignore_newline = false;
stack_duplicates = true;
hide_duplicate_count = false;
show_indicators = true;
icon_position = "left";
min_icon_size = 0;
max_icon_size = 32;
sticky_history = true;
history_length = 10000;
dmenu = "${pkgs.rofi}/bin/rofi -dmenu";
browser = "xdg-open";
always_run_script = true;
title = "Dunst";
class = "Dunst";
corner_radius = 0;
mouse_left_click = "close_current";
mouse_middle_click = "do_action, close_current";
mouse_right_click = "close_all";
};
urgency_low = {
background = "#191311${transparency}";
foreground = "#3B7C87${transparency}";
frame_color = "#3B7C87${transparency}";
timeout = 10;
};
urgency_normal = {
background = "#191311${transparency}";
foreground = "#5B8234${transparency}";
frame_color = "#5B8234${transparency}";
timeout = 10;
};
urgency_critical = {
background = "#191311${transparency}";
foreground = "#B7472A${transparency}";
frame_color = "#B7472A${transparency}";
timeout = 0;
};
};
};
}