-
Notifications
You must be signed in to change notification settings - Fork 3
/
swaync.nix
89 lines (83 loc) · 1.93 KB
/
swaync.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
82
83
84
85
86
87
88
89
{
config,
lib,
...
}: {
services.swaync = {
enable = true;
settings = {
positionX = "right";
positionY = "top";
layer = "overlay";
layer-shell = true;
cssPriority = "application";
control-center-layer = "top";
control-center-width = 800;
control-center-height = 1600;
control-center-margin-top = 0;
control-center-margin-bottom = 0;
control-center-margin-right = 0;
control-center-margin-left = 0;
notification-window-width = 800;
notification-2fa-action = true;
notification-inline-replies = false;
notification-icon-size = 64;
notification-body-image-height = 100;
notification-body-image-width = 200;
keyboard-shortcuts = true;
image-visibility = "when-available";
transition-time = 100;
widgets = [
"inhibitors"
"dnd"
"mpris"
"notifications"
];
widget-config = {
inhibitors = {
text = "Inhibitors";
button-text = "Clear All";
clear-all-button = true;
};
title = {
text = "Notifications";
clear-all-button = true;
button-text = "Clear All";
};
dnd = {
text = "Do Not Disturb";
};
label = {
max-lines = 5;
text = "Label Text";
};
mpris = {
image-size = 96;
blur = true;
};
};
};
style =
lib.concatLines (
map (c: "@define-color ${c} ${config.lib.stylix.colors.withHashtag.${c}};") [
"base00"
"base01"
"base02"
"base03"
"base04"
"base05"
"base06"
"base07"
"base08"
"base09"
"base0A"
"base0B"
"base0C"
"base0D"
"base0E"
"base0F"
]
)
+ (builtins.readFile ./swaync-style.css);
};
}