[xinitrc] Only run ~/.screenlayout/default.sh if it exists

This commit is contained in:
Marcel Kapfer 2020-07-14 21:51:17 +02:00
parent aca95baf1b
commit 49f00e7747
Signed by: mmk2410
GPG Key ID: CADE6F0C09F21B09
1 changed files with 5 additions and 2 deletions

View File

@ -33,8 +33,11 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then
unset f
fi
# run xrandr
bash /home/marcel/.screenlayout/default.sh
# run predefined screen layout with xrandr
screenlayout=$HOME/.screenlayout/default.sh
if [ -f $screenlayout ]; then
/bin/bash /home/marcel/.screenlayout/default.sh
fi
# Here StumpWM is kept as default
session=${1:-stumpwm}