From d3509a200d6b0a3a3c7921f5f05a5a887727f768 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 28 Jan 2023 12:46:47 -0300 Subject: Feat: provision: openbox: additional xsession config --- share/provision/debian/openbox | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'share/provision/debian/openbox') diff --git a/share/provision/debian/openbox b/share/provision/debian/openbox index df47622..0791ea1 100755 --- a/share/provision/debian/openbox +++ b/share/provision/debian/openbox @@ -37,4 +37,21 @@ fi # 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 -- cgit v1.2.3