aboutsummaryrefslogtreecommitdiff
path: root/xinitrc.d/10-background.sh
diff options
context:
space:
mode:
Diffstat (limited to 'xinitrc.d/10-background.sh')
-rwxr-xr-xxinitrc.d/10-background.sh15
1 files changed, 9 insertions, 6 deletions
diff --git a/xinitrc.d/10-background.sh b/xinitrc.d/10-background.sh
index 359e65e..287183b 100755
--- a/xinitrc.d/10-background.sh
+++ b/xinitrc.d/10-background.sh
@@ -1,12 +1,15 @@
#!/bin/sh
#Screen background feh
-shopt -s nullglob
+if [ -f ~/.files ]; then
+ source ~/.files
+ shopt -s nullglob
-pics=(~/vimconfig/pictures/b_*)
-len=${#pics[*]}
-ran=$(($RANDOM % len))
+ pics=($DOTFILEBASE/pictures/b_*)
+ len=${#pics[*]}
+ ran=$(($RANDOM % len))
-feh --bg-fill ${pics[$ran]}
+ feh --bg-fill ${pics[$ran]}
-unset pics len ran
+ unset pics len ran
+fi