#!/bin/bash

if [ -f /usr/bin/picom ]; then
	/usr/bin/picom -b	\
	--backend glx		\
	--vsync			\
	--xrender-sync-fence	\
	--glx-no-rebind-pixmap	\
	--use-damage		\
	--glx-no-stencil	\
	--use-ewmh-active-win &>/dev/null || :

	killall picom &>/dev/null || :

	echo "Use picom without --backend glx and --vsync"
	/usr/bin/picom -b	\
	--xrender-sync-fence	\
	--glx-no-rebind-pixmap	\
	--use-damage		\
	--glx-no-stencil	\
	--use-ewmh-active-win
fi
