diff options
author | gregstallings <gregstallings@gmail.com> | 2013-09-22 03:50:06 -0700 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2013-11-04 14:25:17 +0100 |
commit | 7bba9f3bfed3c9a778aea586b52c0498c5b82cc7 (patch) | |
tree | 9590caf1016ac23ddd38d293cecd8d127181021b /.aliases | |
parent | 284ced9441b552411dd7964649f6ef3c9572055a (diff) | |
download | dotfiles-7bba9f3bfed3c9a778aea586b52c0498c5b82cc7.tar.gz dotfiles-7bba9f3bfed3c9a778aea586b52c0498c5b82cc7.tar.bz2 dotfiles-7bba9f3bfed3c9a778aea586b52c0498c5b82cc7.zip |
.aliases: Add `afk` to lock the screen
Closes #258.
Diffstat (limited to '.aliases')
-rw-r--r-- | .aliases | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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" |