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
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
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 &
lol, you stole my ambitious ln -s project01micko wrote:I just couldn't resist making a contribution to this madness!
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
Code: Select all
xpupsay --pup=puppy Hello
Code: Select all
xpupsay Hello
Thank goodness. Those Lobsters were driving me crazy (sorry Joe)Now Puppified
Code: Select all
xpupsay --pup=lobster Hello
xpupsay --pup=cow Hello
Code: Select all
#! /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 "$@" &
Code: Select all
display_time=5
alt_image=/usr/share/xcowsay/felix.png
at_y=300
at_x=300
Joe I assume you are not talking of thea lot of work getting that alpha channel
thingy working
if that part is broken and you fixed it please make a patch against the original source code--dream is broken - it uses pwd as / (so it only works if you cd to /)
Code: Select all
grep -rl xcowsay /root/xcowsay-1.2/xcowsay-1.2/ | xargs sed -i 's/xcowsay/xpupsay/g'
Code: Select all
#! /bin/pup-bash
pup-ls -1
.pup-config --pup-prefix=/pup-usr
pup-make
pup-makeinstall
pup-uname -r
pup-gcc -lpthread -o puptheworld puptheworld.c
much easier to have some way to preset a config filexcowsay can also make use of a .xcowsayrc file in the users $HOME directory. Mine now contains the following:
. . . and I have a strange feeling that the alligator in Jemimahs pond
may start talking in Fluppy
In theory, one could have, say, five different config files for different situations: warning, error, confirmation, info, WTF#@!, and call them up with appropriate text as the second argument, or one script with a case statement that would load the appropriate one. The images could be different and appropriate for each situation.CONFIGURATION FILE
xcowsay reads a configuration file on startup. The configuration file can be stored in the XDG compliant location $XDG_CONFIG_HOME/xcowsayrc (which will default to $HOME/.config/xcowsayrc) or in your home directory at $HOME/.xcowsayrc. If the --config=FILE command line option is passed FILE will be processed after your personal configuration file.
The configuration file consists of 'option = value' pairs, one per line. The valid keys are given in the next section. For example, the following line sets display time to 10 seconds:
display_time = 10000
The character '#' begins a comment which lasts until the end of the line.
Code: Select all
display_time=4
#alt_image=/usr/share/xpupsay/pup_small.png
at_y=200
at_x=600
Code: Select all
#!/bin/sh
TEXT_MESG="looks like you messed up big time"
IMG=donkey
exec xcowsay --time=20 --at=200,100 --cow=$IMG $TEXT_MESG "$@"