aboutsummaryrefslogtreecommitdiff
path: root/home-manager/homeModules/picom.nix
blob: af57002f894b27df88b6d66d3138dde679a9566b (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
{ pkgs, config, lib, ... }:

{
  options = {
    picom.enable = lib.mkEnableOption "enable picom";
  };

  config = lib.mkIf config.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;
        };
      };
    };
  };
}