X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;ds=inline;f=xinitrc;h=a18974c02fb788aee3f7b482b3fa2fc58b14e1b4;hb=ce7bdd43e8e4bac208416d75012e5246e6a30a46;hp=e434cbacb37e620c134ab450106ea8fa988f8cb1;hpb=b69168d78941ffb5e5a16504a72cb1fa0a2d69ab;p=config%2Fdotfiles.git diff --git a/xinitrc b/xinitrc index e434cba..a18974c 100755 --- a/xinitrc +++ b/xinitrc @@ -55,11 +55,15 @@ if test -f "$HOME/.xinitrc.local"; then fi # Change the background if available. -if test -f "$HOME/.background" && test -n $set_background; then +if test -f "$HOME/.background" && test -n "$set_background"; then if test -x /usr/bin/hsetroot; then hsetroot -full "$HOME/.background" elif test -x /usr/bin/feh; then feh --bg-scale "$HOME/.background" + # Remove the unnecessary ~/.fehbg file created by `feh`. I don't want + # to restore the background, I just run `feh` on each startx run. + # --no-fehbg is only available in recent feh releases. + rm -f "$HOME/.fehbg" fi fi