aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2021-07-17 01:14:07 +1200
committerTom Ryder <tom@sanctum.geek.nz>2021-07-17 01:14:26 +1200
commit65fcf440c946be276005528486dd11849bf6a847 (patch)
treeecea33a102cc4ff6b3aea3067fa7b5b72c0f3ac8
parentUse consistent line breaks for Muttrc settings (diff)
downloaddotfiles-65fcf440c946be276005528486dd11849bf6a847.tar.gz
dotfiles-65fcf440c946be276005528486dd11849bf6a847.zip
Use ~/.fehbg background if it's set
-rw-r--r--X/xinitrc.d/background.sh7
-rw-r--r--X/xinitrc.d/xrbg.sh2
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