Posts Tagged ‘hardware’

AutoHotkey: Swedish Dvorak (Svorak) in Windows

Posted in personal on December 11th, 2008 by Ola Lindberg – Be the first to comment

I have been using Svorak (a Swedish variant of the Dvorak keyboard layout) for some years, so I’ve had the chance to use it under some different operative systems. The standard Dvorak layout is available in all (?) operative systems but the Swedish variant is available out of the box in Linux only. Luckily there are ways to install a layout, that you then can select from your keyboard settings, it in both Windows and Mac OS X. It works fine for the most part.

One issue I have been dabbling with a lot is that when switching between layouts, both OS X and Windows, it changes per application. This means that if you have Firefox and Notepad opened you’ll have to switch layout twice to get it in both applications. It’s really annoying if you switch a lot (for example if you do pair programming and switch every 10 minutes). Other annoiances are that multiple layouts sometimes seems to cause problems with inconsistent shortcuts between the layouts (i.e. ctrl-c means ctrl-c in one layout but not in the other).

Svorak with AutoHotkey

Instead of installing a keyboard layout I’m now running AutoHotkey to remap my keys. It’s a tool that allows you to create macros, so I have one (big) macro that remaps my layout from Swedish to Svorak. It works perfectly! It also makes it easy to customizatie my layout (e.g. swap CapsLock with the Left Shift key). AutoHotkey also allows to generate an executable file that’s easy to put on a USB stick and bring to other computers. Just start it and it remaps the keys. Close (or pause) it and you’ll get the Swedish layout back.

The Svorak A1 layout extended for the Kinesis Contoured

The Svorak A1 layout extended for the Kinesis Contoured


Since I’m using the Kinesis Contoured keyborad I wanted a layout optimized for that. My modifications to the Svorak A1 layout are:

  • Swap CapsLock and Left Shift. It made Shift much easier to reach.
  • Duplicate all AltGr key compinations from the right hand to the left. I did this to be able to write for example curly brackets with two hands instead of stretching one. (There is one layout called Svorak A5 that also have the AltGr combinations on the left side similar to mine so check that out as well)
  • I’ll probably remapp the Insert key to some better location than the standard (for the Contoured keyboard); Keypad + < combination.

I created different tray icons for Swedish and Svorak but I couldn’t get AutoHotkey to change between them. Hopefully I’ll be able to fix that later.

Download my Svorak A1 (extended for the Kinesis Contoured) AutoHotkey script file (you’ll need to install AutoHotkey as well). Download icon and layout files dvorak-icons

Svorak with PortableKeyboardLayout

Another flexible way of remapping the keyboard layout is to use the tool PortableKeyboardLayout. It currently supports several different layouts but not Svorak so you’ll need to install both the program and then add the layout by copying it to the layouts folder. You’ll also need to change the layouts definition in pkl.ini to: layout = dvorak-svorak-a1:Svorak A1 (Extended). Several different configuration possibilities are available, unfortunately I couldn’t find any documentation (the project is really new so that’s probably change soon!).

I ran this for a while and it worked fine! I had some issues with some GTK applications (i.e. Inkscape) but try it out. It’s really nice!

Download my Svorak A1 (Extended for Kinesis Contoured) PortableKeyboardLayout (you’ll need to install PortableKeyboardLayout). This file also contains the layout (SvorakA1Extended.klc) for the Microsoft Keyboard Layout Creator. This file was used to generate the PortableKeyboardLayout file but it can also be used as a native keyboard driver. See Microsoft KeyboardLayout Creator help for more information about that.

PortableKeyboardLayout has the possibility to display an image of the layout you are using. Unfortunately couldn’t I manage to generate the image in the correct format so there aren’t any such image for the Svorak A1 layout.

Move Your Operating System to a New Hard Disk

Posted in Uncategorized on June 24th, 2008 by Ola Lindberg – Be the first to comment

Some years ago I wrote about how to create a Windows Rescue CD. Today I was stuck with a similar problem. I wanted to merge all data from one disk to another without needing to re-install my computer.

My first thought was to create a new rescue CD that I could restore to my new drive. But that didn’t seem like the easiest solution so I looked up a tool called Clonezilla. I started out by setting up similar partitions using GParted and boy am I glad I did? It turned out that you can use GParted to copy one partition to another. It took some minutes, I rebooted and it didn’t work.

I was a bit clueless until I remembered that you need to write a Master Boot Record (MBR) to the disk before it’s possible to boot from it. I booted up from an old DOS cd and wrote fdisk /mbr. Rebooted and still no luck so I fired up GParted again and saw that I had forgotten to set the bootable flag on the drive. I rebooted and everything went fine.

When knowing about MBR and the boot flag it’s a no brainer and I can’t recomend it enough! At least if you aren’t on a mac where Carbon Copy Cloner is available!

Kinesis Advantage - Customization for International Layouts

Posted in personal on January 22nd, 2008 by Ola Lindberg – 4 Comments

I have been using a Kinesis Advantage keyboard for half a year now and I think it’s a great keyboard. My hands feels more relaxed now than before and my RSI symptoms have decreased dramatically.

Since I mostly use a Swedish variant of Dvorak (Svorak-A1) I had some problems finding the built in shortcuts for selecting different settings on the layout (the shortcuts mentioned in the manual doesn’t work the same way on a Swedish layout as on a En/Us layout).

On a Swedish version of the Advantage, use the following shortcuts instead

Turn on and off audible tones (sounds for Caps Lock / Num Lock)

  • Program + (?+\)

Turn on and off key clicks

  • Program + (*’)

Instant Configuration

  • (´`) + (w) for “Windows mode”
  • (´`) + (p) for “non Windows mode” (use this for international Windows layout and in Linux)
  • (´`) + (m) for “Macintosh mode”

Reset (there are several different resets, see the manual for more info) the keyboard:

  • Program + Shift + F10

Kinesis On-Board Dvorak Layout (on a Swedish computer)

  • Program + Shift + F5

Kinesis On-Board Dvorak Layout (on a Swedish computer)If you are using a Swedish layout and switch to the on-board Dvorak layout your layout will look a bit different than the layout presented in the manual. The attached image shows how my layout works or download the SVG of the layout.

Tomato Router - Quality Of Service (QoS)

Posted in Uncategorized on October 18th, 2007 by Ola Lindberg – 1 Comment

In my previous post I requested you to help and seed the new Ubuntu Gutsy release. After having my torrent client seeding for some hours I realized that my DSL connection (8Mbit/1Mbit) wasn’t as keen as I was on the high network load it created. It made my computer almost unusable.

Luckily my router running the Tomato firmware had great support for Quality Of Service. I set it up according to the screen shots below and the network problems went away. It might be worth looking into!

Tomato: QoS - Basic Setup
Tomato: QoS - Basic Settings

Tomato: QoS - Classification
Tomato: QoS - Classifications

Tomato: QoS - Graphs
Tomato: QoS - Graphs

I’m not sure if I managed to set it up properly so all comments are appreciated!

Ubuntu Gutsy - Dual Screen Resolution Almost Works!

Posted in Uncategorized on September 20th, 2007 by Ola Lindberg – 4 Comments

Ubuntu Gutsy - Resolution on external monitor is kind of ok!I run a 14″ build in monitor on my laptop (1024×768) and a 17″ external monitor (1280×1024). I would like to use only the external monitor when I’m at home and the laptop monitor when I’m not. Getting this to play nice has always been a problem in any Linux distribution I have ever tried.

But today I did a dist-upgrade on my Ubuntu Gutsy laptop and for the first time the resolution on my external monitor just popped up in the correct resolution. This is fabulous! I just booted it up and off it went; with the correct resolution. Even the quick buttons (fn-f7) did toggle the monitors on and off as supposed.

Well we are getting there! Believe me! Good work on all you Ubuntu/Xorg/Xserv/Open Source developers!

Update: When I booted my computer today it didn’t really recognize the resolution correct but instead tried to auto configure it. Surprise! It didn’t really work but to my great enjoyment it put up the failsafe X where I could adjust the screen resolution and I was fine to go again. Not perfect but a lot better than before so I’m still happy!