wm-logs/home/config/picom/picom.conf

97 lines
1.9 KiB
Plaintext
Raw Normal View History

# 常规设置
2023-06-29 00:41:31 +08:00
backend = "glx";
vsync = true;
2023-07-20 19:32:06 +08:00
# 圆角
corner-radius = 4;
rounded-corners-exclude = [
# "window_type = 'normal'",
"window_type = 'dock'",
"window_type = 'desktop'",
"class_g ?= 'rofi'",
"class_g ?= 'polybar'"
];
# 阴影
shadow = true;
shadow-radius = 12;
shadow-opacity = 0.3;
shadow-offset-x = -8;
shadow-offset-y = -8;
shadow-exclude = [
# wine 应用不加阴影
"class_g *= '.exe'",
# chrome
"name *= 'Chrome'",
2023-07-20 19:32:06 +08:00
"class_g ?= 'rofi'",
"class_g = 'io.github.celluloid_player.Celluloid'",
"class_g = 'gnome-builder'",
2023-07-05 12:49:35 +08:00
# 这个是啥我也不清楚, 大家都写
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'",
2023-07-05 12:49:35 +08:00
# 这个大概是gtk4应用
"_GTK_FRAME_EXTENTS@:c"
]
# 渐隐渐现
fading = true;
fade-in-step = 0.03;
fade-out-step = 0.03;
fade-delta = 5;
fade-exclude = [
"class_g *= 'fcitx'"
]
# 透明度
opacity-rule = [
# telegram pop media viewer
"100:name = 'Media viewer'",
2023-07-20 19:32:06 +08:00
"100:class_g = 'Gnome-boxes'",
"100:class_g = 'gnome-builder'",
"100:class_g = 'io.github.celluloid_player.Celluloid'",
"100:name *= 'Chrome'",
"100:class_g *= '.exe'"
]
# 模糊
#
blur-background = true;
blur-background-frame = false;
blur-method = "dual_kawase";
blur-size = 3;
blur-background-exclude = [
# wine 应用不加模糊
"class_g *= '.exe'",
2023-07-20 19:32:06 +08:00
"window_type = 'dock'",
"window_type = 'desktop'",
2023-07-20 19:32:06 +08:00
"window_type = 'tooltip'",
# "window_type = 'popup_menu'",
"class_g = 'io.github.celluloid_player.Celluloid'",
"class_g = 'gnome-builder'",
"_GTK_FRAME_EXTENTS@:c"
];
wintypes:
{
tooltip = {fade = true; shadow = false; opacity = 0.93;}
normal = {fade = true; shadow = true; focus = true; opacity = 0.93;}
fullscreen = {fade = true; shadow = false; focus = true; opacity = 1.0;}
dock = {shadow = false;}
utility = {shadow = false;}
dnd = {shadow = true;}
2023-07-20 19:32:06 +08:00
popup_menu = { shadow = false; opacity = 0.93;}
dropdown_menu = { shadow = false; opacity = 0.93;}
}