use compositor and stumpwm if available

This commit is contained in:
Łukasz Pankowski 2022-11-11 18:29:05 +01:00
parent 09ca990061
commit 2c0a70ee04

View File

@ -14,7 +14,7 @@ xmodmap ~/.xmodmaprc
if [ -x ~/.fehbg ]; then
~/.fehbg &
else
xsetroot -solid '#4a4a4a'
hsetroot -solid '#4a4a4a'
fi
# lock screen on suspend/hibernate
@ -31,6 +31,13 @@ xsettingsd &
xsetroot -cursor_name left_ptr
picom -b -I 1 -O 1 -i 1 -e 1 --no-fading-openclose || compton -b --no-fading-openclose
if which xmonad > /dev/null && test -f ~/.stumpwm.d/init.lisp; then
export SBCL_HOME="$(dirname $(dirname $(readlink -f $(which sbcl))))/lib/sbcl/"
exec stumpwm
fi
if which xmonad > /dev/null && test -f ~/.config/xmonad/xmonad.hs; then
exec xmonad
fi