Computer logout after closing the lid

Posted by ejp1087 on Ask Ubuntu See other posts from Ask Ubuntu or by ejp1087
Published on 2012-04-13T05:36:59Z Indexed on 2012/04/13 5:42 UTC
Read the original article Hit count: 309

I would like my computer to logout every time I close the lid. And by that I mean log out completely. Basically I want the startup applications to run every time I open the lid to my computer. Right now, it just locks the screen and comes right back when I type in my password. It would be really great if I can have it such that the startup applications run every time I open the lid. However, would logging out lose any unsaved files?

Alternatively, do you know if there is a way to run a command every time I open the lid?

Thanks!

© Ask Ubuntu or respective owner

Related posts about login

Related posts about startup