<?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>Technology, programming, design, and everything in-between.</description>
	<lastBuildDate>Fri, 30 Oct 2009 03:09:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</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/</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&#8217;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&#8217;ve finally found a suitable solution with [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;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&#8217;ve finally found a suitable solution with a combination of a Terminal command and <a href="http://www.blacktree.com/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.blacktree.com/');">Quicksilver</a>&#8217;s trigger&nbsp;functionality.</p>
<h3>Command-line&nbsp;script</h3>
<p>It turns out there&#8217;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&nbsp;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&nbsp;command)</p>
<p class="code"><code>#!/bin/sh<br />
/System/Library/CoreServices/"Menu Extras"/User.menu/Contents/Resources/CGSession&nbsp;-suspend</code></p>
<p>Now, we have to make the <code>lockscreen</code> file executable. In Terminal,&nbsp;type:</p>
<p class="code"><code>chmod 754&nbsp;~/bin/lockscreen</code></p>
<h3>Set up a Quicksilver&nbsp;trigger</h3>
<p>The built-in keyboard shortcut system in <span class="caps">OS</span> X can&#8217;t easily trigger a command-line script like our <code>lockscreen</code> script. We&#8217;ll set up a trigger in Quicksilver to accomplish the same&nbsp;effect.</p>
<p>In Quicksilver, go to the Catalog and add a your lockscreen&nbsp;script.</p>
<p>Next, go the Triggers section in Quicksilver. Add a new HotKey under the Custom Triggers section.  Type <code>lockscreen</code> under &#8216;Select an item&#8217; 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&nbsp;like.</p>
<p>That&#8217;s it—close the Quicksilver window and try out your new keyboard&nbsp;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>
