aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-01-28 12:46:47 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-01-28 12:46:47 -0300
commitd3509a200d6b0a3a3c7921f5f05a5a887727f768 (patch)
tree2b00e3321a80a8d28dc534aed516c9e847653bc7 /share
parentdd30a2a8b377a33ba49935b15b81f0d153d11141 (diff)
downloadkvmx-d3509a200d6b0a3a3c7921f5f05a5a887727f768.tar.gz
kvmx-d3509a200d6b0a3a3c7921f5f05a5a887727f768.tar.bz2
Feat: provision: openbox: additional xsession configdevelop
Diffstat (limited to 'share')
-rwxr-xr-xshare/provision/debian/openbox17
1 files changed, 17 insertions, 0 deletions
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