You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
390 B
15 lines
390 B
#!/bin/bash |
|
set -u |
|
cd "$(dirname "$0")/build" || exit 1 |
|
export DISPLAY="${DISPLAY:-:0}" |
|
|
|
rnd() { local m=$((200 + RANDOM % 2801)) f; printf -v f '%03d' $((m%1000)); sleep "$((m/1000)).$f"; } |
|
|
|
while :; do |
|
env DISPLAY="$DISPLAY" QT_ACCESSIBILITY=1 ./vibechat >/dev/null 2>&1 & |
|
p=$! |
|
rnd |
|
(( RANDOM % 2 )) && kill -9 "$p" || kill -HUP "$p" |
|
wait "$p" 2>/dev/null |
|
rnd |
|
done
|
|
|