-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpicom.nix
49 lines (47 loc) · 1.08 KB
/
picom.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
{
config,
lib,
pkgs,
...
}:
let
cfg = config.modules.picom;
in
{
options.modules.picom = {
enable = lib.mkEnableOption "picom";
};
config = lib.mkIf cfg.enable {
services.picom = {
enable = true;
activeOpacity = 1.0;
inactiveOpacity = 1.0;
opacityRules = [
''100:role = "browser"''
''100:class_i = "mattermost"''
''100:name *= "Thunderbird"''
''100:name *= "Minecraft"''
''100:class_i = "rofi"''
''100:class_i = "DBeaver"''
''100:class_i = "emacs"''
''100:class_i = "nyxt"''
''100:class_i = "VirtualBox Machine"''
''100:class_i = "VirtualBox Manager"''
''100:class_i = "urxvt"''
''100:class_i = "element"''
''100:class_i = "DrRacket"''
''100:class_i = ".drracket-wrapped"''
''100:class_i = "code"''
''100:class_i = "Alacritty"''
];
backend = "glx";
fade = true;
fadeDelta = 5;
vSync = true;
settings = {
xrender-sync-fence = true;
corner-radius = 0;
};
};
};
}