Author |
Message |
01micko

Joined: 11 Oct 2008 Posts: 8787 Location: qld
|
Posted: Fri 25 Jun 2010, 18:17 Post subject:
|
|
I just couldn't resist making a contribution to this madness!
Code: | #!/bin/sh
ln -s /usr/share/doc/puppylogo48.png /usr/share/xcowsay/cow_puppylogo48.png 2>/dev/null
exec xcowsay --cow=puppylogo48 Woof, Woof! "$@" &
aplay /usr/share/audio/2barks.au |
Description |
|
Filesize |
17.73 KB |
Viewed |
2145 Time(s) |

|
_________________ Puppy Linux Blog - contact me for access
|
Back to top
|
|
 |
JustGreg
Joined: 24 May 2005 Posts: 785 Location: Connecticut USA
|
Posted: Fri 25 Jun 2010, 20:54 Post subject:
|
|
Yes, o1micko, another good use!
_________________ Enjoy life, Just Greg
Live Well, Laugh Often, Love Much
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15588 Location: Paradox Realm
|
Posted: Sat 26 Jun 2010, 06:13 Post subject:
|
|
I am using this in the test 205 of Lucid and it runs OK
It could be used as the basis of an intro . . .
Any other scripts to be shared?
Code: | #! /bin/bash
# sleep 2
# flitet "hello world" | aplay &
cd /
xcowsay --cow=Lobster6 --time=2 --dream=/usr/share/images/gtkam/gtkam-new.png "$@"
xcowsay --cow=Lobster6 What is new for 5.1 of Puppy Lucid? "$@"
cd /
xcowsay --cow=Lobster6 --time=2 --dream=/usr/share/superscan/pixmaps/PenguinWithWrench.xpm "$@"
xcowsay --cow=Lobster6 Upgraded scripts and programs "$@"
xcowsay --cow=Lobster6 Lucid 5.1 - new quickpet - more working packages "$@"
xcowsay --cow=Lobster6 Click on chat for instant help and advice"$@"
xcowsay --cow=Lobster6 Latest Browsers, latest Flash, My CPU is heating up! "$@"
xcowsay --cow=Lobster6 Made with legendary Puppy Woof know how and the best Ubuntu bits"$@"
THRMFILE=`find /proc/acpi/thermal_zone -name "temperature"`
TEXT=`cat $THRMFILE | cut -c25-30`
xcowsay --cow=Lobster6 My CPU temp is $TEXT - time to start cooking! "$@"
xcowsay --cow=Lobster6 My operating system has talking Lobsters. Your arguments are invalid. "$@"
xcowsay --cow=Lobster6 --time=2 --dream=/usr/share/pixmaps/smileys "$@"
ln -s /usr/share/doc/puppylogo48.png /usr/share/xcowsay/cow_puppylogo48.png 2>/dev/null
exec xcowsay --cow=puppylogo48 Woof, Woof! "$@" &
aplay /usr/share/audio/2barks.au "$@"
aplay /usr/share/audio/leave.wav & |
_________________ Puppy Raspup 8.2 Final
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html 
|
Back to top
|
|
 |
Iguleder

Joined: 11 Aug 2009 Posts: 2031 Location: Israel, somewhere in the beautiful desert
|
Posted: Sat 26 Jun 2010, 10:20 Post subject:
|
|
01micko wrote: | I just couldn't resist making a contribution to this madness! |
lol, you stole my ambitious ln -s project
I think we should write a wrapper that provides the yaf-splash options and runs the cow thing ... should be a cool addition to future Woofications
_________________ My homepage
My GitHub profile
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15588 Location: Paradox Realm
|
Posted: Sat 26 Jun 2010, 10:59 Post subject:
|
|
In Puppy Lucid 205 I added the second flite speech pet mentioned here:
http://www.murga-linux.com/puppy/viewtopic.php?p=365897&search_id=1268061439#365897
Here is my code with speech sythesis added
Code: | #! /bin/bash
# sleep 2
# flitet "hello world" | aplay &
# cd /
# flitet "New in Puppy!" | aplay &
# xcowsay --cow=Lobster6 --time=2 --dream=/usr/share/images/gtkam/gtkam-new.png "$@"
THRMFILE=`find /proc/acpi/thermal_zone -name "temperature"`
TEXT=`cat $THRMFILE | cut -c25-30`
flitet "My Core temperature is $TEXT centigrade. Cooking!" | aplay &
xcowsay --cow=Lobster6 My CPU temp is $TEXT - cooking! "$@"
flitet "What is new for 5.1 of Puppy Lucid?" | aplay &
xcowsay --cow=Lobster6 What is new for 5.1 of Puppy Lucid? "$@"
# cd /
# xcowsay --cow=Lobster6 --time=2 --dream=/usr/share/superscan/pixmaps/PenguinWithWrench.xpm "$@"
flitet "Upgraded scripts and programs." | aplay &
xcowsay --cow=Lobster6 Upgraded scripts and programs. "$@"
flitet "Lucid 5.1. New quick pet. More working packages." | aplay &
xcowsay --cow=Lobster6 Lucid 5.1 - new quickpet - more working packages. "$@"
flitet "Latest Browsers, latest Flash, latest programs." | aplay &
xcowsay --cow=Lobster6 Latest Browsers, latest Flash, latest programs. "$@"
flitet "Made with Puppy woof, and the best Ubuntu bits." | aplay &
xcowsay --cow=Lobster6 Made with Puppy Woof and the best Ubuntu bits."$@"
flitet "Puppy has talking Lobsters. Your arguments are invalid." | aplay &
xcowsay --cow=Lobster6 Puppy has talking Lobsters. Your arguments are invalid. "$@"
cd /
xcowsay --cow=Lobster6 --time=2 --dream=/usr/share/pixmaps/smileys.png "$@" &
#ln -s /usr/share/doc/puppylogo48.png /usr/share/xcowsay/cow_puppylogo48.png 2>/dev/null
#exec xcowsay --time=3 --cow=puppylogo48 Woof, Woof! Goodbye. "$@" &
#xcowsay --cow=Lobster6 Goodbye. "$@" &
aplay /usr/share/audio/2barks.au "$@" &
aplay /usr/share/audio/leave.wav |
_________________ Puppy Raspup 8.2 Final
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html 
|
Back to top
|
|
 |
musher0
Joined: 04 Jan 2009 Posts: 15041 Location: Gatineau (Qc), Canada
|
Posted: Sat 26 Jun 2010, 11:08 Post subject:
|
|
Now, now, kids!
You can have all the fun after your homework is done!
_________________ musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
|
Back to top
|
|
 |
big_bass
Joined: 13 Aug 2007 Posts: 1742
|
Posted: Sat 26 Jun 2010, 19:46 Post subject:
|
|
Hey Lobster your script is looking good with flite
I was looking for a new image hows this
a lot of work getting that alpha channel
thingy working
needs a smile I'll leave that to
whoever that wants to play a bit with it
Joe
Description |
|
Filesize |
58.77 KB |
Viewed |
1953 Time(s) |

|
Last edited by big_bass on Mon 28 Jun 2010, 11:03; edited 1 time in total
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4878 Location: Blue Springs, MO
|
Posted: Sat 26 Jun 2010, 23:41 Post subject:
|
|
Now Puppified
Code: | xpupsay --pup=puppy Hello |
or simply
Description |
|

Download |
Filename |
xpupsay-1.2-i486.pet |
Filesize |
25.17 KB |
Downloaded |
876 Time(s) |
Description |
|
Filesize |
18.23 KB |
Viewed |
2072 Time(s) |

|
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15588 Location: Paradox Realm
|
Posted: Sun 27 Jun 2010, 01:20 Post subject:
|
|
Thank goodness. Those Lobsters were driving me crazy (sorry Joe)
- and I don't have too far to go . . .
Used your new pet technosaurus
working fine
are there other option such as
Code: | xpupsay --pup=lobster Hello
xpupsay --pup=cow Hello |
Ah no - just the one puppy png link?
but have you got all the code in that one 25k pet? Impressive if so . . .
I have streamlined the code specifically for the new pet and Puppy Lucid
As far as I can tell, if flite is not included the program will still work OK
Code: | #! /bin/bash
cd /
xpupsay --pup=puppy --time=2 --dream=/usr/share/doc/community48.jpg "$@"
aplay /usr/share/audio/2barks.au "$@" &
flitet "Welcome to Puppy." | aplay &
xpupsay --pup=puppy Welcome to Puppy."$@"
flitet "Made with Puppy magic, and the best Ubuntu bits." | aplay &
xpupsay --pup=puppy Made with Puppy magic and the best Ubuntu bits."$@"
flitet "What is new for 5.1 of Puppy Lucid?" | aplay &
xpupsay --pup=puppy What is new for 5.1 of Puppy Lucid? "$@"
flitet "Upgraded scripts and programs." | aplay &
xpupsay --pup=puppy Upgraded scripts and programs. "$@"
flitet "New quick pet. More working packages." | aplay &
xpupsay --pup=puppy NEW quickpet. More working packages. "$@"
flitet "Latest Browsers: FireFox, Crome and Opera." | aplay &
xpupsay --pup=puppy Latest Browsers: FireFox, Chrome and Opera. "$@"
flitet "Puppy speaks. Have fun." | aplay &
xpupsay --pup=puppy Puppy speaks. Have fun. "$@"
cd /
xpupsay --pup=puppy --time=2 --dream=/usr/share/doc/community48.jpg "$@" &
aplay /usr/share/audio/2barks.au "$@" & |
_________________ Puppy Raspup 8.2 Final
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html 
Last edited by Lobster on Sun 27 Jun 2010, 02:52; edited 1 time in total
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4878 Location: Blue Springs, MO
|
Posted: Sun 27 Jun 2010, 02:27 Post subject:
|
|
there is an --image option to, but it requires full path to image
--think makes a cloud-like bubble
--dream is broken - it uses pwd as / (so it only works if you cd to /)
Here is a summary of xpupsay --help
-t, --time=SECONDS Number of seconds to display message for
-r, --reading-speed=N Number of milliseconds to delay per word.
-f, --font=FONT Set message font (Pango format).
-d, --dream=FILE Display an image instead of text.
--think Display a thought bubble rather than a speech bubble.
--daemon Run xpupsay in daemon mode.
--pup-size=SIZE Size of the pup (small, med, large).
--image=FILE Use a different image instead of the pup.
--monitor=N Display pup on monitor N.
--at=X,Y Force the pup to appear at screen location (X,Y).
--bubble-at=X,Y Change relative position of bubble.
--config=FILE Specify alternative config file.
--debug Keep daemon attached to terminal.
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1538 Location: Ukraine
|
Posted: Sun 27 Jun 2010, 03:44 Post subject:
|
|
Dear Puppians,
xcowsay can also make use of a .xcowsayrc file in the users $HOME directory. Mine now contains the following:
Code: |
display_time=5
alt_image=/usr/share/xcowsay/felix.png
at_y=300
at_x=300
|
The man file contains a bit more information on what is acceptable as rc content.
Cheers,
vovchik
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4878 Location: Blue Springs, MO
|
Posted: Sun 27 Jun 2010, 04:06 Post subject:
|
|
removed most remaining "cow" references in source package - replaced with pup
changed --dream to use full path vs. relative path from pwd
Description |
|

Download |
Filename |
xpupsay-1.2.1-i486.pet |
Filesize |
12.15 KB |
Downloaded |
813 Time(s) |
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15588 Location: Paradox Realm
|
Posted: Sun 27 Jun 2010, 05:51 Post subject:
|
|
Anyone worked out how to use multiple lines
or call a text file?
This seems to directly call c programming (printf)
and uses a virtual Richard Stallman (be afraid)
http://www.doof.me.uk/2009/10/31/an-alternative-application-of-xcowsay/
_________________ Puppy Raspup 8.2 Final
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html 
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15588 Location: Paradox Realm
|
Posted: Sun 27 Jun 2010, 06:01 Post subject:
|
|
Quote: | a lot of work getting that alpha channel
thingy working |
Joe I assume you are not talking of the
alpha channel to communicate with the Lobsterian multiverse
. . . so this is something to do with masking in Gimp?
It is a fine Lobster incidentally
but I have to watch my egoic tendencies
and try not to encourage them . . .
Vorchik has used his 'felix cat icon' - heretic
Technosaurus is orthodox
. . . and I have a strange feeling that the alligator in Jemimahs pond
may start talking in Fluppy
I hope so anyway . . .
The new text messages in 205 Lucid are excellent
but I feel this has more potential
readouts, presentation, tutorials, messages, easy intros
for the non-Puppy fraternity etc.
Puppy Linux
Fun 4 Penguins
_________________ Puppy Raspup 8.2 Final
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html 
|
Back to top
|
|
 |
JustGreg
Joined: 24 May 2005 Posts: 785 Location: Connecticut USA
|
Posted: Sun 27 Jun 2010, 11:20 Post subject:
|
|
Thank you, technosaurus, for the up date. I have change my temperature checking to use xpupsay. This is a very good way of displaying information that a user needs to see. It is nice that it closes automatically without requiring user action.
_________________ Enjoy life, Just Greg
Live Well, Laugh Often, Love Much
|
Back to top
|
|
 |
|