aboutsummaryrefslogtreecommitdiff
path: root/xinitrc.d/10-background.sh
blob: 6e4f06886903fff90e0fce1883f8daaa6b0e0a19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

#Screen background feh
if [ -f ~/.files ]; then
	source ~/.files
	shopt -s nullglob

	pics=($DOTFILEBASE/pictures/b_*)
	len=${#pics[*]}
	ran=$(($RANDOM % len))

	feh --bg-fill ${pics[$ran]}

	unset pics len ran
fi