aboutsummaryrefslogtreecommitdiff
path: root/X/xinitrc.d/background.sh
diff options
context:
space:
mode:
Diffstat (limited to 'X/xinitrc.d/background.sh')
-rw-r--r--X/xinitrc.d/background.sh7
1 files changed, 7 insertions, 0 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