Step 1: Launch gnome-keybinding-properties
Step 2: Click on the "Add" button in the bottom and in the resulting dialog, type "Hide Desktop Icons " for the Name field and for the command field, type:
gconftool-2 -s --type boolean /apps/nautilus/preferences/show_desktop false
Step 3: Create another keybinding by clicking the "Add" button and this time create a "Show Desktop Icons" item. The command for this will be:
gconftool-2 -s --type boolean /apps/nautilus/preferences/show_desktop true
Step 4: Set custom keyboard shortcuts for these two commands. I have used Alt+F11 and Alt+F12 in my case.
Update: You can just use the following command and have only one keyboard shortcut as well. Thanks to the anonymous commenter who provided the tip (please guys, leave your name when commenting :))
gconftool-2 --toggle /apps/nautilus/preferences/show_desktop
Now you can toggle (show/hide) your desktop icons at a keystroke and enjoy your clean wallpapers.
HTH :-)

5 comments:
Nice idea! It would be better having a toggle shortcut instead of on and off. Any idea how to do it?
use --toggle option for toggling. This way you can use only one key binding.
So the command would be
gconftool-2 --toggle /apps/nautilus/preferences/show_desktop
@esteban: so there you have it :-)
@anon: thank you a lot for that tip.
Thanks! This opens a way to set quite a few things with keybindings. I had my icons hidden, but it's great to be able to toggle them on. I like to view them in certain places rather than alphabetically in the file browser.
@anita I am glad that it helped.
Post a Comment