From 355ebda4e0253e406c7dd1eec33177f5b916327c Mon Sep 17 00:00:00 2001 From: 0xTux <0xtux@pm.me> Date: Tue, 16 Jan 2024 19:05:03 +0530 Subject: [PATCH] replace picom-pijulius with picom-next --- modules/home-manager/picom/default.nix | 43 +++++++++++++++----------- overlays/default.nix | 1 - 2 files changed, 25 insertions(+), 19 deletions(-) diff --git a/modules/home-manager/picom/default.nix b/modules/home-manager/picom/default.nix index f0da3ee..91f89e2 100644 --- a/modules/home-manager/picom/default.nix +++ b/modules/home-manager/picom/default.nix @@ -1,23 +1,42 @@ { config, pkgs, ... }: { services.picom = { enable = true; + package = pkgs.picom-next; + + backend = "glx"; + vSync = true; fade = true; - fadeDelta = 5; + fadeDelta = 10; fadeSteps = [ 0.05 0.05 ]; fadeExclude = [ "window_type *= 'menu'" ]; + activeOpacity = 1; + inactiveOpacity = 1; + opacityRules = [ + "90:class_g = 'rofi'" + "90:class_g = 'thunar'" + "90:class_g = 'spotify'" + "90:class_g = 'discord'" + "90:class_g = 'code'" + "90:class_g = 'org.wezfurlong.wezterm'" + ]; + settings = { - experimental-backend = true; - backend = "glx"; glx-no-stencil = true; glx-copy-from-font = false; use-damage = false; + frame-opacity = 1; + blur-background = true; + blur-method = "dual_kawase"; + blur-strength = 6; + corner-radius = 0; + # pijulius specifics animations = true; animation-stiffness = 500; animation-window-mass = 1.0; @@ -30,23 +49,11 @@ animation-for-menu-window = "slide-down"; animation-for-transient-window = "slide-down"; animation-for-unmap-window = "slide-up"; - animation-for-prev-tag = "slide-left"; - enable-fading-prev-tag = true; + animation-for-next-tag = "slide-right"; + animation-for-prev-tag = "slide-left"; enable-fading-next-tag = true; - - active-opacity = 0.95; - inactive-opacity = 0.95; - opacity-rule = [ "100:class_g = 'firefox'" ]; - - shadow = false; - shadow-radius = 20; - shadow-offset-x = -20; - shadow-offset-y = -18; - - no-fading-openclose = false; - - vsync = true; + enable-fading-prev-tag = true; }; }; } diff --git a/overlays/default.nix b/overlays/default.nix index 4ef865c..8260c02 100755 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -12,7 +12,6 @@ #}); awesome = inputs.nixpkgs-f2k.packages.${prev.system}.awesome-git.override { lua = prev.lua53Packages.lua; }; - picom = inputs.nixpkgs-f2k.packages.${prev.system}.picom-pijulius; }; # When applied, the unstable nixpkgs set (declared in the flake inputs) will