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 Mon 21 Apr 2014, 11:09
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 1 of 6 [85 Posts]   Goto page: 1, 2, 3, 4, 5, 6 Next
Author Message
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Thu 24 Jun 2010, 11:22    Post subject:  xcowsay talking lobster? new x message display with icon
Subject description: edit it to whatever image you want it t be
 



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/viewtopic.php?p=429458#429458

lobster
Quote:

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 Very Happy
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.3-i486-4_SLXR.tgz


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

festival-1.96 sound support
http://repository.slacky.eu/slackware-12.2/utilities/festival/1.96-beta/festival-1.96_beta-i686-3as.tgz

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

1.)make an image
it has to start with a prefix[b] 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:

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


explained image
Code:
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:
–-Lobster  has a great idea big_bass says it could be done   "$@"



4.)then run it
Code:
 /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 Wed 28 Dec 2011, 20:14; edited 18 times in total
Back to top
View user's profile Send private message 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Thu 24 Jun 2010, 12:01    Post subject:  

Haha! Laughing

This is great.
Back to top
View user's profile Send private message Visit poster's website 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Thu 24 Jun 2010, 12:15    Post subject:  

Dear Joe,

I agree with Jemimah. It's great.

Thanks and kind regards,
Bogdan
Back to top
View user's profile Send private message 
gerry

Joined: 26 Jul 2007
Posts: 946
Location: England

PostPosted: Thu 24 Jun 2010, 13:30    Post subject:  

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

gerry
Back to top
View user's profile Send private message 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Thu 24 Jun 2010, 13:47    Post subject:  

http://www.murga-linux.com/puppy/viewtopic.php?p=429458#429458
Back to top
View user's profile Send private message Visit poster's website 
rjbrewer


Joined: 22 Jan 2008
Posts: 4422
Location: merriam, kansas

PostPosted: Thu 24 Jun 2010, 14:04    Post subject:  

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

_________________

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

Back to top
View user's profile Send private message 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Thu 24 Jun 2010, 16:38    Post subject:  

gerry
Quote:
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

_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though
Back to top
View user's profile Send private message 
JustGreg

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

PostPosted: Thu 24 Jun 2010, 16:41    Post subject:  

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
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


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

PostPosted: Thu 24 Jun 2010, 17:43    Post subject:  

Quote:
Emergency Yodel Button

http://www.emergencyyodel.com/

A yodeling emergency Lobster, could become essential
for a variety of purposes Shocked
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 WIKI
Back to top
View user's profile Send private message Visit poster's website 
rjbrewer


Joined: 22 Jan 2008
Posts: 4422
Location: merriam, kansas

PostPosted: Thu 24 Jun 2010, 17:48    Post subject:  

Lobster wrote:
Quote:
Emergency Yodel Button

http://www.emergencyyodel.com/

A yodeling emergency Lobster, could become essential
for a variety of purposes Shocked
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

Back to top
View user's profile Send private message 
JustGreg

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

PostPosted: Thu 24 Jun 2010, 21:03    Post subject:
Subject description: Tried it with my temperature display utiltiy
 

This is neat! I applied xcowsay to my temperature display utility for Lucid. The code is really simple now:
Code:
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
xcow-temp.png
Description 
png

 Download 
Filename  xcow-temp.png 
Filesize  302.92 KB 
Downloaded  664 Time(s) 

_________________
Enjoy life, Just Greg
Live Well, Laugh Often, Love Much
Back to top
View user's profile Send private message 
JustGreg

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

PostPosted: Thu 24 Jun 2010, 21:08    Post subject:
Subject description: A pet of xcowsay
 

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
xcowsay-1.2.pet
Description 
pet

 Download 
Filename  xcowsay-1.2.pet 
Filesize  222.33 KB 
Downloaded  584 Time(s) 

_________________
Enjoy life, Just Greg
Live Well, Laugh Often, Love Much
Back to top
View user's profile Send private message 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Thu 24 Jun 2010, 21:13    Post subject:  

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.


...
Back to top
View user's profile Send private message Visit poster's website 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Thu 24 Jun 2010, 22:40    Post subject:  

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 Very Happy

@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 Laughing


Code:

#!/bin/sh

#call this xdonkeythink

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



Joe
cow_Lobster6.png
 Description   
 Filesize   58.77 KB
 Viewed   1944 Time(s)

cow_Lobster6.png

cow_donkey.png
 Description   
 Filesize   54.11 KB
 Viewed   2081 Time(s)

cow_donkey.png


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

Last edited by big_bass on Mon 28 Jun 2010, 11:02; edited 6 times in total
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


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

PostPosted: Fri 25 Jun 2010, 04:48    Post subject:  

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:
#! /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 . . . Shocked

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 6 [85 Posts]   Goto page: 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:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


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