From 5476b8c7d72ce26a155ccc2168d631ea6b827beb Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 12 May 2010 14:26:54 +0200 Subject: [PATCH] xinitrc: Also use feh to set background if available. --- xinitrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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. -- 2.45.2