PDA

View Full Version : HOWTO: Screensaver as a desktop background (Lazy edition)



Nequeo
April 20th, 2006, 02:19 AM
This is a neat, though rather useless, piece of Eyecandy that is mostly useful as a way of showing up your Windows friends.

You may or may not be aware that, in Prehistoric times, cute little programs that drew things like mountains, fractals, cockroaches or even ants all over your 'root window' (http://en.wikipedia.org/wiki/Root_window) were quite common. Now - funny thing. Xscreensaver works by creating a 'virtual' root window over the top of everything else, and then drawing cool stuff on it. As you might imagine, it's rather simple to tell Linux screensavers to draw themselves onto the real root window, rather than creating a virtual one.

Many minimal window managers, like Fluxbox, leave the root window exposed, so this trick works nicely. Gnome, however, draws your desktop all over the top of it, so nothing you do to the root window is visible.

You could install Fluxbox - but what if you're more comfortable Gnome? You can run a Gnome session and Gnome panels on top of Fluxbox... But if all you want is a quick demonstration to impress friends, there is a much quicker and easier way.

First thing we need to do is stop Gnome, or rather Nautilus, from drawing over the top of your root window.

1. Open a terminal window, or hit Alt-F2, and type in 'gconf-editor'. You'll end up with something that looks spookily similar to the registry editor in Windows.

2. Browse to 'apps/nautilus/preferences/' and set the 'show_desktop' key to 'false'. NOTE: Your desktop icons will vanish.

3. From a terminal window, type '/usr/lib/xscreensaver/glmatrix -root'

4. Enjoy!

5. To stop the screensaver, hit ctrl+C, or close the terminal window. To get your Gnome background and icons back repeat steps 1 and 2, but change 'show_desktop' to true.

Any of the programs in /usr/lib/xscreensaver will work with this trick, though some are rather more distracting than others. The 'fuzzy snowflakes' screensaver (I forget what the executable is called) that comes with Dapper also works particularly well.

Things to try:

* Add an & after the screen saver command (i.e. /usr/lib/xscreensaver -root &) to background the process. This will let you continue working in the same terminal. But you'll need to understand how to manage processes (http://www.comptechdoc.org/os/linux/commands/linux_crprocman.html) in order to stop it.

* Transparent terminals won't look as cool with a screensaver background - because they are not really transparent. I haven't tried this (yet), but with the latest Xgl and Compiz you could probably create neat translucent terminals that actually do show the screensaver running underneath.

n8bounds
May 4th, 2006, 09:21 PM
Pretty neat, the GLMatrix looks nice

Monk22
May 5th, 2006, 05:17 AM
is there anyway to get electricsheep to work with this hack? i tried replacing the glmatrix with electric sheep but it just said "bad option -root"

parktownprawn
May 5th, 2006, 02:00 PM
rather than open the (irritating) gconf tool you can just cut and paste:



gconftool-2 --type bool --set /apps/nautilus/preferences/show_desktop false


to recover your desktop type


gconftool-2 --type bool --set /apps/nautilus/preferences/show_desktop true


(you may need to restart nautilus)

for instant gratifiction you could make a script containing:



gconftool-2 --type bool --set /apps/nautilus/preferences/show_desktop false
/usr/lib/xscreensaver/glmatrix -root

terminalspin
July 1st, 2006, 08:24 PM
is there anyway to get electricsheep to work with this hack? i tried replacing the glmatrix with electric sheep but it just said "bad option -root"

As long as you have the electricsheep package installed, you should be able to start it with :-

electricsheep --zoom 1 --root 1

...without the /usr/lib/xscreensaver / bit.

NeoGreen
July 3rd, 2006, 01:21 AM
Coooool:p

NESFreak
July 4th, 2006, 03:32 PM
pwnage! dude

eldaria
July 6th, 2006, 12:44 AM
Any Idea of how to do this on Kubuntu?

cosimo
March 5th, 2008, 06:48 AM
Hey guys,
I didnt bother to see how old this post is however, haveing a screensaver as a desktop background is easy and does not require disabling nautilus from writing the desktop!
All you need is xwinwrap written by Dave Raveman creator of compiz and coolbg created by cyberorg one of the compiz fusion developers.
thats it!!
NO disabling nautilus at all!
coz

hollerith
May 17th, 2008, 10:34 AM
I tried this with 8.04 and the desktop background still obscures the root window even with show_desktop false or by using xwinwrap either.

xmatrix appears on the background as does mplayer but not glmatrix or xscreensaver-getimage which appears behind.

martinw89
July 3rd, 2008, 06:19 AM
Just a quick note, seems Compiz doesn't expect this so you may get surprising results if you do this with Compiz effects enabled.