{ pkgs, ... }: { services.picom = { enable = true; backend = "xrender"; # TODO: figure out why this is so slooo fade = false; # The time between steps in a fade in milliseconds. fadeDelta = 10; fadeSteps = [ 0.03 0.03 ]; # Enabled client-side shadows on windows. shadow = true; shadowOffsets = [ (-5) (-5) ]; # The translucency for shadows. (default .75) shadowOpacity = 0.5; vSync = true; inactiveOpacity = 1; activeOpacity = 1; opacityRules = [ "85:class_g = 'Alacritty' && focused" "60:class_g = 'Alacritty' && !focused" ]; settings = { #blur = { # background = true; # method = "kernel"; # kern = "7x7gaussian"; # strength = 20; #}; detect-rounded-corners = true; shadow-ignore-shaped = false; }; wintypes = { tooltip = { # fade: Fade the particular type of windows. fade = true; # shadow: Give those windows shadow shadow = false; # opacity: Default opacity for the type of windows. opacity = 0.85; # focus: Whether to always consider windows of this type focused. focus = true; }; }; }; }