feat: picom shadow and blur

This commit is contained in:
Piyush Raj Mishra 2026-02-05 15:35:40 +05:30
parent 89af066859
commit ffb4e3acb5
1 changed files with 31 additions and 28 deletions

View File

@ -59,10 +59,10 @@ glx-swap-method = 2;
# Enabled client-side shadows on windows.
shadow = true;
shadow-radius = 20;
shadow-offset-x = -20;
shadow-offset-y = -20;
shadow-opacity = 0.25;
shadow-radius = 40;
shadow-offset-x = -40;
shadow-offset-y = -40;
shadow-opacity = 0.75;
# Set if you want different colour shadows
# shadow-red = 0.0;
@ -76,16 +76,19 @@ shadow-exclude = [
"! name~=''",
"name *= 'VLC'",
"name *= 'compton'",
"name *= 'picom'",
# "name *= 'picom'",
"name *= 'Chromium'",
"name *= 'Chrome'",
"name *= 'brave'",
"name *= 'BitwigStudio'",
"window_type = 'popup_menu'",
"window_type = 'dropdown_menu'",
"window_type = 'menu'",
"class_g = 'Firefox' && argb",
"class_g = 'Conky'",
"class_g ?= 'Notify-osd'",
"_GTK_FRAME_EXTENTS@:c",
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
# "_GTK_FRAME_EXTENTS@:c",
# "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
];
# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners)
# shadow-ignore-shaped = true;
@ -148,27 +151,27 @@ inactive-opacity-override = false;
#
#################################
blur:
{
method = "gaussian";
size = 20;
deviation = 20;
};
# blur:
# {
# method = "gaussian";
# size = 20;
# deviation = 20;
# };
# experimental-backends = true;
#
# blur: {
# method = "dual_kawase";
# strength = 4;
# background = false;
# background-frame = false;
# background-fixed = false;
# }
experimental-backends = true;
blur: {
method = "dual_kawase";
strength = 8;
background = false;
background-frame = false;
background-fixed = false;
}
# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
# blur-background = false;
# blur-background = true;
# Blur background of opaque windows with transparent frames as well.
# blur-background-frame = true;
# blur-background-frame = false;
# Do not let blur radius adjust based on window opacity.
# blur-kern = "3x3box"
@ -190,7 +193,7 @@ blur-background-exclude = [
"name *= 'touchegg'",
"name *= 'ONLYOFFICE'",
"name *= 'xfce4-screenshooter'",
"name *= 'Floorp'"
"name *= 'Floorp'",
];
#################################
@ -202,11 +205,11 @@ blur-background-exclude = [
# Fade windows during opacity changes.
fading = true;
# The time between steps in a fade in milliseconds. (default 10).
fade-delta = 2;
fade-delta = 0;
# Opacity change between steps while fading in. (default 0.028).
fade-in-step = 0.020;
fade-in-step = 0.03;
# Opacity change between steps while fading out. (default 0.03).
fade-out-step = 0.020;
fade-out-step = 0.03;
# Fade windows in/out when opening/closing
# no-fading-openclose = true;