Description: Well, this is not a real screensaver. It's more a simple shell script to feed screensavers that can display text from a program, like Apple2, Phosphor or StarWars.
This shell scripts searches for files in a given directory, selects a random file and pipes it into the screensaver.
This is great to get reminded of your own code, to learn about new code or to show any arbitrary text file. Optionally you can specify a file name filter.
For example to show a *.c file from the linux sources specify this as program:
randomfile /usr/src/linux/ '*.c'
(NOTE: In this case the addtional / at the end is important since /usr/src/linux is a link on most distributions)
Hi,
I have used the same approach for my screensaver which displays quotes that are saves in a single file. More details here : http://kwartik.wordpress.com/use-your-screensaver-to-display-your-favorite-quotes/
There seems to be an off-by-one error on line 47, so I made a patch to address it. The patch also cleans up after itself, removing the temporary file in `/tmp/randomfile_filelist'.
Patch: http://eon.shellcode.eu/code/randomfile/randomfile.patch
perfect, random you say? :)
it reminds like xscreensaver, which has rss support inside, i am using phosphor with bbc world news, they are in kde screeensavers now, too bad that the configurator doesn't allow me to choose own rss or file, i had to use xscreensaver instead.
Ratings & Comments
4 Comments
Hi, I have used the same approach for my screensaver which displays quotes that are saves in a single file. More details here : http://kwartik.wordpress.com/use-your-screensaver-to-display-your-favorite-quotes/
There seems to be an off-by-one error on line 47, so I made a patch to address it. The patch also cleans up after itself, removing the temporary file in `/tmp/randomfile_filelist'. Patch: http://eon.shellcode.eu/code/randomfile/randomfile.patch
perfect, random you say? :) it reminds like xscreensaver, which has rss support inside, i am using phosphor with bbc world news, they are in kde screeensavers now, too bad that the configurator doesn't allow me to choose own rss or file, i had to use xscreensaver instead.
THKS