summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/oguri-cycle2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/oguri-cycle b/bin/oguri-cycle
index ff964a0..495f983 100755
--- a/bin/oguri-cycle
+++ b/bin/oguri-cycle
@@ -16,8 +16,8 @@ if ! pgrep oguri >/dev/null 2>&1; then
 fi
 
 change_bg() {
-	idx=$((0 + RANDOM % ${#BGS[@]}))
 	for o in "${OUTPUTS[@]}"; do
+		idx=$((0 + RANDOM % ${#BGS[@]}))
 		ogurictl output "${o}" --image "${BGS["${idx}"]}" --filter best $@
 	done
 }