#!/bin/bash
target_title="Error"
while true;do
window_id=$(xdotool search --name "$target_title")
# echo "tatget_title: $target_title"
# echo "window_id: $window_id"
if [ -n "$window_id" ]; then
xdotool windowactivate "$window_id"
xdotool windowclose "$window_id"
# echo "close: $target_title"
# else
# echo "not find $target_title"
fi
sleep 0.01
done