From e15777ab935da7957a440c1e09ae0791575c5aed Mon Sep 17 00:00:00 2001 From: Fabian Montero Date: Tue, 17 Sep 2024 19:36:41 -0600 Subject: [PATCH] add picom config --- .../fabian@posixlycorrect/gui/default.nix | 2 +- .../fabian@posixlycorrect/gui/picom.nix | 42 +++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 home/platforms/fabian@posixlycorrect/gui/picom.nix diff --git a/home/platforms/fabian@posixlycorrect/gui/default.nix b/home/platforms/fabian@posixlycorrect/gui/default.nix index d649b87..dd66640 100644 --- a/home/platforms/fabian@posixlycorrect/gui/default.nix +++ b/home/platforms/fabian@posixlycorrect/gui/default.nix @@ -10,10 +10,10 @@ ./i3.nix ./polybar.nix ./startx.nix + ./picom.nix ]; services = { - picom.enable = true; dunst.enable = true; betterlockscreen.enable = true; }; diff --git a/home/platforms/fabian@posixlycorrect/gui/picom.nix b/home/platforms/fabian@posixlycorrect/gui/picom.nix new file mode 100644 index 0000000..22a18ab --- /dev/null +++ b/home/platforms/fabian@posixlycorrect/gui/picom.nix @@ -0,0 +1,42 @@ +{ + config, + pkgs, + lib, + ... +}: { + services.picom = { + enable = true; + fade = true; + fadeSteps = [0.1 0.1]; + fadeDelta = 10; + settings = { + animations = [ + { + triggers = [ + "open" + "show" + ]; + + preset = "appear"; + duration = "1"; + } + { + triggers = [ + "close" + "hide" + ]; + + preset = "disappear"; + duration = "1"; + } + { + triggers = [ + "geometry" + ]; + preset = "geometry-change"; + duration = "1"; + } + ]; + }; + }; +}