mirror of
https://github.com/tuxdotrs/nixos-config.git
synced 2025-07-07 02:06:34 +05:30
replace picom-pijulius with picom-next
This commit is contained in:
@ -1,23 +1,42 @@
|
|||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
services.picom = {
|
services.picom = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.picom-next;
|
||||||
|
|
||||||
|
backend = "glx";
|
||||||
|
vSync = true;
|
||||||
|
|
||||||
fade = true;
|
fade = true;
|
||||||
fadeDelta = 5;
|
fadeDelta = 10;
|
||||||
fadeSteps = [ 0.05 0.05 ];
|
fadeSteps = [ 0.05 0.05 ];
|
||||||
fadeExclude = [
|
fadeExclude = [
|
||||||
"window_type *= 'menu'"
|
"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 = {
|
settings = {
|
||||||
experimental-backend = true;
|
|
||||||
backend = "glx";
|
|
||||||
glx-no-stencil = true;
|
glx-no-stencil = true;
|
||||||
glx-copy-from-font = false;
|
glx-copy-from-font = false;
|
||||||
use-damage = false;
|
use-damage = false;
|
||||||
|
|
||||||
|
frame-opacity = 1;
|
||||||
|
blur-background = true;
|
||||||
|
blur-method = "dual_kawase";
|
||||||
|
blur-strength = 6;
|
||||||
|
|
||||||
corner-radius = 0;
|
corner-radius = 0;
|
||||||
|
|
||||||
|
# pijulius specifics
|
||||||
animations = true;
|
animations = true;
|
||||||
animation-stiffness = 500;
|
animation-stiffness = 500;
|
||||||
animation-window-mass = 1.0;
|
animation-window-mass = 1.0;
|
||||||
@ -30,23 +49,11 @@
|
|||||||
animation-for-menu-window = "slide-down";
|
animation-for-menu-window = "slide-down";
|
||||||
animation-for-transient-window = "slide-down";
|
animation-for-transient-window = "slide-down";
|
||||||
animation-for-unmap-window = "slide-up";
|
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-next-tag = "slide-right";
|
||||||
|
animation-for-prev-tag = "slide-left";
|
||||||
enable-fading-next-tag = true;
|
enable-fading-next-tag = true;
|
||||||
|
enable-fading-prev-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;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
#});
|
#});
|
||||||
|
|
||||||
awesome = inputs.nixpkgs-f2k.packages.${prev.system}.awesome-git.override { lua = prev.lua53Packages.lua; };
|
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
|
# When applied, the unstable nixpkgs set (declared in the flake inputs) will
|
||||||
|
Reference in New Issue
Block a user