Hi,
there is [1] a script [2], which is able to dynamically modify a
zenity's progress bar also also the text.
Is it possible to have something similar for a zenity info box (zenity
--info --text "dynamically modified text here")? I would like to modify
the text within an already existing zenity info box.
If I remember correctly, there was a script able to do so, but I can't
find it anymore. Can you help out please?
Cheers,
Patrick
[1]
https://ubuntuforums.org/showthread.php?t=1804040&p=11047005#post11047005
[2]
#!/bin/bash
# Start Zenity as a coprocess.
coproc zenity --progress --auto-close --title='Testing' --text='Starting
up...'
# Update Zenity...
sleep 2s
echo 33 >&${COPROC[1]}
echo '#One third done...' >&${COPROC[1]}
sleep 2s
echo 67 >&${COPROC[1]}
echo '#Two thirds done...' >&${COPROC[1]}
sleep 2s
echo 100 >&${COPROC[1]} # Close Zenity and therefore the background
task.
[Prev in Thread]
Current Thread
[Next in Thread]
[Help-bash] Dynamically modify content,
Patrick Schleizer<=