LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux 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


Reply
  Search this Thread
Old 10-06-2009, 11:26 AM   #1
Jozei
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
Noseguy Screensaver - Customisable Messages


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 11:29 AM.
 
Old 10-06-2009, 02:23 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
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"
 
Old 10-06-2009, 07:42 PM   #3
Jozei
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Oh! I see! I'll definately give that a try. Thank you very much! =^-^=
 
  


Reply

Tags
custom, help, message, screensaver



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 09:51 PM
XScreensaver messages on-screen when screensaver is active. Jeebizz Slackware 6 08-10-2008 08:22 AM
Customisable hotkeys in Firefox???? Adrian Baker Linux - Software 4 04-02-2007 03:36 PM
Need a simple customisable Linux Boot CD sausagejohnson Linux - General 2 06-30-2005 07:52 PM
Redirecting the kernel messages to file other than /var/log/messages jyotika_b83 Linux - General 3 04-28-2005 06:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:08 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration