From ed9de1932c8bc5090324fbab6480c952d3bc0d49 Mon Sep 17 00:00:00 2001 From: workflow <4farlion@gmail.com> Date: Wed, 7 Aug 2024 22:37:35 +0100 Subject: [PATCH] feat(compiz): exclude fullscreen windows from being opaque on focus --- home/picom.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/home/picom.nix b/home/picom.nix index c710f6f..3f2204a 100644 --- a/home/picom.nix +++ b/home/picom.nix @@ -17,8 +17,8 @@ method = "dual_kawase"; strength = 2; }; - no-fading-openclose = true; invert-color-include = ["TAG_INVERT@:8c = 1"]; + no-fading-openclose = true; }; fade = true; @@ -39,11 +39,13 @@ shadowOpacity = 0.7; opacityRules = [ + "100:_NET_WM_STATE@[0]:32a = '_NET_WM_STATE_FULLSCREEN'" # Exclude fullscreen windows from being transparent on focus + "100:_NET_WM_STATE@[1]:32a = '_NET_WM_STATE_FULLSCREEN'" # From https://github.com/yshui/picom/issues/675 + "100:_NET_WM_STATE@[2]:32a = '_NET_WM_STATE_FULLSCREEN'" + "100:_NET_WM_STATE@[3]:32a = '_NET_WM_STATE_FULLSCREEN'" + "100:_NET_WM_STATE@[4]:32a = '_NET_WM_STATE_FULLSCREEN'" "80:class_i ?= 'rofi'" "80:class_g ?= 'i3bar'" - "100:class_g ?= 'firefox'" - "100:class_i ?= 'firefox'" - "100:class_g ?= 'mpv'" ]; }; }