Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 18 Dec 2014, 02:04
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
xcowsay talking lobster? new x message display with icon
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 2 of 6 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: Fri 25 Jun 2010, 18:17    Post_subject:  

I just couldn't resist making a contribution to this madness! Laughing

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


Laughing
woofwoof.png
 Description   
 Filesize   17.73 KB
 Viewed   1896 Time(s)

woofwoof.png


_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
JustGreg

Joined: 24 May 2005
Posts: 753
Location: Connecticut USA

PostPosted: 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
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15122
Location: Paradox Realm

PostPosted: 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? Cool

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 WIKI
Back to top
View user's profile Send_private_message Visit_website 
Iguleder


Joined: 11 Aug 2009
Posts: 1926
Location: Israel, somewhere in the beautiful desert

PostPosted: Sat 26 Jun 2010, 10:20    Post_subject:  

01micko wrote:
I just couldn't resist making a contribution to this madness! Laughing


lol, you stole my ambitious ln -s project Razz

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 Smile

_________________
My homepage
My GitHub profile
Back to top
View user's profile Send_private_message Visit_website MSNM 
ICQ 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15122
Location: Paradox Realm

PostPosted: 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 WIKI
Back to top
View user's profile Send_private_message Visit_website 
musher0


Joined: 04 Jan 2009
Posts: 4436
Location: Gatineau (Qc), Canada

PostPosted: Sat 26 Jun 2010, 11:08    Post_subject:  

Now, now, kids! Rolling Eyes
You can have all the fun after your homework is done! Laughing

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: 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
cow_Lobster6.png
 Description   
 Filesize   58.77 KB
 Viewed   1725 Time(s)

cow_Lobster6.png


_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though

Edited_time_total
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4423

PostPosted: Sat 26 Jun 2010, 23:41    Post_subject:  

Now Puppified
Code:
xpupsay --pup=puppy Hello

or simply
Code:
xpupsay Hello
xpupsay-1.2-i486.pet
Description 
pet

 Download 
Filename  xpupsay-1.2-i486.pet 
Filesize  25.17 KB 
Downloaded  528 Time(s) 
xpupsay-1.2.tar.gz
Description  Modified sources
gz

 Download 
Filename  xpupsay-1.2.tar.gz 
Filesize  306.39 KB 
Downloaded  511 Time(s) 
hello-puppy.png
 Description   
 Filesize   18.23 KB
 Viewed   1844 Time(s)

hello-puppy.png


_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15122
Location: Paradox Realm

PostPosted: Sun 27 Jun 2010, 01:20    Post_subject:  

Quote:
Now Puppified


Thank goodness. Those Lobsters were driving me crazy (sorry Joe)
- and I don't have too far to go . . . Wink

Used your new pet technosaurus
working fine Cool

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 WIKI

Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
technosaurus


Joined: 18 May 2008
Posts: 4423

PostPosted: 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.

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: 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
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4423

PostPosted: 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
xpupsay-1.2.1-i486.pet
Description 
pet

 Download 
Filename  xpupsay-1.2.1-i486.pet 
Filesize  12.15 KB 
Downloaded  513 Time(s) 
xpupsay-1.2.1.tar.gz
Description 
gz

 Download 
Filename  xpupsay-1.2.1.tar.gz 
Filesize  303.12 KB 
Downloaded  498 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15122
Location: Paradox Realm

PostPosted: 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 WIKI
Back to top
View user's profile Send_private_message Visit_website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15122
Location: Paradox Realm

PostPosted: 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 Shocked
. . . 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 Wink
Technosaurus is orthodox
. . . and I have a strange feeling that the alligator in Jemimahs pond
may start talking in Fluppy
I hope so anyway . . . Laughing

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 WIKI
Back to top
View user's profile Send_private_message Visit_website 
JustGreg

Joined: 24 May 2005
Posts: 753
Location: Connecticut USA

PostPosted: 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
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 2 of 6 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1022s ][ Queries: 13 (0.0053s) ][ GZIP on ]