# Custom xsession config
if [ -f "$HOME/.custom/xsession" ]; then
sed -i -e 's/^WINDOW_MANAGER=.*$/WINDOW_MANAGER="openbox"/' $HOME/.custom/xsession
+
+ echo "" > $HOME/.custom/xsession
+ echo '# Custom config' >> $HOME/.custom/xsession
+ echo 'PROGRAMS="$PROGRAMS tint2"' >> $HOME/.custom/xsession
+
+ cat <<-EOF > $HOME/.custom/xsession-ready
+#!/bin/bash
+#
+# xsession-ready: runs after the X11 session is ready
+#
+
+# Fix the background color due to window resize
+sleep 20
+xsetroot -solid '#1C1C1C'
+EOF
+
+ chmod +x $HOME/.custom/xsession-ready
fi