Is there an easy way to lock my mac and then immediately sleep, all in one command? I know I can show the login window and then choose the sleep button, but I'd prefer one step rather than two (and a wait in between). There's also the
Lock Screen command in the Keychain menu, but that (stupidly) offers no sleep button that I can see. Could a script work for this, or would the script also get stuck after one command?
Update: Forgot to mention that I don't want to always have to enter my password after waking up from sleep, only after I explicitly lock the computer.