![Smile :)](./images/smilies/icon_smile.gif)
Here are Gtkdialog versions, but indeed, they're quite heavy, so on weaker CPUs there may be need to increase 'interval' value.
Thanks & Greetings!
Code: Select all
interval="60"
Code: Select all
interval="120"
Code: Select all
#!/bin/bash
# Grow! by SFR'2013
# GPLv2 applies
# Req: Gtkdialog >=0.8.0, Bash
USE_BASH=; [ "`readlink /bin/sh`" != bash ] && USE_BASH="bash -c "
export TEMPDIR=/dev/shm/grow_$$
mkdir $TEMPDIR
trap 'rm -rf $TEMPDIR' EXIT
export PIC=$TEMPDIR/pic.svg
export SIZE=$TEMPDIR/size
echo 16 > $SIZE
grow () {
S=$(<$SIZE); S=$(($S+2)); echo $S > $SIZE
[ $S -ge 512 ] && exit
echo '<svg viewBox="'$((256-($S/2)))' '$((256-($S/2)))' '$S' '$S'" xmlns="http://www.w3.org/2000/svg" version="1.1">
<circle cx="256" cy="256" r="248" stroke="black" fill="yellow" stroke-width="10" />
<circle cx="192" cy="160" r="24" stroke="black" fill="black" />
<circle cx="320" cy="160" r="24" stroke="black" fill="black" />
<path d="M 128 320 Q 256 416 384 320" stroke="black" fill="none" stroke-width="16" stroke-linecap="round" />
</svg>' > $PIC
}
export -f grow
export MAIN='
<window title="Grow! Grow! GROOOOOW!!!!! ...ok, that'"'"'s enough...;)">
<vbox>
<pixmap>
<variable>PICTURE</variable>
<input file>'$PIC'</input>
</pixmap>
<timer visible="false" milliseconds="true" interval="75">
<action>'$USE_BASH'grow</action>
<action>refresh:PICTURE</action>
</timer>
</vbox>
<action signal="hide">exit:abort</action>
</window>
'
gtkdialog -cp MAIN
Code: Select all
<hbox>
<hbox>
<text>
<label>"<span>non-link-text</span>"</label>
</text>
</hbox>
<hbox>
<text>
<label>"<span><a href="...">link-text</a></span>"</label>
<action signal="button-press-event">...</action>
</text>
</hbox>
<hbox>
<text>
<label>"<span>non-link-text</span>"</label>
</text>
</hbox>
</hbox>
Code: Select all
#! /bin/bash
export MAIN_DIALOG='
<vbox>
<chooser>
<height>500</height><width>600</width>
<variable>CHOOSER</variable>
</chooser>
<hbox>
<button ok>
<action>"echo $CHOOSER > /tmp/tmp"</action>
<action>exit:Exit</action>
</button>
</hbox>
</vbox>
'
gtkdialog --program=MAIN_DIALOG
A=$(cat /tmp/tmp)
echo "$A"
exec mplayer $A
Code: Select all
#! /bin/bash
CHOSEN(){
mplayer $CHOOSER
}
export -f CHOSEN
export MAIN_DIALOG='
<vbox>
<chooser>
<height>500</height><width>600</width>
<variable>CHOOSER</variable>
</chooser>
<hbox>
<button ok>
<action>CHOSEN</action>
<action>exit:Exit</action>
</button>
</hbox>
</vbox>
'
gtkdialog --program=MAIN_DIALOG
Code: Select all
eval `gtkdialog --program=MAIN_DIALOG`
Code: Select all
<vbox>
<text><label>Live Support</label></text>
<combobox width-request=\""$COMBOBOX_WIDTH"\" tooltip-text=\" Select the live support \">
<variable>CheckLiveSupport</variable>
$LIVE_SUPPORT_ITEMS
</combobox>
</vbox>
Code: Select all
<vbox>
<text><label>Live Support</label></text>
<comboboxtext width-request=\""$COMBOBOX_WIDTH"\" tooltip-text=\" Select the live support \">
<variable>CheckLiveSupport</variable>
$LIVE_SUPPORT_ITEMS
</comboboxtext>
</vbox>