/usr/bin/metacity-compton is in mate-tweak 3.5.10-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | #!/usr/bin/env bash
WM=metacity
BACKEND="glx"
VSYNC="opengl-swc"
if [ ! -x $(which ${WM}) ] && [ ! -x $(which compton) ]; then
echo "ERROR! Can't find required components for ${WM} and compton."
exit 1
fi
COMPTON_PIDS=$(pidof compton)
if [ $? -eq 0 ]; then
echo "Killing compton"
for PID in ${COMPTON_PIDS}; do
kill -9 ${PID}
done
fi
# Replace window manager and force compositing off.
${WM} --no-composite --replace &
sleep 1
# Allow users to override the defaults by creating their own config
# for this wrapper.
if [ -f ${HOME}/.config/${WM}-compton.conf ]; then
compton \
--config ${HOME}/.config/${WM}-compton.conf &
else
compton \
--config /dev/null \
--backend ${BACKEND} \
--vsync ${VSYNC} \
--detect-rounded-corners \
--paint-on-overlay \
--glx-no-stencil \
--glx-swap-method undefined \
--unredir-if-possible \
--inactive-opacity-override \
--mark-wmwin-focused \
-r 7 -o 0.09 -l -8 -t -8 \
-c -C -G \
--shadow-exclude "! name~=''" \
--shadow-exclude "name = 'Notification'" \
--shadow-exclude "name = 'Plank'" \
--shadow-exclude "name = 'Docky'" \
--shadow-exclude "name = 'Kupfer'" \
--shadow-exclude "name *= 'compton'" \
--shadow-exclude "class_g = 'Conky'" \
--shadow-exclude "class_g = 'Kupfer'" \
--shadow-exclude "class_g = 'Synapse'" \
--shadow-exclude "class_g ?= 'Notify-osd'" \
--shadow-exclude "class_g ?= 'Cairo-dock'" \
--shadow-exclude "class_g = 'Cairo-clock'" \
--shadow-exclude "_GTK_FRAME_EXTENTS@:c" &
fi
|