aboutsummaryrefslogtreecommitdiff
path: root/modules/home/i3wm/nord-blue/picom.nix
blob: 60b015dc7485a048f51e2599943f4992b159743c (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
58
59
60
61
62
63
64
65
66
67
68
{ pkgs, config, lib, ... }:


{
  services.picom = {
    enable = true;
    package = pkgs.picom-pijulius;

    settings = {
      ### Backend
      backend = "glx";
      vsync = true;

      ### Opacity
      inactive-opacity = 0.9;
      active-opacity = 1.0;

      ### Fading
      fading = true;
      fade-delta = 5;
      fade-in-step = 0.09;
      fade-out-step = 0.09;

      

      ### Shadows
      shadow = true;
      shadow-radius = 15;
      shadow-opacity = 0.5;
      shadow-offset-x = 12;
      shadow-offset-y = 12;

      shadow-exclude = [
        "class_g = 'i3-frame'"
        "window_type = 'dock'"
        "window_type = 'desktop'"
        "name = 'dmenu'"
        "class_g = 'dmenu'"
      ];

      ### Rounded corners
      corner-radius = 15;
      round-borders = 1;

      rounded-corners-exclude = [
        "class_g = 'i3-frame'"
        "window_type = 'dock'"
      ];

      ### Animations
      animations = true;

      # Physics tuning (higher = snappier)
      animation-stiffness = 25;
      animation-dampening = 1;
      animation-window-mass = 0.01;

      ### Per-action animations
      animation-for-open-window = "zoom";
      animation-for-unmap-window = "slide-up";
      animation-for-transient-window = "zoom";

      # Moving / resizing
      animation-for-move-window = "slide";
      animation-for-resize-window = "stretch";
    };
  };
}