aboutsummaryrefslogtreecommitdiff
path: root/home/rices/nord-blue/picom.nix
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-03-30 20:46:26 +0200
committerNatasha Moongrave <natasha@256phi.eu>2026-03-30 20:46:26 +0200
commit67e324107e05f3245ddac034607afd0e1dea478f (patch)
treed14a4b6e98fc707c72e24f0879b0e4297aaad78f /home/rices/nord-blue/picom.nix
parent2316eab54de77c351e88c5657eeaaa703ff4c498 (diff)
Refactored the entire configuration
Diffstat (limited to 'home/rices/nord-blue/picom.nix')
-rw-r--r--home/rices/nord-blue/picom.nix54
1 files changed, 54 insertions, 0 deletions
diff --git a/home/rices/nord-blue/picom.nix b/home/rices/nord-blue/picom.nix
new file mode 100644
index 0000000..06cf94a
--- /dev/null
+++ b/home/rices/nord-blue/picom.nix
@@ -0,0 +1,54 @@
+{pkgs, ...}: {
+ services.picom = {
+ enable = true;
+ package = pkgs.picom-pijulius;
+
+ settings = {
+ backend = "glx";
+ vsync = true;
+
+ # Opacity
+ inactive-opacity = 0.9;
+ active-opacity = 1.0;
+
+ # Fading
+ fading = true;
+ fade-delta = 5;
+ fade-in-step = 0.09;
+ fade-out-step = 0.09;
+
+ # Shadows
+ shadow = true;
+ shadow-radius = 15;
+ shadow-opacity = 0.5;
+ shadow-offset-x = 12;
+ shadow-offset-y = 12;
+ shadow-exclude = [
+ "class_g = 'i3-frame'"
+ "window_type = 'dock'"
+ "window_type = 'desktop'"
+ "name = 'dmenu'"
+ "class_g = 'dmenu'"
+ ];
+
+ # Rounded corners
+ corner-radius = 15;
+ round-borders = 1;
+ rounded-corners-exclude = [
+ "class_g = 'i3-frame'"
+ "window_type = 'dock'"
+ ];
+
+ # Animations
+ animations = true;
+ animation-stiffness = 25;
+ animation-dampening = 1;
+ animation-window-mass = 0.01;
+ animation-for-open-window = "zoom";
+ animation-for-unmap-window = "slide-up";
+ animation-for-transient-window = "zoom";
+ animation-for-move-window = "slide";
+ animation-for-resize-window = "stretch";
+ };
+ };
+}