Until I shifted to Mac I used to use an app called Fences in Windows to hide desktop by double clicking the desktop. I wanted a similar app to do this on the Mac OS X Mavericks but I have no clue how to do it. The closest app I made is using a global shortcut key Shift+Command+H (using the idea I found on GitHub at MASShortcutDemo to toggle between hide and show of desktop.
Basically it ran the following commands and set a flag as desktop is hidden
defaults write com.apple.finder CreateDesktop -bool false; killall Finder
Pressing shortcut again ran these commands to revert it
defaults write com.apple.finder CreateDesktop -bool true; killall Finder
I want to know if this is possible to just double click on the desktop and make this happen pretty much like Fences on Windows. I have already tried an app called HideDesktop which works fairly simple but would love to know how to get this done.