No. It's just a bit of animation. But you could also have it show the elaspsed time like with the Timer widget. This needs the gtk3 version of Xdialog to work correctly.
Code: Select all
XdialogGauge ()
{
mkfifo /tmp/TimerPipe 2>/dev/null
exec 7<>/tmp/TimerPipe
SEC=0; FULLSEC=0; DIR=1
while : ; do
echo $((SEC*10))
echo -e "XXX\nWorking ... $FULLSEC sec\nXXX"
read -u 7 -t 1 && break
((FULLSEC++))
((SEC+=DIR))
[ $((SEC%10)) -eq 0 ] && ((DIR*=-1))
done | Xdialog --no-buttons --title " " --gauge "Working ..." 4 30 0
}
export -f XdialogGauge
XdialogGauge &
sleep 35 #put commands here
echo > /tmp/TimerPipe