From 5a09a90944ee006eeef1b82c2090dbd24669ee75 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 7 Jul 2021 11:10:21 +0200 Subject: [PATCH] picom: simplify configuration by using only opacity-rules Otherwise, the interactions with inactive-opacity and wintypes are not well-documented. --- dotfiles/picom.conf | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/dotfiles/picom.conf b/dotfiles/picom.conf index e3a9eaf..895ac1e 100644 --- a/dotfiles/picom.conf +++ b/dotfiles/picom.conf @@ -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" +];