From 7bba9f3bfed3c9a778aea586b52c0498c5b82cc7 Mon Sep 17 00:00:00 2001 From: gregstallings Date: Sun, 22 Sep 2013 03:50:06 -0700 Subject: .aliases: Add `afk` to lock the screen Closes #258. --- .aliases | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.aliases b/.aliases index ce662cb..f5c4038 100644 --- a/.aliases +++ b/.aliases @@ -138,3 +138,6 @@ alias hax="growlnotify -a 'Activity Monitor' 'System error' -m 'WTF R U DOIN'" # Kill all the tabs in Chrome to free up memory # [C] explained: http://www.commandlinefu.com/commands/view/402/exclude-grep-from-your-grepped-output-of-ps-alias-included-in-description 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" -- cgit v1.2.3