<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The House of Ding &#187; Security</title>
	<atom:link href="http://www.houseofding.com/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.houseofding.com</link>
	<description></description>
	<lastBuildDate>Thu, 05 Jan 2012 03:08:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Screen lock keyboard shortcut for your Mac</title>
		<link>http://www.houseofding.com/2009/01/screen-lock-keyboard-shortcut-for-you-mac/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=screen-lock-keyboard-shortcut-for-you-mac</link>
		<comments>http://www.houseofding.com/2009/01/screen-lock-keyboard-shortcut-for-you-mac/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 08:52:01 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.houseofding.com/?p=41</guid>
		<description><![CDATA[I’ve always been slightly annoyed by the lack of a keyboard shortcut to lock the screen on my Mac. There are several popular solutions out there (screensaver activated by hot corners, a lock icon in menu bar, etc), but I really missed my Windows-style Windows key+L keyboard shortcut. I’ve finally found a suitable solution with [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve always been slightly annoyed by the lack of a keyboard shortcut to lock the screen on my Mac.  There are several popular solutions out there (screensaver activated by hot corners, a lock icon in menu bar, etc), but I really missed my Windows-style Windows key+L keyboard shortcut. I’ve finally found a suitable solution with a combination of a Terminal command and <a href="http://www.blacktree.com/">Quicksilver</a>’s trigger functionality.</p>
<h3>Command-line script</h3>
<p>It turns out there’s a simple terminal command to do exactly what we want.  The following command will hide your desktop contents and display a login window (along with a fancy screen-rotating animation).</p>
<p>Open your favorite text editor and save a file called <code>lockscreen</code> with the contents below.  I saved mine in a directory called <code>~/bin/</code>, but you can put yours anywhere. (Note: ignore the text wrap below—there is no line break in the command)</p>
<p class="code"><code>#!/bin/sh<br />
/System/Library/CoreServices/"Menu Extras"/User.menu/Contents/Resources/CGSession -suspend</code></p>
<p>Now, we have to make the <code>lockscreen</code> file executable. In Terminal, type:</p>
<p class="code"><code>chmod 754 ~/bin/lockscreen</code></p>
<h3>Set up a Quicksilver trigger</h3>
<p>The built-in keyboard shortcut system in OS X can’t easily trigger a command-line script like our <code>lockscreen</code> script. We’ll set up a trigger in Quicksilver to accomplish the same effect.</p>
<p>In Quicksilver, go to the Catalog and add a your lockscreen script.</p>
<p>Next, go the Triggers section in Quicksilver. Add a new HotKey under the Custom Triggers section.  Type <code>lockscreen</code> under ‘Select an item’ and click Save (it should automatically find this from the catalog). Then click on the Trigger column to set the keyboard shortcut.  I went with Ctrl+Option+Command+L, but choose whichever combination you like.</p>
<p>That’s it—close the Quicksilver window and try out your new keyboard shortcut!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.houseofding.com/2009/01/screen-lock-keyboard-shortcut-for-you-mac/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

