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”就可以锁屏了!
原帖:http://anotherbug.com/blog/archives/649
本文介绍了一种在Mac上设置锁屏快捷键的方法。通过Automator创建服务并运行Shell脚本来实现快速锁屏功能,具体步骤包括:1. 在Automator中新建一个服务,选择运行Shell脚本并输入特定命令;2. 在系统偏好设置中设置键盘快捷键,例如使用Command+Control+L来触发锁屏。
614

被折叠的 条评论
为什么被折叠?



