]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - xinitrc
feh/themes: Add, default options for feh.
[config/dotfiles.git] / xinitrc
diff --git a/xinitrc b/xinitrc
index e434cbacb37e620c134ab450106ea8fa988f8cb1..35bbe22f6157952d17fd9bf583f040198f3598ee 100755 (executable)
--- a/xinitrc
+++ b/xinitrc
@@ -55,11 +55,13 @@ 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"
+        # --no-fehbg is only available in recent feh releases.
+        rm -f "$HOME/.fehbg"
     fi
 fi