更新picom配置

master
yutent 2023-07-20 11:32:06 +00:00 committed by GitHub
parent ef098951df
commit 101f3e6d66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 8 deletions

View File

@ -2,6 +2,18 @@
backend = "glx";
vsync = true;
# 圆角
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;
@ -14,6 +26,11 @@ shadow-exclude = [
"class_g *= '.exe'",
# chrome
"name *= 'Chrome'",
"class_g ?= 'rofi'",
"class_g = 'io.github.celluloid_player.Celluloid'",
"class_g = 'gnome-builder'",
# 这个是啥我也不清楚, 大家都写
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'",
@ -31,7 +48,6 @@ fade-out-step = 0.03;
fade-delta = 5;
fade-exclude = [
"class_g = 'slop'",
"class_g *= 'fcitx'"
]
@ -41,7 +57,10 @@ fade-exclude = [
opacity-rule = [
# telegram pop media viewer
"100:name = 'Media viewer'",
"100:class_g *= 'Gnome-boxes'",
"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'"
]
@ -55,10 +74,13 @@ blur-size = 3;
blur-background-exclude = [
# wine 应用不加模糊
"class_g *= '.exe'",
# "window_type = 'dock'",
"window_type = 'dock'",
"window_type = 'desktop'",
"class_g = 'slop'"
# "_GTK_FRAME_EXTENTS@:c"
"window_type = 'tooltip'",
# "window_type = 'popup_menu'",
"class_g = 'io.github.celluloid_player.Celluloid'",
"class_g = 'gnome-builder'",
"_GTK_FRAME_EXTENTS@:c"
];
wintypes:
@ -69,6 +91,6 @@ wintypes:
dock = {shadow = false;}
utility = {shadow = false;}
dnd = {shadow = true;}
popup_menu = {shadow = false; opacity = 0.93;}
dropdown_menu = {shadow = false; opacity = 0.93;}
}
popup_menu = { shadow = false; opacity = 0.93;}
dropdown_menu = { shadow = false; opacity = 0.93;}
}