#!/bin/bash
if ( `gconftool –get /apps/nautilus/preferences/show_desktop` == “true” ) then
gconftool –set /apps/nautilus/preferences/show_desktop \
–type boolean false
else
gconftool –set /apps/nautilus/preferences/show_desktop \
–type boolean true
fi
# EOF

Create the script and put it in your home directory.

make executeable sudo chmod +x toggledesktop

then you can create launcher on you desktop when you press it will hide all your desktop files and folders,press again and you will make everything visible again

Let me know what you think about this and let me know if you have a better way

Advertisements