On Sat, Feb 13, 2016 at 12:54:26AM +0100, hiro wrote: > how come you can't just run slock from a shell script instead?
I haven't looked at the code, but if I had to guess, it's probably because of race conditions. If you ran the program in a shell script, you'd have to query some X11 program to verify the screen was locked or do something like "sleep" and hope the screen is actually locked. With the functionality inside slock itself, you don't need to worry about these things. Eric