I am trying to run a script that will check internet speed on a linux machine with gui, bring the terminal window down and when the query is finished , the window will come up with the answer. as for the time being- i can take the window down, but not up.
#!/bin/bash
xdotool getactivewindow windowminimize
#xdotool set_window --name speedy
#xdotool set_window --icon-name speedy
speedtest-cli --simple
if [ $? -eq 0 ]
then
#xdotool windowactivate speedy
xdotool windowfocus #speedy
xdotool key "F11"
fi
exec $SHELL