aboutsummaryrefslogtreecommitdiff
path: root/scripts/random_background
blob: 9cf9e9f579db3d3a9b8412c11b4b5c447a1dec43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

#Screen background feh
shopt -s nullglob

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


echo  ${pics[$ran]}
killall swaybg
swaybg -i ${pics[$ran]} &