LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 10-06-2009, 12:26 PM   #1
Jozei
LQ Newbie
 
Registered: Oct 2009
Posts: 2
Thanked: 0
Noseguy Screensaver - Customisable Messages


[Log in to get rid of this advertisement]
Hey guys; New to the whole forums thing, so if I have posted this in the wrong place then please let me know!

I've been using Gnome for a while, and I have just gotten Debian Lenny on my laptop. I have been trying to change the messages on the screensaver called Noseguy to something custom, like lyrics. I was just wondering if there was any easy way to write a file that doesn't display every word in it, like how fortunes work with the screensaver, or is that asking a little too much?

I've been trying to hack away at it for a few days, but I don't really want to attempt to pull apart fortunes and seeing how that works, cause I'll probably accidentally save over fortunes. Any ideas?

Thanks guys,

Josaphina

Last edited by Jozei; 10-06-2009 at 12:29 PM..
linuxdebian Jozei is offline  
Tag This Post , , , ,
Reply With Quote
Old 10-06-2009, 03:23 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,970
Thanked: 20
I've not used noseguy, but it looks like you can enter either a shell command for the text source?

It that case, there are a couple of option. To create a new fortune file, first create a text file then run it through strfile to create a file that you can pass to fortune.

But that's a bit of hassle; you might want to look at a simpler fortune file (http://www.fefe.de/fortune/)

You could also write your own program. For example:

Code:
#!/usr/bin/perl -W

my @lines = split /\n/, <<EOF;
Put your strings here
One line per string
No blank lines
EOF

print $lines[int rand scalar @lines];
print "\n"
linuxubuntu rjlee is offline     Reply With Quote


Old 10-06-2009, 08:42 PM   #3
Jozei
LQ Newbie
 
Registered: Oct 2009
Posts: 2
Thanked: 0

Original Poster
Oh! I see! I'll definately give that a try. Thank you very much! =^-^=
linuxdebian Jozei is offline     Reply With Quote



Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Noseguy problem joegumbo Slackware 6 09-19-2009 10:51 PM
XScreensaver messages on-screen when screensaver is active. Jeebizz Slackware 6 08-10-2008 09:22 AM
Customisable hotkeys in Firefox???? Adrian Baker Linux - Software 4 04-02-2007 04:36 PM
Need a simple customisable Linux Boot CD sausagejohnson Linux - General 2 06-30-2005 08:52 PM
Redirecting the kernel messages to file other than /var/log/messages jyotika_b83 Linux - General 3 04-28-2005 07:39 PM


All times are GMT -5. The time now is 02:10 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration