diff options
-rwxr-xr-x | xsessionrc.dot.link | 34 |
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 |