dotfiles/modules/desktop/picom.nix

49 lines
1.2 KiB
Nix
Raw Normal View History

2022-05-01 16:10:38 +00:00
{ config, lib, identity, ... }: {
config = lib.mkIf config.services.xserver.enable {
home-manager.users.${identity.user} = {
services.picom = {
2022-05-04 00:32:47 +00:00
enable = false;
blur = true;
2022-05-01 16:10:38 +00:00
blurExclude = [ ];
2022-05-02 03:16:03 +00:00
# extraOptions = ''
2022-05-04 00:32:47 +00:00
# shadow-radius = 20
2022-05-02 03:16:03 +00:00
# '';
2022-05-04 00:32:47 +00:00
extraOptions = ''
shadow-radius = 20
corner-radius = 10
blur-size = 20
rounded-corners-exclude = [
"window_type = 'dock'",
"class_g = 'i3-frame'"
]
'';
2022-05-01 16:10:38 +00:00
fade = false;
experimentalBackends = true;
2022-05-02 03:16:03 +00:00
inactiveDim = "0.05";
2022-05-01 16:10:38 +00:00
inactiveOpacity = "1.0";
menuOpacity = "1.0";
noDNDShadow = false;
2022-05-04 00:32:47 +00:00
noDockShadow = false;
2022-05-01 16:10:38 +00:00
opacityRule = [
"0:_NET_WM_STATE@[0]:32a = '_NET_WM_STATE_HIDDEN'" # Hide tabbed windows
];
2022-05-04 00:32:47 +00:00
shadow = true;
2022-05-01 16:10:38 +00:00
shadowExclude = [ ];
2022-05-04 00:32:47 +00:00
shadowOffsets = [ (-10) (-10) ];
shadowOpacity = "0.5";
2022-05-01 16:10:38 +00:00
vSync = false;
};
xsession.windowManager.i3.config.startup = [{
command = "systemctl --user restart picom";
always = true;
notification = false;
}];
};
};
}