<?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>Ctrl-C &#187; Windows</title>
	<atom:link href="http://ctrl-c.us/blog/archives/category/computers/windows/feed" rel="self" type="application/rss+xml" />
	<link>http://ctrl-c.us/blog</link>
	<description>a friendly interruption</description>
	<lastBuildDate>Fri, 28 May 2010 11:49:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Keyboard Remapping in Windows XP</title>
		<link>http://ctrl-c.us/blog/archives/302</link>
		<comments>http://ctrl-c.us/blog/archives/302#comments</comments>
		<pubDate>Tue, 02 Jun 2009 17:36:55 +0000</pubDate>
		<dc:creator>Caleb Spare</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://ctrl-c.us/blog/?p=302</guid>
		<description><![CDATA[When I found that I had to use Windows for work, the first thing I did was to install gvim and my usual host of plugins. The next thing was to remap caps lock and escape. I switch these when I&#8217;m using Linux because I don&#8217;t really ever use caps lock, but I use escape [...]]]></description>
			<content:encoded><![CDATA[<p>When I found that I had to use Windows for work, the first thing I did was to install <a href="http://www.vim.org/download.php">gvim</a> and my usual host of plugins. The next thing was to remap caps lock and escape. I switch these when I&#8217;m using Linux because I don&#8217;t really ever use caps lock, but I use escape all the time (especially in vim). In Linux it&#8217;s a simple <code>.Xmodmap</code> entry:</p>
<p><span id="more-302"></span></p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">remove Lock = Caps_Lock
add Lock = Escape
keysym Caps_Lock = Escape
keysym Escape = Caps_Lock</pre></div></div>

<p>In Windows, it&#8217;s a <a href="http://www.usnetizen.com/fix_capslock.php">bit trickier</a>. You have to add a registry key, and look up the hex codes for the escape and caps lock keys. I found a lot of premade registry files for switching other keys, but apparently I&#8217;m the only person who swaps escape with caps lock. Anyway, you just need to paste the following in a file, name it something with a <code>.reg</code> extension, and then double-click it to import the key into the registry.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Windows Registry Editor Version 5.00
&nbsp;
[HKEY_CURRENT_USER\Keyboard Layout]
&quot;Scancode Map&quot;=hex:00,00,00,00,00,00,00,00,03,00,00,00,3a,00,01,00,01,00,3a,00,00,00,00,00</pre></div></div>

<p>This only applies the change to the current user, and you have to log out and log back in for the changes to take effect. You have to change the <code>[HKEY_CURRENT_USER\Keyboard Layout]</code> to <code>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]</code> if you want it to apply to all users.</p>
<p>While you&#8217;re at it, you can find a small utility to allow for alt + left-click window dragging and alt + right-click resizing <a href="http://corz.org/windows/software/accessories/KDE-resizing-moving-for-XP-or-Vista.php">here</a> and another for background window scrolling <a href="http://www.thefreewindows.com/?p=1387">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ctrl-c.us/blog/archives/302/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
