diff --git a/xsession/.xsession b/xsession/.xsession index 26bf92d..f7aacbe 100755 --- a/xsession/.xsession +++ b/xsession/.xsession @@ -11,6 +11,12 @@ xrdb -merge ~/.Xresources setxkbmap pl -option ctrl:nocaps xmodmap ~/.xmodmaprc +if [ -x ~/.fehbg ]; then + ~/.fehbg & +else + xsetroot -solid '#4a4a4a' +fi + # lock screen on suspend/hibernate if which xss-lock slock >/dev/null; then xss-lock slock & @@ -24,12 +30,11 @@ emacsclient --eval nil -a '' & xsettingsd & if which spectrwm > /dev/null; then - xsetroot -solid '#4a4a4a' exec spectrwm fi if which lupan-wm > /dev/null; then - xsetroot -solid '#4a4a4a' -cursor_name left_ptr + xsetroot -cursor_name left_ptr lupan-clock & exec lupan-wm -s 20 fi diff --git a/xsession/bin/lupan-set-theme b/xsession/bin/lupan-set-theme index b5d1904..05bfedd 100755 --- a/xsession/bin/lupan-set-theme +++ b/xsession/bin/lupan-set-theme @@ -14,7 +14,9 @@ else fi # Background color -xsetroot -solid "$BGCOLOR" +if [ ! -x ~/.fehbg ]; then + xsetroot -solid "$BGCOLOR" +fi # Alacritty if [ -f ~/.config/alacritty/alacritty.yml ]; then