Add a switch allowing you to select whether closing the laptop lid should trigger your chosen action or just blank the screen. The default Gnome Shell action is to suspend when the lid is closed. (You can use Gnome-Tweak-Tool to customise this behaviour). Useful when your PC is playing music or calculating/downloading something, but you have to (briefly) close the lid and do not want to pause the current operation. Please disable and re-enable this extension whenever you change its or Gnome-Tweak-Tool's settings. Please note: GS 3.6 no longer handles the lid switch, so this extension doesn't have the desired effect in 3.6; see https://bugzilla.gnome.org/show_bug.cgi?id=687277 ; the same holds for GS 3.8.
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
I notice you have copied http://git.gnome.org/browse/gnome-shell-extensions/tree/lib/convenience.js into lib.js and not acknowledged this in the header/copyright. It would be helpful if you could use convenience.js unmodified - we are trying to keep track of its users to its functionality may be included upstream in future.