configured picom
This commit is contained in:
parent
af4c4b6df9
commit
4f89114ed2
2 changed files with 55 additions and 0 deletions
1
home.nix
1
home.nix
|
|
@ -24,6 +24,7 @@ in
|
||||||
./programm_configs/vscode.nix
|
./programm_configs/vscode.nix
|
||||||
./programm_configs/rofi.nix
|
./programm_configs/rofi.nix
|
||||||
./programm_configs/i3.nix
|
./programm_configs/i3.nix
|
||||||
|
./programm_configs/picom.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# The home.packages option allows you to install Nix packages into your
|
# The home.packages option allows you to install Nix packages into your
|
||||||
|
|
|
||||||
54
programm_configs/picom.nix
Normal file
54
programm_configs/picom.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.picom = {
|
||||||
|
enable = true;
|
||||||
|
backend = "xrender";
|
||||||
|
fade = true;
|
||||||
|
|
||||||
|
# The time between steps in a fade in milliseconds.
|
||||||
|
fadeDelta = 10;
|
||||||
|
fadeSteps = [ 0.03 0.03 ];
|
||||||
|
|
||||||
|
# Enabled client-side shadows on windows.
|
||||||
|
shadow = true;
|
||||||
|
shadowOffsets = [ (-5) (-5) ];
|
||||||
|
# The translucency for shadows. (default .75)
|
||||||
|
shadowOpacity = 0.5;
|
||||||
|
|
||||||
|
vSync = true;
|
||||||
|
|
||||||
|
inactiveOpacity = 1;
|
||||||
|
activeOpacity = 1;
|
||||||
|
|
||||||
|
opacityRules = [
|
||||||
|
"85:class_g = 'Alacritty' && focused"
|
||||||
|
"60:class_g = 'Alacritty' && !focused"
|
||||||
|
];
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
blur = {
|
||||||
|
background = true;
|
||||||
|
method = "kernel";
|
||||||
|
kern = "7x7gaussian";
|
||||||
|
strength = 20;
|
||||||
|
};
|
||||||
|
detect-rounded-corners = true;
|
||||||
|
shadow-ignore-shaped = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
wintypes = {
|
||||||
|
tooltip =
|
||||||
|
{
|
||||||
|
# fade: Fade the particular type of windows.
|
||||||
|
fade = true;
|
||||||
|
# shadow: Give those windows shadow
|
||||||
|
shadow = false;
|
||||||
|
# opacity: Default opacity for the type of windows.
|
||||||
|
opacity = 0.85;
|
||||||
|
# focus: Whether to always consider windows of this type focused.
|
||||||
|
focus = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue