From 6e1ae4eb18f67a709cba715b4a6eae175cd86bc7 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Fri, 9 Dec 2022 10:38:47 +0100 Subject: [PATCH] Update picom module --- home-manager/modules/picom/default.nix | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/home-manager/modules/picom/default.nix b/home-manager/modules/picom/default.nix index 7c1152d..660b5ed 100644 --- a/home-manager/modules/picom/default.nix +++ b/home-manager/modules/picom/default.nix @@ -1,13 +1,9 @@ -{ pkgs -, config +{ config , lib , ... }: with lib; let cfg = config.eboskma.programs.picom; - picom = pkgs.writeShellScriptBin "picom" '' - ${pkgs.nixgl.auto.nixGLDefault}/bin/nixGL ${pkgs.picom}/bin/picom $@ - ''; in { options.eboskma.programs.picom = { enable = mkEnableOption "activate picom"; }; @@ -17,18 +13,16 @@ in services.picom = { enable = true; - package = picom; backend = "glx"; vSync = true; - experimentalBackends = true; - fade = true; + fade = false; fadeSteps = [ 0.08 0.08 ]; shadow = true; - inactiveOpacity = 0.8; + inactiveOpacity = 0.9; opacityRules = [ "0:_NET_WM_STATE@[*]:32a = '_NET_WM_STATE_HIDDEN'" @@ -53,11 +47,11 @@ in mark-ovredir-focused = true; use-ewmh-active-win = true; blur = { - method = "gaussian"; + method = "dual_kawase"; size = 10; deviation = 5.0; }; - inactive-dim = 0.2; + inactive-dim = 0.1; wintypes = { dock = { shadow = false; };