Possible Duplicate:
How do I modify the power options?
I'd like to shutdown my laptop by closing the lid; but in Power Settings there's no option to do that.
Is there any way to add "shutdown" to the pop-down list in the power settings for "when the lid is closed"? I prefer the way through the terminal without installing a third-party application.