aboutsummaryrefslogtreecommitdiff
path: root/modules/homeModules/picom.nix
blob: a7835eb341dd24a38a5b227b38b1a0baae40ae33 (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
{inputs, ...}: {
  flake.homeModules.picom = {
    pkgs,
    config,
    lib,
    ...
  }: {
    options.customs = {
      picom.enable = lib.mkEnableOption "enable picom";
    };

    config = lib.mkIf config.customs.picom.enable {
      services.picom = {
        enable = true;
        settings = {
          fading = true;
          fade-delta = 3;
          blur-background = false;
          corner-radius = 8;
          # blur = {
          #   method = "dual_kawase";
          #   size = 12;
          #   deviation = false;
          #   strength = 2;
          #   kern = "3x3box";
          # };
          backend = "glx";
          vsync = true;
          mark = {
            wmwin-focused = true;
            overdir-focused = true;
          };
          detect = {
            rounded-corners = true;
            client-opacity = true;
            transient = true;
          };
          use-ewmh-active-win = true;
          glx-no-stencil = true;
          use-damage = true;
        };
        wintypes = {
          tooltip = {
            fade = true;
            shadow = true;
            full-shadow = false;
            blur = false;
            focus = true;
          };
          dock = {
            shadow = false;
          };
        };
      };
    };
  };
}