From c112a0d0c5bc66054041353d9ac83edbb0564e50 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Luis=20Guzm=C3=A1n?= <ark@switnet.org>
Date: Fri, 8 Apr 2022 13:37:33 +0000
Subject: [PATCH] Fix mate-tweak helper for aramo release.

---
 helpers/make-mate-tweak | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/helpers/make-mate-tweak b/helpers/make-mate-tweak
index 5864af03..3d9f2c39 100644
--- a/helpers/make-mate-tweak
+++ b/helpers/make-mate-tweak
@@ -31,13 +31,16 @@ sed '/no-composite/a # Do not run without 3D acceleration\nglxinfo | grep -q "Ac
 
 # Allow loading global compton config file
 sed '/for this wrapper./aif [ -f /etc/xdg/compton.conf ]; then \n    compton --config /etc/xdg/compton.conf' -i marco-compton
-sed '/^if.*HOME.*compton.conf/s/if/elif/' -i marco-compton
+sed '/if.*HOME.*config.*.conf/s/if/elif/' -i marco-compton
 
 # Corrects rendering delay on Pluma, possibly others
 sed '/--backend/s/\\/--xrender-sync-fence --xrender-sync \\/' -i  marco-compton
 
 # Shadow config
-sed 's/-r 10 -o 0.225 -l -12 -t -12/-r 6 -o 0.6 -l -9 -t -9/' -i marco-compton
+sed -i '/shadow-radius/s|12|6|' marco-compton
+sed -i '/shadow-opacity/s|0.125|0.6|' marco-compton
+sed -i '/shadow-offset-x/s|-12|-9|' marco-compton
+sed -i '/shadow-offset-y/s|-12|-9|' marco-compton
 
 # Add Trisquel to layout list
 sed 's/fedora/trisquel/g; s/Fedora/Trisquel/' -i mate-tweak
-- 
GitLab