summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2020-12-16 19:49:35 +0100
committerRobert Günzler <r@gnzler.io>2021-01-21 19:39:13 +0100
commit0762801ed9627021e732cdeb225a737f44e3df42 (patch)
tree45e512aef35f5bee50cf13f3450a0eec6d868f69
parentcb0f13135fbbae8c3d1f66bb236fd2652fd5e4b8 (diff)
bin/oguri-cycle: randomize bg per output
before we assigned the same image for all outputs with the same aspect
ratio
-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
 }