2024-04-20 13:42:06 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2022-05-01 16:10:38 +00:00
|
|
|
|
2022-12-21 21:18:03 +00:00
|
|
|
config = lib.mkIf (pkgs.stdenv.isLinux && config.services.xserver.enable) {
|
2022-11-03 01:29:14 +00:00
|
|
|
home-manager.users.${config.user} = {
|
2022-05-01 16:10:38 +00:00
|
|
|
|
2022-11-03 01:29:14 +00:00
|
|
|
services.picom = {
|
|
|
|
enable = true;
|
|
|
|
backend = "glx";
|
|
|
|
settings = {
|
|
|
|
blur = false;
|
|
|
|
blurExclude = [ ];
|
|
|
|
inactiveDim = "0.05";
|
|
|
|
noDNDShadow = false;
|
|
|
|
noDockShadow = false;
|
|
|
|
# shadow-radius = 20
|
|
|
|
# '';
|
|
|
|
# shadow-radius = 20
|
|
|
|
# corner-radius = 10
|
|
|
|
# blur-size = 20
|
|
|
|
# rounded-corners-exclude = [
|
|
|
|
# "window_type = 'dock'",
|
|
|
|
# "class_g = 'i3-frame'"
|
|
|
|
# ]
|
|
|
|
# '';
|
2022-05-06 03:01:56 +00:00
|
|
|
};
|
2022-11-03 01:29:14 +00:00
|
|
|
fade = false;
|
|
|
|
inactiveOpacity = 1.0;
|
|
|
|
menuOpacity = 1.0;
|
|
|
|
opacityRules = [
|
|
|
|
"0:_NET_WM_STATE@[0]:32a = '_NET_WM_STATE_HIDDEN'" # Hide tabbed windows
|
|
|
|
];
|
|
|
|
shadow = false;
|
|
|
|
shadowExclude = [ ];
|
2024-04-20 13:42:06 +00:00
|
|
|
shadowOffsets = [
|
|
|
|
(-10)
|
|
|
|
(-10)
|
|
|
|
];
|
2022-11-03 01:29:14 +00:00
|
|
|
shadowOpacity = 0.5;
|
|
|
|
vSync = true;
|
|
|
|
};
|
2022-05-01 16:10:38 +00:00
|
|
|
|
2024-04-20 13:42:06 +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-11-03 01:29:14 +00:00
|
|
|
};
|
2022-05-01 16:10:38 +00:00
|
|
|
}
|