<?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>BigSmoke &#187; keyboard</title>
	<atom:link href="http://blog.bigsmoke.us/tag/keyboard/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.bigsmoke.us</link>
	<description>Smokes your problems, coughs fresh air.</description>
	<lastBuildDate>Sat, 04 Feb 2012 18:03:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Making a Compaq Deskpro sff boot without keyboard</title>
		<link>http://blog.bigsmoke.us/2010/12/14/making-a-compaq-deskpro-sff-boot-without-keyboard</link>
		<comments>http://blog.bigsmoke.us/2010/12/14/making-a-compaq-deskpro-sff-boot-without-keyboard#comments</comments>
		<pubDate>Tue, 14 Dec 2010 19:53:48 +0000</pubDate>
		<dc:creator>halfgaar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[compaq]]></category>
		<category><![CDATA[deskpro]]></category>
		<category><![CDATA[keyboard]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1767</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>To boot a compaq Deskpro sff without keyboard, you need to configure the BIOS in a special way. </p>
<p>I <a href="http://m0n0.ch/wall/list/showmsg.php?id=137/36">found</a> this:</p>
<blockquote><p>- Run BIOS setup by pressing F10<br />
- Goto &#8216;Security&#8217; and &#8216;Set Power On Password&#8217;<br />
- Type in a password and F10 to accept the change<br />
- As soon as password is set, &#8216;Password Options&#8217; will appear under &#8216;Security&#8217; tab<br />
- Enable &#8216;Network Server&#8217; mode in there<br />
- F10 to save changes and exit</p>
<p>When booting up it won&#8217;t ask you for F1 anymore. However, if you or<br />
someone else plugs in a keyboard it will ask for a power-on password.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2010/12/14/making-a-compaq-deskpro-sff-boot-without-keyboard/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Caps Lock as an extra Control key</title>
		<link>http://blog.bigsmoke.us/2008/07/15/using-caps-lock-as-an-extra-control-key</link>
		<comments>http://blog.bigsmoke.us/2008/07/15/using-caps-lock-as-an-extra-control-key#comments</comments>
		<pubDate>Tue, 15 Jul 2008 10:31:35 +0000</pubDate>
		<dc:creator>Rowan Rodrik</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[Lenovo]]></category>
		<category><![CDATA[PuTTY]]></category>
		<category><![CDATA[T61]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=98</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>With me mostly posting about computer stuff on this weblog, it might surprise you that, until May this year, I hadn&#8217;t owned a personal computer in years while the last one that I did own was a slow pig grown from some old parts of an even slower pig and some second-hand replacements. So, you can image my joy when I got a shiny, new Lenovo Thinkpad 61 this spring.</p>

<p>One of the joys of once more owning a personal computer is that I don&#8217;t have to live through PuTTY anymore. (I used to SSH to the local Debian server here if I wanted to get <em>anything</em> done.) I&#8217;ve reacquainted myself with Gentoo and I&#8217;m loving it. Of course, there&#8217;s a lot more to configure than with Ubuntu (which supports the T61 very neatly out of the box), but that&#8217;s the whole point; I want to be able to configure everything my way and I want to update my knowledge about how Linux systems are made up these days. Control.</p>

<p>On the topic of control, the Control key on the Lenovo keyboard, as with many laptop keyboards that I&#8217;ve encountered, is in a bit of an awkward position, squeezed to the right by the Function key. Since, I very much depend on the Control key for shortcuts (in just about anything, but especially in <a href="http://www.bigsmoke.us/readline/shortcuts">libreadline-based programs</a>), I decided to change the Caps Lock key to be an extra Control key. I&#8217;ve never actually used the CapsLock key in my life, I probably never will, older keyboards used that very spot for the Control Key, and why not? It&#8217;s a much better spot, requiring less gymnastics for my little pinky to reach. Once I considered this I was actually puzzled about why I&#8217;ve always wasted such an well-accessible key position.</p>

<h2>X</h2>

<p>On to the configuration. I wanted this to work in both Console mode and in X. But first X. In the <tt>xorg.conf</tt>, I went to the <tt>InputDevice</tt> section for my keyboard and added <tt>ctrl:nocaps</tt> to <tt>XkbOptions</tt>. The full <tt>XkbOptions</tt> line now reads:</p>

<pre>Option "XkbOptions" "ctrl:nocaps,altwin:menu,compose:ralt,eurosign:e"</pre>

<p>That&#8217;s it. I had to take a few more steps to get it to work in the console also.</p>

<h2>Console</h2>

<p>First, I created a file called &#8220;<tt>/etc/extra-key-conf</tt>&#8221; with the following contents:</p>

<pre>
keymaps 0-15
keycode 58 = Control
</pre>

<p>Then I added the following to <tt>/etc/conf.d/local.start</tt>. This is a Gentoo specific script that is loaded by <tt>/etc/init.d/local</tt>.</p>

<pre class="bash"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#91;</span> -z <span style="color: #ff0000;">&quot;$DISPLAY&quot;</span> -a -e /etc/extra-key-conf <span style="color: #66cc66;">&#93;</span>; <span style="color: #b1b100;">then</span>
        loadkeys /etc/extra-key-conf &amp;&gt;/dev/null
<span style="color: #b1b100;">fi</span></pre>

<p>What this does is to check if the <tt>$DISPLAY</tt> variable isn&#8217;t set (of which we can be sure in this context, but may be useful if you plan to copy this snippet). It also checks if <tt>/etc/extra-key-conf</tt> exists. If both conditions are satisfied, <tt>loadkeys</tt> is called with that file as its argument.</p>

<h2>In conclusion</h2>

<p>I can really recommend this configuration even if your Control key is not awkwardly positioned on your keyboard. Do you use your Caps Lock key? Regularly? If you don&#8217;t, this will make your keyboard use more effective.</p>

<h2>Reference</h2>

<p>If you want to read into this more extensively, I recommend the <cite><a href="http://c2.com/cgi/wiki?RemapCapsLock">Remap Caps Lock</a></cite> article from the Portland Pattern Repository.]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2008/07/15/using-caps-lock-as-an-extra-control-key/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Another contributed Readline keyboard shortcut</title>
		<link>http://blog.bigsmoke.us/2007/05/13/readline-exchange-point-and-mark-command</link>
		<comments>http://blog.bigsmoke.us/2007/05/13/readline-exchange-point-and-mark-command#comments</comments>
		<pubDate>Sun, 13 May 2007 22:37:49 +0000</pubDate>
		<dc:creator>Rowan Rodrik</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[readline]]></category>
		<category><![CDATA[shortcut]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/2007/05/13/readline-exchange-point-and-mark-command</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>Last Wednesday, I was given a very nice <a href="http://blog.bigsmoke.us/2007/05/09/bypassing-smart-completion-in-bash">response</a> with a great tip to my table of <a href="http://www.bigsmoke.us/readline/shortcuts">Readline keyboard shortcuts</a> by Luca City. Yesterday, Lance Levine gave me another extremely nice response and another great tip:</p>

<blockquote>
<p>Just wanted to say appreciate the nice readline cheatsheet.  There were
a couple I never knew (the <kbd>ctrl-alt-asterisk</kbd> is gonna be a real time saver)
and I never knew about <kbd>ctrl-G</kbd> or <kbd>ctrl-J</kbd> to end incremental searches either.</p>

<p>One that might be worth knowing for a lot of people if you ever make updates,
would be the <kbd>ctrl-x-x</kbd> cmd. which takes you to the beginning of the line (and
then back again if you hit it again).
I enjoy working in screen, and the default <kbd>ctrl-a</kbd> escapes you from readline when you&#8217;re
in a screen session so I never use it lest get confused.</p>

<p>Best Regards,<br />
Lance Levine</p>
</blockquote>

<p>Well, Lance, I&#8217;m an avid GNU screen user myself, so your tip is very useful to me! I&#8217;ve added it to the table to ease the suffering of our fellow GNU screen users. <img src='http://blog.bigsmoke.us/wp-factory/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>

<p>Indeed I did, but I found it difficult to come up with a concise and clear description of the shortcut. So difficult, in fact, that I didn&#8217;t succeed at it:</p>

<p><center><img src='http://blog.bigsmoke.us/uploads/2007/05/ctrl-x-x-keyboard-shortcut-with-ugly-description.png' alt='Ctrl+x+x readline keyboard shortcut with ugly description' /></center></p>

<p>So, what does the <a href="http://tiswww.case.edu/php/chet/readline/rluserman.html">Readline user manual</a> have to say that may help me with a description?</p>

<blockquote><dl>
<dt><kbd>exchange-point-and-mark (C-x C-x)</kbd></dt>
<dd>Swap the point with the mark. The current cursor position is set to the saved position, and the old cursor position is saved as the mark.</dd>
</dl></blockquote>

<p>While typing, the mark normally is at the beginning of the line. Pressing <kbd>Ctrl-x-x</kbd> will move the cursor to the mark and set the mark to the old cursor position. If you now move the cursor and press <kbd>Ctrl-x-x</kbd> again, the mark won&#8217;t be at the beginning of the line but at place where you moved the cursor to. This means that the <kbd>Ctrl-x-x</kbd> shortcut is more than just a way to move back and forth between the beginning and ending of a line.</p>

<p>Another goody worth mentioning is the <kbd>Ctrl-@</kbd> shortcut which will simply set the mark at the current cursor position or at the position specified by a numeric argument.</p>

<p>Now, I just need to think of a way to integrate these two Readline command bindings into the table without the descriptions taking up as many lines as this blog post. <img src='http://blog.bigsmoke.us/wp-factory/wp-includes/images/smilies/icon_confused.gif' alt=':-?' class='wp-smiley' />  Any bright ideas, anyone?</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2007/05/13/readline-exchange-point-and-mark-command/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

