I have released an updated version here
http://www.murga-linux.com/puppy/viewto ... 208#445208
which includes some background sparkle
This is the new code
would like to get that full screen toggle to work . . .
Code: Select all
#! /bin/bash
# CyberChant 0.5
# Lobster, Vovchic, Joe Big Bass, Seaside, Potong, Seaside - Aug 25 010
# for Lucid 5.1
# http://www.timesonline.co.uk/tol/news/uk/article631958.ece
# Anglican priest Hindu
# --------------------
function init_vars()
# --------------------
{
cd /mnt/home/aaa_ganesha/cyberchant
NUM=3 # Change the number of default recitations
sec=10
fnt="DejaVu Sans Bold 15"
txt1="Ganesh\n
Will chant mantras for you\n
OM SHANTI OM"
txt2="Om Gam Ganapatayei Namaha"
}
# # # # # # # # # # # # # # #
function input_message()
# # # # # # # # # # # # # # #
{
# click on x top right does not cancel but runs - add option to turn off full screen
export DIALOG='
<window title="Mantras" icon-name="gtk-dialog-question">
<vbox>
<hbox>
<text>
<label>Mantra Recitals:</label>
</text>
<entry activates-default="true">
<default>3</default>
<variable>NUM</variable>
</entry>
</hbox>
<checkbox use-stock="true" label="gtk-fullscreen" image-position="1"
tooltip-text="checkbox derives from button ...">
</checkbox>
<hbox>
<button cancel></button>
<button can-default="true" has-default="true" use-stock="true" >
<label>gtk-ok</label>
</button>
</hbox>
</vbox>
</window>
'
CHOICES=`gtkdialog3 --program=DIALOG`
eval $CHOICES
repetitions=$NUM
}
# # # # # # # # # # # # # # #
function display_message()
# # # # # # # # # # # # # # #
{
aplay tinsha.wav "$@" &
xpupsay --image=ganesha1.gif --time=4 "Om Gam Ganapatayei Namaha" "$@"
printf %b "$txt1" | xpupsay --image=nandi.png --time=$sec --font="$fnt" "$@" | aplay &
sleep 10
for g in $(eval echo {$repetitions..1})
do
mplayer Ganesh_Mantra.mp3 "$@" &
mplayer -fs -nosound ed2.mp4 &
printf %b "$txt2 \n\n" " $g" | xpupsay --image=ganesh.gif --time=7 --font="$fnt" "$@"
# gxine Ganesh_Mantra.mp3 "$@" &
done
sleep 2
xpupsay --image=ganesha1.gif --time=9 "Om Gam Ganapatayei Namaha" "$@" &
aplay tinsha.wav "$@" &
}
# # # # # # # #
# END FUNCTIONS
# # # # # # # #
# # # # # # # #
# MAIN
# # # # # # # #
init_vars
#if [ "gtk-fullscreen" = "1" ]
#then
#echo true
#fi
#else echo false
input_message
display_message
# # # # # # # #
# END MAIN
# # # # # # # #