From: Simon Ruderich Date: Wed, 12 May 2010 12:26:54 +0000 (+0200) Subject: xinitrc: Also use feh to set background if available. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=5476b8c7d72ce26a155ccc2168d631ea6b827beb;p=config%2Fdotfiles.git xinitrc: Also use feh to set background if available. --- diff --git a/xinitrc b/xinitrc index 6a90254..2a6866b 100755 --- a/xinitrc +++ b/xinitrc @@ -9,7 +9,11 @@ xmodmap ~/.xmodmaprc # Change the background if available. if [ -f ~/.background ]; then - hsetroot -full ~/.background + if [ -x /usr/bin/hsetroot ]; then + hsetroot -full ~/.background + elif [ -x /usr/bin/feh ]; then + feh --bg-scale ~/.background + fi fi # Start XMonad.