diff options
-rw-r--r-- | X/xinitrc.d/background.sh | 7 | ||||
-rw-r--r-- | X/xinitrc.d/xrbg.sh | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/X/xinitrc.d/background.sh b/X/xinitrc.d/background.sh new file mode 100644 index 00000000..85a40889 --- /dev/null +++ b/X/xinitrc.d/background.sh @@ -0,0 +1,7 @@ +# If there's a ~/.fehbg, just run that; otherwise, try to apply a random +# background image, if the relevant dir exists +if [ -e "$HOME"/.fehbg ] ; then + sh -- "$HOME"/.fehbg +elif [ -d "${XBACKGROUNDS:-"$HOME"/.xbackgrounds}" ] ; then + xrbg +fi diff --git a/X/xinitrc.d/xrbg.sh b/X/xinitrc.d/xrbg.sh deleted file mode 100644 index 0e4ec278..00000000 --- a/X/xinitrc.d/xrbg.sh +++ /dev/null @@ -1,2 +0,0 @@ -# Apply a random background image -xrbg |