From 0762801ed9627021e732cdeb225a737f44e3df42 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Wed, 16 Dec 2020 19:49:35 +0100 Subject: bin/oguri-cycle: randomize bg per output before we assigned the same image for all outputs with the same aspect ratio --- bin/oguri-cycle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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 } -- cgit 1.4.1