Fix: Picom in its own file

This commit is contained in:
DuN0z 2025-10-29 09:08:35 +01:00
parent 567d2949f9
commit 667179af2a
2 changed files with 5 additions and 13 deletions

View file

@ -4,6 +4,9 @@
lib,
...
}: {
imports = [
../common/picom.nix
];
home.packages = with pkgs; [
bspwm
sxhkd
@ -13,7 +16,6 @@
rofi
feh
font-awesome
picom
xorg.xset
xidlehook
betterlockscreen
@ -29,7 +31,6 @@
protonvpn-gui
];
# Gère le ssh-agent proprement côté user
services.ssh-agent.enable = true;
xsession = {
@ -37,7 +38,6 @@
windowManager.bspwm = {
enable = true;
# Démarrages au login X
startupPrograms = [
"sxhkd -m 1"
"setxkbmap bepovim"
@ -55,14 +55,6 @@
};
};
# xsession.initExtra = ''
# xset s 300 300
# xset s on
# xset s noblank
# xset +dpms
# xset dpms 0 0 500
# '';
services = {
sxhkd = {
enable = true;
@ -138,7 +130,6 @@
};
};
# xidlehook (user service)
systemd.user.services.xidlehook = {
Unit.Description = "Idle: lock at 5min, suspend at ~8min";
Service = {

View file

@ -1,50 +0,0 @@
_: {
services.picom = {
enable = true;
backend = "glx"; # plus fluide si ta carte gère bien OpenGL
fade = true;
fadeDelta = 5; # vitesse fondu
shadow = true;
shadowOpacity = 0.5;
vSync = true; # évite le tearing
settings = {
# Transparence
inactive-opacity = 0.80;
active-opacity = 0.9;
frame-opacity = 0.90;
inactive-opacity-override = false;
# Coins arrondis
corner-radius = 8;
round-borders = 1;
rounded-corners-exclude = [
"class_g = 'Polybar'"
"class_g = 'Rofi'"
];
# Flou subtil
blur-method = "dual_kawase";
blur-strength = 4;
blur-background = true;
blur-background-frame = true;
blur-background-fixed = false;
blur-background-exclude = [
"class_g = 'Polybar'"
"class_g = 'Rofi'"
"class_g = 'Gimp'"
"window_type = 'dock'"
];
# Exclusions ombres
shadow-exclude = [
"class_g = 'Polybar'"
"class_g = 'Rofi'"
"window_type = 'dock'"
"window_type = 'desktop'"
];
};
};
}
# vim: set ts=2 sw=2 sts=2 et :