aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-07-03 17:01:42 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-07-03 17:01:42 -0300
commitebb72e2df8982e7495afda424a40c3fb285a5739 (patch)
treefed669a67314f8c05f5bff182dc4954f49134585
parentadbc03d0c0532d094c3827dfe57ec643bdd26ba6 (diff)
downloadxsession-ebb72e2df8982e7495afda424a40c3fb285a5739.tar.gz
xsession-ebb72e2df8982e7495afda424a40c3fb285a5739.tar.bz2
Feat: adds support for xsessionrc.d
-rwxr-xr-xxsessionrc.dot.link34
1 files changed, 19 insertions, 15 deletions
diff --git a/xsessionrc.dot.link b/xsessionrc.dot.link
index e5ba399..df2ec03 100755
--- a/xsessionrc.dot.link
+++ b/xsessionrc.dot.link
@@ -84,15 +84,6 @@ export SSH_ASKPASS="/usr/lib/ssh/x11-ssh-askpass"
# . $HOME/apps/utils-ssh/ssh-agent-loadkeys
#fi
-# QT configuration
-#
-# Check https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications
-# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983536
-#
-# Check also the xnm-tray script at the https://git.fluxo.info/utils-x11
-#export QT_QPA_PLATFORMTHEME="gnome"
-#export XDG_CURRENT_DESKTOP="GNOME"
-
# Make sure to load the profile
#
# Use SETCDPATH workaround as there might be some weird bug
@@ -200,17 +191,30 @@ export AWT_TOOLKIT=MToolkit
# Next window config (keyringer)
export XDOTOOL_NEXT_WINDOW="Super_L+Tab"
-# Start window manager
+# Start window manager on old systems
if [ "$OSVERSION" = "7" ] || [ "$START_WINDOW_MANAGER" = "true" ]; then
$WINDOW_MANAGER
fi
+# Include other xsessionrc files
+if [ -d "$HOME/.xsessionrc.d" ]; then
+ for script in `ls $HOME/.xsessionrc.d`; do
+ . $HOME/.xsessionrc.d/$script
+ done
+fi
+
+# Include custom xsessionrc files
+if [ -d "$HOME/.xsessionrc.d" ]; then
+ # Use run-parts
+ #run-parts $HOME/.custom/xsessionrc.d
+
+ # Just source each file
+ for script in `ls $HOME/.custom/xsessionrc.d`; do
+ . $HOME/.custom/xsessionrc.d/$script
+ done
+fi
+
# Post processing
if [ -e "$HOME/.custom/xsession-ready" ]; then
. $HOME/.custom/xsession-ready
fi
-
-# Run startup scripts
-#if [ -d "$HOME/.custom/xsessionrc.d" ];
-# run-parts $HOME/.custom/xsessionrc.d
-#fi