# # Compositor # { config, lib, pkgs, ... }: { systemd.user.services.picom = lib.mkIf config.services.picom.enable { Unit = { PartOf = lib.mkForce [ "qtile-services.target" ]; }; Install = { WantedBy = lib.mkForce [ "qtile-services.target" ]; }; }; services.picom = { enable = true; package = pkgs.picom; backend = "glx"; # Rendering either with glx or xrender. You'll know if you need to switch this. vSync = true; # Should fix screen tearing #activeOpacity = 0.93; # Node transparency #inactiveOpacity = 0.93; #menuOpacity = 0.93; shadow = false; # Shadows shadowOpacity = 0.75; fade = true; # Fade fadeDelta = 10; opacityRules = [ # Opacity rules if transparency is prefered # "100:name = 'Picture in picture'" # "100:name = 'Picture-in-Picture'" # "85:class_i ?= 'rofi'" # "90:class_i *= 'discord'" # "90:class_i *= 'telegram-desktop'" # "90:class_i *= 'emacs'" # "90:class_i *= 'Alacritty'" # "100:fullscreen" ]; # Find with $ xprop | grep "WM_CLASS" settings = { daemon = true; use-damage = false; # Fixes flickering and visual bugs with borders resize-damage = 1; refresh-rate = 0; corner-radius = 5; # Corners round-borders = 5; # Extras detect-rounded-corners = true; # Below should fix multiple issues detect-client-opacity = false; detect-transient = true; detect-client-leader = false; mark-wmwim-focused = true; mark-ovredir-focues = true; unredir-if-possible = true; glx-no-stencil = true; glx-no-rebind-pixmap = true; }; # Extra options for picom.conf (mostly for pijulius fork) }; }