X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=xinitrc;h=2a6866b86e812dc5383efbb755a3ae216f031015;hb=6cbf000ab407abde66f4775f23f804acca69feb2;hp=7513f8203bdd6ea1daea369439144ecc11865961;hpb=f3394ebbb4fea4997b3c5cd6ebe0f126985b7284;p=config%2Fdotfiles.git diff --git a/xinitrc b/xinitrc old mode 100644 new mode 100755 index 7513f82..2a6866b --- a/xinitrc +++ b/xinitrc @@ -7,11 +7,16 @@ xsetroot -solid black # Use my X11 key bindings. 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 stumpwm. +# Start XMonad. xmonad # vim: ft=sh