From 3124321e13fb90d826fc0113fdac8fd1292cd929 Mon Sep 17 00:00:00 2001 From: bali Date: Thu, 6 Jun 2024 16:29:08 +0300 Subject: [PATCH] feat(mac-setup): enforce lock when the lid is closed --- useful-scripts/mac_fresh_install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/useful-scripts/mac_fresh_install.sh b/useful-scripts/mac_fresh_install.sh index c768bce..7d2a41b 100755 --- a/useful-scripts/mac_fresh_install.sh +++ b/useful-scripts/mac_fresh_install.sh @@ -43,3 +43,6 @@ nvm install node # "node" is an alias for the latest version defaults write com.apple.dock wvous-br-corner -int 0 && \ defaults write com.apple.dock wvous-br-modifier -int 0 && \ killall Dock + +# lock when the lid is closed +sysadminctl -screenLock immediate -password -