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"; + } + ]; + }; + }; +}