package-helpers-cmxsl/helpers/make-mate-tweak

49 lines
1.8 KiB
Bash

#!/bin/sh
#
# Copyright (C) 2019 Mason Hock <mason@masonhock.com>
# Copyright (C) 2021 Ruben Rodriguez <ruben@trisquel.info>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
VERSION=7
. ./config
sed -i 's/manjaro/trisquel/g' mate-tweak
sed -i 's/Manjaro/Trisquel/g' mate-tweak
# Disable composition on llvm
sed 's/Software Rasterizer/Accelerated: no/' -i mate-tweak
sed '/no-composite/a # Do not run without 3D acceleration\nglxinfo | grep -q "Accelerated: no" && exit 0\n' -i marco-compton
# 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
# 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 "s/_GTK_FRAME_EXTENTS@:c/argb \&\& ! window_type *= 'menu'/" -i marco-compton
# Add Trisquel to layout list
sed 's/fedora/trisquel/g; s/Fedora/Trisquel/' -i mate-tweak
changelog "Add Trisquel as panel layout option"
compile