[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

View file

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