From db40ef08bb61ad9f4745766fdc564ae3359098bd Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Mon, 21 Mar 2022 22:12:40 +0000 Subject: [PATCH] picom: Update to picom 9.1, enable rounded corners As always, tweak some of the visuals. Tone down the shadow opacity to make the non-rounded corner shadows less obvious. Hopefully I can undo that a bit in the future. Signed-off-by: Joe Groocock --- picom/picom.conf | 92 ++++++++++++++++++++++++++++++++---------------- 1 file changed, 61 insertions(+), 31 deletions(-) diff --git a/picom/picom.conf b/picom/picom.conf index 546d4c5..da580aa 100644 --- a/picom/picom.conf +++ b/picom/picom.conf @@ -5,12 +5,10 @@ log-level = "info"; # Shadow shadow = true; shadow-radius = 24; -shadow-offset-x = -24; -shadow-offset-y = -24; -shadow-opacity = 0.6; -# shadow-red = 0.0; -# shadow-green = 0.0; -# shadow-blue = 0.0; +shadow-offset-x = -20; +shadow-offset-y = -20; +shadow-opacity = 0.3; +shadow-color = "#000000"; shadow-exclude = [ "class_g = 'slop'", "class_g = 'Conky'", @@ -22,12 +20,13 @@ shadow-exclude = [ ]; # shadow-exclude = "n:e:Notification"; # shadow-exclude-reg = "x10+0+0"; +# shadow-ignore-shaped = true; xinerama-shadow-crop = true; # Opacity frame-opacity = 1.0; -# active-opacity = 0.8; -inactive-opacity = 0.6; +active-opacity = 1.0; +inactive-opacity = 0.5; inactive-opacity-override = true; # inactive-dim = 0.2; # inactive-dim-fixed = true; @@ -55,6 +54,9 @@ blur-background-exclude = [ "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" ]; +# Corners +corner-radius = 8; + # Fading fading = true; fade-delta = 10; @@ -64,41 +66,69 @@ no-fading-openclose = false; no-fading-destroyed-argb = false; # fade-exclude = [ ]; -# Other -backend = "glx"; -mark-wmwin-focused = true; -mark-ovredir-focused = true; -use-ewmh-active-win = true; -detect-rounded-corners = true; -detect-client-opacity = true; -refresh-rate = 0; -# vsync = true; -# sw-opti = true; -# unredir-if-possible = true; -# unredir-if-possible-delay = 5000; -# unredir-if-possible-exclude = [ ]; +# Focus focus-exclude = [ "i:ai:chromium", "class_g = 'firefox'", - "class_g = 'zoom'" + "class_g = 'zoom'", + "class_g = 'guvcview'", + "class_g = 'Entangle'", + "class_g = 'obs'", + "class_g = 'parsecd'", + "class_g = 'discord'", + "class_g = 'steam_app_271590'" ]; + +# Other +# https://github.com/yshui/picom/blob/next/picom.sample.conf#L203 +backend = "glx"; +vsync = true; +mark-wmwin-focused = true; +mark-ovredir-focused = true; +detect-rounded-corners = true; +detect-client-opacity = true; +use-ewmh-active-win = true; +# unredir-if-possible = true; +# unredir-if-possible-delay = 5000; +# unredir-if-possible-exclude = [ ]; detect-transient = true; detect-client-leader = true; invert-color-include = [ ]; -# resize-damage = 1; +resize-damage = 1; # GLX backend glx-no-stencil = true; glx-no-rebind-pixmap = true; -xrender-sync-fence = true; +# xrender-sync-fence = true; +# no-use-damage = false; use-damage = true; # Window type settings -wintypes: -{ - tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; }; - dock = { shadow = false; } - dnd = { shadow = false; } - popup_menu = { opacity = 0.8; } - dropdown_menu = { opacity = 0.8; } +wintypes: { + tooltip = { + opacity = 0.75; + full-shadow = false; + blur-background = false; + } + + dock = { + # Prevents polybar getting a forehead-shadow + shadow = false; + } + + dnd = { + # Prevents dragged text in a browser getting blur/shadow + shadow = false; + blur-background = false; + } + + popup_menu = { + opacity = 0.8; + } + + dropdown_menu = { + opacity = 0.8; + } }; + +# vim: ft=conf noet