diff --git a/.aliases b/.aliases index 3387fa0609e..25621ad07d2 100644 --- a/.aliases +++ b/.aliases @@ -139,7 +139,7 @@ alias pumpitup="osascript -e 'set volume output volume 100'" alias chromekill="ps ux | grep '[C]hrome Helper --type=renderer' | grep -v extension-process | tr -s ' ' | cut -d ' ' -f2 | xargs kill" # Lock the screen (when going AFK) -alias afk="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend" +alias afk="osascript -e 'tell app \"System Events\" to key code 12 using {control down, command down}'" # Reload the shell (i.e. invoke as a login shell) alias reload="exec ${SHELL} -l"