voidrice/.config/Scripts/wall_looper.sh
2017-06-02 15:49:10 -04:00

17 lines
321 B
Bash

#!/bin/bash
#Feed this script two arguments, $1 for a folder directory and $2 for a time interval in seconds.
#Will loop thru the files in the directory, using feh to change the background every $2 seconds.
while [ 1==1 ]
do
for file in $1*;
do
sleep $2
feh --bg-scale "$file"
cp "$file" ~/.config/wall.png
done
done