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