kopischke Posted November 8, 2013 Posted November 8, 2013 (edited) Sleeping the Mac display is the fastest way to lock a machine if a password is set. Unlike switching to the login window (Alfred’s default strategy when using the lock command), all your apps keep running, enabling continuous operation of tools like Dropbox, Hazel or EventScripts, and even quasi-magical unlocking with Knock (if that’s your thing). On a machine whose keyboard has an Eject key, Ctrl+Shift+Eject will do the trick, but on those without, only hot corners are available. Sleep Display complements the inbuilt options by adding an Alfred keyword (sleepdisplay by default, though I prefer to disable standard locking and use lock) and an optional keyboard shortcut (unset by default). No more, no less. Grab it here, or go to the repo here. Changelog: version 1.0.1 – fixed hotkey bringing up Alfred NB: Mavericks only, as it uses a tool compiled with the 10.9 SDK. Edited November 13, 2013 by kopischke
DJay Posted November 9, 2013 Posted November 9, 2013 Great.. Thx a lot. But what's the difference to ./sleepDisplays
kopischke Posted November 12, 2013 Author Posted November 12, 2013 Great.. Thx a lot. But what's the difference to ./sleepDisplays Um, I’m not quite sure where you got the sleepDisplays command from? It’s not part of the default OS X set of CLI commands…
Lucky Luke Posted November 13, 2013 Posted November 13, 2013 Great workflow, thanks! One side note, I think the box for the hotkey should be positioned as in the image below. The way it is now it still brings up alfred and you have to hit return after pressing the hotkey.
kopischke Posted November 13, 2013 Author Posted November 13, 2013 (edited) Great workflow, thanks! One side note, I think the box for the hotkey should be positioned as in the image below. The way it is now it still brings up alfred and you have to hit return after pressing the hotkey. Absolutely. Brainfart of mine, corrected. Re-download or update via Alleyoop. Edited November 13, 2013 by kopischke
dan_djorgi Posted November 23, 2013 Posted November 23, 2013 Great workflow, thanks kopischke! One question though, is it possible to adjust the workflow to sleep only one of multiple displays? Thing is, I have three displays hooked up my MacPro and I'd love to be able to sleep only one (or probable two) of those three displays using Alfred and your workflow. Thanks again, Dan
kopischke Posted December 21, 2013 Author Posted December 21, 2013 Sorry for not answering earlier, I haven’t been around the forums for a while… Short answer, I’m afraid, is no, not with this workflow, as the underlying utility does not support per monitor sleep.
lari Posted December 29, 2013 Posted December 29, 2013 On a machine whose keyboard has an Eject key, Ctrl+Shift+Eject will do the trick, but on those without, only hot corners are available. And on a machine without an Eject key. You can press Ctrl-Shift-Power which does the same trick.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now