dotfiles/modules/desktop/picom.nix

40 lines
970 B
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 = {
enable = true;
blur = false;
blurExclude = [ ];
2022-05-02 03:16:03 +00:00
# extraOptions = ''
# shadow-radius = 60
# corner-radius = 20
# '';
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;
opacityRule = [
"0:_NET_WM_STATE@[0]:32a = '_NET_WM_STATE_HIDDEN'" # Hide tabbed windows
];
2022-05-02 03:16:03 +00:00
shadow = false;
2022-05-01 16:10:38 +00:00
shadowExclude = [ ];
shadowOffsets = [ (-30) (-30) ];
shadowOpacity = "0.25";
vSync = false;
};
xsession.windowManager.i3.config.startup = [{
command = "systemctl --user restart picom";
always = true;
notification = false;
}];
};
};
}