Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Odd, I run Slackware-current, with Fluxbox.

To suspend, I just run "xlock & loginctl suspend" from a script being called from a Fluxbox submenu. Dumb easy.



Good satire!


To clarify the parent's comment, he clicks a button in a menu to suspend, he just also said what the button is doing. It's probably less complicated than you're thinking.


xlock = locks your desktop with a screensaver (or not).

& = puts xlock in the background so the shell can continue parsing commands without waiting for xlock to finish.

loginctl = sends the command on the right to the login manager.

suspend = self-explanatory.

Thus, upon waking up from suspend, your machine is still locked up by xlock. Simple.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: