]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Feat: provision: openbox: additional xsession config develop
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 28 Jan 2023 15:46:47 +0000 (12:46 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 28 Jan 2023 15:46:47 +0000 (12:46 -0300)
share/provision/debian/openbox

index df47622feef8058c35515a6db66f7e1430b0b210..0791ea167444f0f007c7fcb2f46acfa57c57a1a0 100755 (executable)
@@ -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