Sunday, 8 April 2018

macos - Equivalent of Win-L on Mac




Possible Duplicate:
Is there a keystroke that can lock the Mac OS X screensaver?



What is the equivalent of the shortcut Win + L on a Mac? Eg. the shortcut to lock the computer when you go away from it.



Answer



A solution using Quicksilver (or any utility that can bind a keyboard shortcut to an AppleScript):




  • Create an AppleScript (using /Application/Apple Script/Script Editor.app), containing..


    do shell script "/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -suspend"


  • Save it somewhere (~/Library/Scripts/ maybe)




  • Open the Quicksilver preferences (open quicksilver and press Cmd+,)




  • Go to Triggers, click Add Hotkey (from the + button)




  • Find the script, make sure the action is "Run" and click save:


    enter image description here




  • Click the Trigger next to the new entry, and press the desired lock keyboard shortcut




No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...