]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
xinitrc: Don't create ~/.fehbg when using feh to set the background.
authorSimon Ruderich <simon@ruderich.org>
Sun, 4 Nov 2012 15:21:47 +0000 (16:21 +0100)
committerSimon Ruderich <simon@ruderich.org>
Thu, 15 Nov 2012 16:24:36 +0000 (17:24 +0100)
xinitrc

diff --git a/xinitrc b/xinitrc
index 127683d5992c59c820aa745a4edfc5b1721acbdb..35bbe22f6157952d17fd9bf583f040198f3598ee 100755 (executable)
--- a/xinitrc
+++ b/xinitrc
@@ -60,6 +60,8 @@ if test -f "$HOME/.background" && test -n "$set_background"; 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