Update picom module

This commit is contained in:
Erwin Boskma 2022-12-09 10:38:47 +01:00
parent 7ce34dca30
commit 6e1ae4eb18
Signed by: erwin
SSH key fingerprint: SHA256:Vw4O4qA0i5x65Y7yyjDpWDCSMSXAhqT4X7cJ3frdnLY

View file

@ -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; };