xcowsay talking lobster? new x message display with icon

Under development: PCMCIA, wireless, etc.
Message
Author
big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

xcowsay talking lobster? new x message display with icon

#1 Post by big_bass »

Image

there is active recent development with xcowsay
so if you wanted new features or would like to suggest a patch
it would be done by the author and maintaining documented progress of the program
such as the correct way using GIT
this is the only way linux will progress in an organized way


main page
http://www.doof.me.uk/xcowsay/


GIT
http://git.nickg.me.uk/?p=xcowsay.git;a=summary

==================================================




I was reading the fluppy thread and saw this I didnt want to distract the thread so I started a new one

original post
http://www.murga-linux.com/puppy/viewto ... 458#429458

lobster
But what we need is a talking cow Shocked
- the png could even be swapped for a Puppy
Now that is the way to handle hints, tips and help . . .
WARNING: this may be fun to edit and play with !
I already started hacking at it :D
so I made one example how to modify the image and message
then run it included

UPDATED 12-28-2011
xcowsay-1.3 slackware packaged compiled on puppy
http://www.puppy2.org/slaxer/xcowsay-1. ... 4_SLXR.tgz


xcowsay-1.2 slackware packaged compiled on puppy
http://www.puppy2.org/slaxer/xcowsay-1. ... 3_SLXR.tgz

festival-1.96 sound support
http://repository.slacky.eu/slackware-1 ... 86-3as.tgz

=============================================
quick how to

1.)make an image
it has to start with a prefix cow_
an example is here in
/usr/share/xcowsay/cow_Lobster6.png

2.)make a script
an example here
/usr/bin/xlobsterthink


3.)make a message
an example here

Code: Select all

exec xcowsay --cow=Lobster6 –-Lobster  has a great idea big_bass says it could be done   "$@"
explained image

Code: Select all

exec xcowsay --cow=
Lobster6
since the program looks for a prefix cow_ already only the name in this case Lobster6 is needed but dont need to add the .png extension in the command

explained second option message
Lobster is not a command or an image here its just plain text

Code: Select all

–-Lobster  has a great idea big_bass says it could be done   "$@"

4.)then run it

Code: Select all

 /usr/bin/xlobsterthink

this is nice because you can have many messages stored then call the scripts to save a lot of coding
Last edited by big_bass on Thu 29 Dec 2011, 00:14, edited 18 times in total.

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#2 Post by jemimah »

Haha! :lol:

This is great.

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#3 Post by vovchik »

Dear Joe,

I agree with Jemimah. It's great.

Thanks and kind regards,
Bogdan

gerry
Posts: 986
Joined: Thu 26 Jul 2007, 21:49
Location: England

#4 Post by gerry »

Where's the start of this topic? Or which topic gave birth to it?

gerry

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#5 Post by jemimah »


User avatar
rjbrewer
Posts: 4405
Joined: Tue 22 Jan 2008, 21:41
Location: merriam, kansas

#6 Post by rjbrewer »

Lobsters greatest idea was the "Emergency Yodel Button";
though it lacked the full ambiance and glory of a real alpine
yodel. :lol:

Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

#7 Post by big_bass »

gerry
Where's the start of this topic? Or which topic gave birth to it?



I was reading jemimah's fluppy thread and didnt want to distract
the thread this needed a new topic because its a new way to manage X messages
with an image

Joe

JustGreg
Posts: 782
Joined: Tue 24 May 2005, 10:55
Location: Connecticut USA

#8 Post by JustGreg »

This is going to be way too much fun for the graphic geniuses. It will be interesting.
Enjoy life, Just Greg
Live Well, Laugh Often, Love Much

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#9 Post by Lobster »

Emergency Yodel Button
http://www.emergencyyodel.com/

A yodeling emergency Lobster, could become essential
for a variety of purposes :shock:
I originally suggested xcowsay for Fluppy
because it has flite - a very good voice synthesizer
which would work well in combination with xcowsay

Puppy Linux
includes talking Lobster
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
rjbrewer
Posts: 4405
Joined: Tue 22 Jan 2008, 21:41
Location: merriam, kansas

#10 Post by rjbrewer »

Lobster wrote:
Emergency Yodel Button
http://www.emergencyyodel.com/

A yodeling emergency Lobster, could become essential
for a variety of purposes :shock:
I originally suggested xcowsay for Fluppy
because it has flite - a very good voice synthesizer
which would work well in combination with xcowsay

Puppy Linux
includes talking Lobster
The world is ready for cows that Yodel!

A little Mongolian Throat singing in the background would be nice too.

Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

JustGreg
Posts: 782
Joined: Tue 24 May 2005, 10:55
Location: Connecticut USA

#11 Post by JustGreg »

This is neat! I applied xcowsay to my temperature display utility for Lucid. The code is really simple now:

Code: Select all

THRMFILE=`find /proc/acpi/thermal_zone -name "temperature"`
TEXT=`cat $THRMFILE | cut -c25-30`
exec xcowsay --cow=small $TEXT
Here is a png of my desktop with the temperature display
Enjoy life, Just Greg
Live Well, Laugh Often, Love Much

JustGreg
Posts: 782
Joined: Tue 24 May 2005, 10:55
Location: Connecticut USA

#12 Post by JustGreg »

I took the liberty of converting Big Bass package into a regular pet for people to try out. The pet installs fine under Lucid Puppy 5.01
Enjoy life, Just Greg
Live Well, Laugh Often, Love Much

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#13 Post by jemimah »

Hah, if you wanna be really annoying, one could replace yaf-splash with a wrapper for xcowsay, and let the cow (or lobster) handle all notifications.


...

big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

#14 Post by big_bass »

updated lobster image again 6-26-2010
cleaned up the image a bit and re sized its smaller of course you can select any other image
I thought it to fitting to have a happy lobster .... can we get a nice English accent too :D

@jemimah
yes, this will be a nice replacement for " yaf-splash type of messages " it has built in utf-8 handling and images!
I was looking at the C code there are many options to use


how about for those errors cow_donkey will let you know :lol:

Code: Select all

#!/bin/sh

#call this xdonkeythink

TEXT_MESG="looks like you messed up big time" 
IMG=donkey
exec xcowsay --cow=$IMG $TEXT_MESG "$@"

Joe
Attachments
cow_Lobster6.png
(58.77 KiB) Downloaded 2497 times
cow_donkey.png
(54.11 KiB) Downloaded 2615 times
Last edited by big_bass on Mon 28 Jun 2010, 15:02, edited 6 times in total.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#15 Post by Lobster »

Having problems with sound in Fluppy - so not sure what this sounds like
http://www.youtube.com/watch?v=20Hor12VyCw
I used JustGregs pet and CPU code like so:

Code: Select all

#! /bin/bash
sleep 5
xcowsay --cow=Lobster6 --time=1 --dream=puppylogo96.png "$@"
xcowsay --cow=Lobster6 We are Puppy Linux. Resistance is futile. We will steal your penguins! "$@"
THRMFILE=`find /proc/acpi/thermal_zone -name "temperature"` 
TEXT=`cat $THRMFILE | cut -c25-30` 
xcowsay --cow=Lobster6 My CPU temp is $TEXT - time to TAKE OVER THE WORLD!
xcowsay --cow=Lobster6 A world populated by talking Lobsters. We must not fail! "$@"
xcowsay --cow=Lobster6 --time=2 --dream=poseidon.jpg "$@"
xcowsay --cow=Lobster6 My operating system has talking Lobsters. Your arguments are invalid. "$@"
xcowsay --cow=Lobster6 Your questions are irrelevant. Prepare to be assimilated! "$@"
xcowsay --cow=Lobster6 --time=2 --dream=lobkiss.jpg "$@"
By changing the image files you can get your own results
Apologies for spelling mishtakes . . .
but I really want it tied to flite . . . :shock:
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#16 Post by 01micko »

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

Code: Select all

#!/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
:lol:
Attachments
woofwoof.png
(17.73 KiB) Downloaded 2131 times
Puppy Linux Blog - contact me for access

JustGreg
Posts: 782
Joined: Tue 24 May 2005, 10:55
Location: Connecticut USA

#17 Post by JustGreg »

Yes, o1micko, another good use!
Enjoy life, Just Greg
Live Well, Laugh Often, Love Much

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#18 Post by Lobster »

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? 8)

Code: Select all

#! /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.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Iguleder
Posts: 2026
Joined: Tue 11 Aug 2009, 09:36
Location: Israel, somewhere in the beautiful desert
Contact:

#19 Post by Iguleder »

01micko wrote:I just couldn't resist making a contribution to this madness! :lol:
lol, you stole my ambitious ln -s project :P

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 :)
[url=http://dimakrasner.com/]My homepage[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#20 Post by Lobster »

In Puppy Lucid 205 I added the second flite speech pet mentioned here:
http://www.murga-linux.com/puppy/viewto ... 439#365897

Here is my code with speech sythesis added

Code: Select all

#! /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.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Post Reply