[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
|
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}
|
||||||
|
|
Loading…
Reference in a new issue