dotfiles/modules/graphical/picom.nix

50 lines
1.3 KiB
Nix
Raw Normal View History

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