diff options
Diffstat (limited to 'xinitrc.d')
-rwxr-xr-x | xinitrc.d/10-background.sh | 15 |
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 |