From MacOS to Ubuntu: Show/Hide Desktop Icons on Gnome
Par Sébastien Pierre, jeudi 8 mai 2008 à 11:50 :: Interface :: #85 :: rss
I've been thinking for some months of replacing MacOS X with Ubuntu as my primary OS. I've been using Ubuntu for a couple of years on my good old T22 and felt that each year Linux was getting closer to what I expected. I actually made the full move a couple of weeks ago and Ubuntu 8.04 is now my OS of choice for my everyday work -- but I missed some extras that were only available in OSX.
One of these is Camouflage, a small utility that lets you toggle the display of desktop icons. My desktop can become rather messy, and I like to get rid of unnecessary information when I need to concentrate. After some research, I realized there was no utility to do that easily on Linux, so I wrote a simple one.

By clicking on the "toggle desktop" icon, my desktop icons disappear or appear, which is really like the inverse from the "show desktop" icon next to it. To implement this feature, you simply have to create this script somewhere in your filesystem:
#!/usr/bin/tcsh
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
endif
# EOF
Then right-click on an empty space in your top or bottom gnome panel, select the "Add to panel" menu entry. Fill in the form in a similary way as illustrated below, making sure that you give the path to the script you just saved (also make sure the script has +x rights).
![]()
You can also get the icon file here if you want to give it the same look as on the illustration. It seems like Nautilus sometimes has problems when toggling the show_desktop properties, and I have to restart it manually.
Commentaires
1. Le lundi 2 juin 2008 à 06:52, par freedomfries
2. Le jeudi 24 juillet 2008 à 18:18, par Sean
3. Le lundi 8 décembre 2008 à 14:14, par lrbabe
4. Le vendredi 27 mars 2009 à 09:17, par Campa
5. Le lundi 20 juillet 2009 à 12:27, par SiNGH
6. Le mardi 13 octobre 2009 à 08:07, par Rossie Jordan
7. Le lundi 2 août 2010 à 08:59, par herve leger
8. Le mercredi 18 août 2010 à 08:30, par herve leger dress
9. Le mardi 24 août 2010 à 14:50, par timberland shoe company
Ajouter un commentaire