2024-04-28 11:35:35 +02:00
|
|
|
{ pkgs, ... }: {
|
|
|
|
|
|
|
|
home-manager.users.grape.services.picom = {
|
|
|
|
enable = true;
|
|
|
|
backend = "glx";
|
|
|
|
vSync = false; # disable vsync to reduce input delay
|
|
|
|
extraArgs = [ "-b" "--experimental-backends" ]; # enable deamon mode and experimental backends for blur
|
2024-06-11 20:09:58 +02:00
|
|
|
|
2024-04-28 11:35:35 +02:00
|
|
|
settings = {
|
2024-08-29 18:25:03 +02:00
|
|
|
|
|
|
|
# Blurring
|
2024-04-28 11:35:35 +02:00
|
|
|
blur-method = "dual_kawase";
|
|
|
|
blur-size = 12;
|
2024-08-29 18:25:03 +02:00
|
|
|
blur-strength = 9;
|
2024-04-28 11:35:35 +02:00
|
|
|
blur-background = true;
|
|
|
|
blur-kern = "3x3box";
|
|
|
|
|
|
|
|
blur-background-exclude = [
|
|
|
|
"window_type = 'dock'"
|
|
|
|
"window_type = 'desktop'"
|
|
|
|
"_GTK_FRAME_EXTENTS@:c"
|
|
|
|
"class_g ~= 'slop'"
|
2024-05-18 01:10:04 +02:00
|
|
|
"class_g ~= 'Peek'"
|
2024-04-28 11:35:35 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
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'"
|
2024-08-29 18:25:03 +02:00
|
|
|
"80:class_g *= 'Rofi'"
|
2024-04-28 11:35:35 +02:00
|
|
|
"80:class_g *= 'lutris'"
|
|
|
|
"80:class_g *= 'Mumble'"
|
2024-07-31 07:17:52 +02:00
|
|
|
"80:class_g *= 'Feishin'"
|
|
|
|
"80:class_g *= 'feishin'"
|
2024-06-11 20:09:58 +02:00
|
|
|
"80:class_g *= 'Element'"
|
2024-04-28 11:35:35 +02:00
|
|
|
"85:class_g *= 'Logseq'"
|
|
|
|
"85:class_g *= 'Codium'"
|
|
|
|
];
|
|
|
|
|
|
|
|
# rounding
|
|
|
|
corner-radius = 15;
|
2024-08-29 18:25:03 +02:00
|
|
|
round-borders = 1;
|
2024-04-28 11:35:35 +02:00
|
|
|
use-damage = false;
|
|
|
|
|
|
|
|
inactive-opacity = 1.0;
|
|
|
|
frame-opacity = 1.0;
|
|
|
|
inactive-opacity-override = false;
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|