From 73c883b94272da32410e551fd0929253c1f77d0c Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 28 Sep 2024 21:50:23 +0200 Subject: [PATCH] picom: avoid painting shadow over dock or mpv window --- dotfiles/picom.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dotfiles/picom.conf b/dotfiles/picom.conf index bc3cb19..01e65f3 100644 --- a/dotfiles/picom.conf +++ b/dotfiles/picom.conf @@ -40,7 +40,7 @@ shadow-exclude-reg = "x@POLYBAR_HEIGHT@+0+0" wintypes: { normal = { shadow = true; }; - dock = { shadow = true; }; + dock = { shadow = true; clip-shadow-above = true; }; combo = { fade = true; }; dropdown_menu = { fade = true; }; menu = { fade = true; }; @@ -66,6 +66,9 @@ shadow-exclude = [ "name = 'Firefox — Sharing Indicator'", # Firefox "name = 'Screen Sharing Tracker'" # Jitsi ]; +clip-shadow-above = [ + "class_g = 'mpv'" +]; fade-exclude = [ ]; corner-radius = @CORNER_RADIUS@