aboutsummaryrefslogtreecommitdiff
path: root/home.nix
blob: b142b247c9e333e54fff9adddfb057ff58f2bebc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ pkgs, ... }:
{
  home.packages = with pkgs; [
    picom
    mtm
  ];

  services.picom = {
    enable = true;
    backend = "glx";
    inactiveOpacity = "0.8";
    inactiveDim = "0.3";
    opacityRule = [
      "98:class_g = 'St' && focused"
      "85:class_g = 'St' && !focused"
      "90:class_g = 'qutebrowser' && !focused"
      "100:class_g = 'qutebrowser' && focused"
    ];
    extraOptions = ''
      focus-exclude = [ "class_g = 'dwm'" "class_g = 'dmenu'"];
    '';
    menuOpacity = "0.9";
  };
}