1.打开Automator–>新建一个Service–>选择右侧的”Run Shell Script”拖到左侧编辑区.在文本框中输入:
'/System/Library/CoreServices/Menu Extras/User.menu/Contents/Resources/CGSession' -suspend
输入选择 no input,将service保存为”Lock Screen”
2.打开System Preferences–>keyboard–>keyboard shortcuts 点击左侧的Service,拖到最下.选择LockScreen,
双击输入快捷键,我的快捷键是:”Command-Control-L”
以后输入”Command+Control+L”就可以锁屏了!