dotfiles/hosts/thinkpad/configs/picom.nix

63 lines
1.5 KiB
Nix
Executable file

{ pkgs, user, ... }:
{
home-manager.users.${user}.services.picom = {
enable = true;
backend = "glx";
vSync = false; # disable vsync to reduce input delay
extraArgs = [
"-b"
"--experimental-backends"
"--vsync"
]; # enable deamon mode and experimental backends for blur
settings = {
# Blurring
blur-method = "dual_kawase";
blur-size = 12;
blur-strength = 9;
blur-background = true;
blur-kern = "3x3box";
blur-background-exclude = [
"window_type = 'dock'"
"window_type = 'desktop'"
"_GTK_FRAME_EXTENTS@:c"
"class_g ~= 'slop'"
"class_g ~= 'Peek'"
];
opacity-rule = [
"80:class_g *= 'st'"
"80:class_g *= 'kitty'"
"80:class_g *= 'alacritty'"
"80:class_g *= 'Alacritty'"
"90:class_g *= 'jamesdsp'"
"90:class_g *= 'polybar'"
"80:class_g *= 'codium'"
"80:class_g *= 'code'"
"80:class_g *= 'Code'"
"80:class_g *= 'Rofi'"
"80:class_g *= 'lutris'"
"80:class_g *= 'Mumble'"
"80:class_g *= 'Feishin'"
"80:class_g *= 'feishin'"
"80:class_g *= 'Element'"
"85:class_g *= 'Logseq'"
"85:class_g *= 'Codium'"
];
# rounding
corner-radius = 15;
round-borders = 1;
use-damage = false;
inactive-opacity = 1.0;
frame-opacity = 1.0;
inactive-opacity-override = false;
};
};
}