From d89b3050af139cd390e36c4cbd48e830acec15a5 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 1 Sep 2017 08:25:36 -0300 Subject: Compositor support (compton or xcompmgr) --- xsessionrc.dot.link | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'xsessionrc.dot.link') diff --git a/xsessionrc.dot.link b/xsessionrc.dot.link index beee2f6..2d54b25 100755 --- a/xsessionrc.dot.link +++ b/xsessionrc.dot.link @@ -39,6 +39,20 @@ elif [ "$BACKGROUND" != "unset" ]; then xsetroot -solid '#1C1C1C' fi +# See https://wiki.archlinux.org/index.php/Compton +if which compton > /dev/null 2>&1; then + if [ -e "$HOME/.config/compton.conf" ]; then + compton --config $HOME/.config/compton.conf -b + else + compton -b + fi +fi + +# See https://wiki.archlinux.org/index.php/Xcompmgr +if which xcompmgr > /dev/null 2>&1; then + xcompmgr -c & +fi + # Set window manager if [ -z "$WINDOW_MANAGER" ]; then WINDOW_MANAGER='awesome' -- cgit v1.2.3