[xinitrc] Only run ~/.screenlayout/default.sh if it exists
This commit is contained in:
parent
aca95baf1b
commit
49f00e7747
1 changed files with 5 additions and 2 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue