picom: simplify configuration by using only opacity-rules

Otherwise, the interactions with inactive-opacity and wintypes are not
well-documented.
This commit is contained in:
Vincent Bernat 2021-07-07 11:10:21 +02:00
parent 28fc208332
commit 5a09a90944

View file

@ -1,20 +1,15 @@
backend = "glx";
xrender-sync-fence = true;
vsync = true;
# Detect focus
mark-ovredir-focused = true;
focus-exclude = [
"fullscreen"
];
use-ewmh-active-win = true;
# Opacity rules
inactive-opacity = 0.85;
inactive-opacity-override = true;
wintypes:
{
popup_menu = { opacity = 1; }
dropdown_menu = { opacity = 1; }
menu = { opacity = 1; }
}
# Opacity rules (first rule match)
opacity-rule = [
"100:fullscreen",
"100:name = 'Zoom Meeting'",
"100:window_type = 'popup_menu'",
"100:window_type = 'dropdown_menu'",
"100:window_type = 'menu'",
"85:!focused"
];