From 3129db954f15e95d5a6057295c477bf599b5e508 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 7 Nov 2022 20:12:33 -0500 Subject: Make pretty with picom --- profiles/laptop.nix | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/profiles/laptop.nix b/profiles/laptop.nix index e7096cb..c1eab46 100644 --- a/profiles/laptop.nix +++ b/profiles/laptop.nix @@ -71,4 +71,47 @@ }; }; }; + + services.betterlockscreen.enable = true; + + services.picom = { + enable = true; + experimentalBackends = true; + backend = "glx"; + vSync = true; + + # Transparency/Opacity + inactiveOpacity = 0.80; + activeOpacity = 0.95; + opacityRules = [ + "100:class_g *?= 'Firefox'" + "100:class_g *?= 'Deadd-notification-center'" + "100:class_g *?= 'Rofi'" + ]; + + # Fading + fade = true; + fadeDelta = 5; + + # Shadows + shadowExclude = [ + "class_g = 'eww-topbar-btw'" + ]; + + settings = { + # Blur + blur-method = "dual_kawase"; + blur-strength = 8; + blur-backgroud-exclude = [ + "class_g = 'eww-topbar-btw'" + ]; + + # Radius + corner-radius = 10; + round-borders = 1; + rounded-corners-exclude = [ + "class_g = 'Custom-taffybar'" + ]; + }; + }; } -- cgit v1.2.3