Page 1 of 5

xcowsay talking lobster? new x message display with icon

Posted: Thu 24 Jun 2010, 15:22
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

Posted: Thu 24 Jun 2010, 16:01
by jemimah
Haha! :lol:

This is great.

Posted: Thu 24 Jun 2010, 16:15
by vovchik
Dear Joe,

I agree with Jemimah. It's great.

Thanks and kind regards,
Bogdan

Posted: Thu 24 Jun 2010, 17:30
by gerry
Where's the start of this topic? Or which topic gave birth to it?

gerry

Posted: Thu 24 Jun 2010, 17:47
by jemimah

Posted: Thu 24 Jun 2010, 18:04
by rjbrewer
Lobsters greatest idea was the "Emergency Yodel Button";
though it lacked the full ambiance and glory of a real alpine
yodel. :lol:

Posted: Thu 24 Jun 2010, 20:38
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

Posted: Thu 24 Jun 2010, 20:41
by JustGreg
This is going to be way too much fun for the graphic geniuses. It will be interesting.

Posted: Thu 24 Jun 2010, 21:43
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

Posted: Thu 24 Jun 2010, 21:48
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.

Posted: Fri 25 Jun 2010, 01:03
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

Posted: Fri 25 Jun 2010, 01:08
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

Posted: Fri 25 Jun 2010, 01:13
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.


...

Posted: Fri 25 Jun 2010, 02:40
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

Posted: Fri 25 Jun 2010, 08:48
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:

Posted: Fri 25 Jun 2010, 22:17
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:

Posted: Sat 26 Jun 2010, 00:54
by JustGreg
Yes, o1micko, another good use!

Posted: Sat 26 Jun 2010, 10:13
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 &

Posted: Sat 26 Jun 2010, 14:20
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 :)

Posted: Sat 26 Jun 2010, 14:59
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