X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=xinitrc;h=ccb09c38fd9d897c193cbaa53e5689149adf4318;hb=421b3a8b3294e27563e0b7e9b56ea2a62e68508a;hp=6a9025463be38986c376bbbf6286dd8c1cdfba6c;hpb=cda680624c7715a9ac500b17f6edfb9b40ff8385;p=config%2Fdotfiles.git diff --git a/xinitrc b/xinitrc index 6a90254..ccb09c3 100755 --- a/xinitrc +++ b/xinitrc @@ -1,3 +1,5 @@ +#!/bin/sh + # startx configuration file. @@ -9,7 +11,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.