Quick Facts
- Author
- Michael Dickens (MTGAP)
- Year
- 2012
- Finger Map
- Traditional
Quick Facts
Quick Facts
Quick Facts
MTGAP refers to a series of keyboard layouts generated by Michael Dickens, who also goes by MTGAP, using a keyboard layout optimizer that implements simulated annealing.
Michael Dickens’ blog contains numerous samples of layouts generated between 2008 and 2012, and some but not all of them carry the name MTGAP. Nowadays, MTGAP mainly refers to the 30-key version from this 2012 blog post—despite this particular variant not being called MTGAP (or any name at all, for that matter) by Michael Dickens himself.
MTGAP is notable for being substantially better than all keyboard layouts before it (with the arguable exception of Maltron, which has the advantage of E on thumb). The metrics used in its design share more in common with much later layout optimization projects than with the other projects of its time. This includes a stunning repudiation of the common belief at the time that putting the most common letters on the home row and minimizing finger travel distance are the primary goals of a good keyboard layout.
There are two downloads available for Windows:
Method | Admin Required | Notes |
---|---|---|
Native | Yes | Official Microsoft method for adding custom keyboard layouts. |
AutoHotkey | No | Requires 3rd party remapping software. Does not take effect until AutoHotkey is launched. |
Install Microsoft Keyboard Layout Creator (MSKLC):
Download the KLC file for the desired version of MTGAP:
Open the downloaded .klc
file in Microsoft Keyboard Layout Creator.
In MSKLC, go to Project → Build DLL and Setup Package.
Navigate to the generated folder and run setup.exe
as Administrator.
Follow the installer instructions to complete the installation.
Go to Windows Settings → Time & Language → Language & Region → Language Options → Add a keyboard and select your new MTGAP layout.
Install AutoHotkey:
Download the AutoHotkey script file for the desired version of MTGAP:
Save the downloaded .ahk
file to a convenient location on your computer.
Double-click the .ahk
file to run the script. You should see the AutoHotkey icon appear in your system tray.
Make sure you know how to type your computer password using MTGAP.
Your keyboard is now remapped to MTGAP! The script will continue running until you close it or restart your computer.
To run automatically on startup: Copy the .ahk
file to your Windows Startup folder:
C:\Users\[YourUsername]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
You can quickly access this folder by pressing Win + R, typing shell:startup
, and pressing Enter.
There are two downloads available for macOS:
Method | Admin Required | Notes |
---|---|---|
Native | Optional | Does not require 3rd party key remapping software. Admin is required to install for all users and use on first login. |
Karabiner-Elements | Yes | Requires 3rd party key remapping software, including the installation of a Driver Extension. Allows for remapping of only specific keyboards. |
Download the keylayout file for the desired version of MTGAP:
Extract the downloaded zip file.
Install the .keylayout
file:
Run one of the install scripts from the extracted folder:
To install for a single user: Copy the .keylayout
file from the extracted folder to ~/Library/Keyboard Layouts
. Create the folder if it doesn’t exist.
To install for all users: Copy the .keylayout
file from the extracted folder to /Library/Keyboard Layouts
.
Restart macOS.
Open System Settings.
Go to Keyboard → Text Input → Input Sources → Edit… and add your new MTGAP layout.
Press the “+” button at the bottom left.
Search for “MTGAP,” select your new layout, and press Add.
Install Karabiner-Elements:
Download the Karabiner rule file for the desired version of MTGAP:
In Karabiner-Elements Settings, go to “Complex Modifications,” then press “Add predefined rule” at the top.
Make sure you know how to type your computer password using MTGAP.
Scroll down to the “MTGAP” section and enable the rule you want.
“All keyboards” remaps MTGAP onto all keyboards while connected to this computer. Select this reason unless you want to exclude some keyboards from remapping.
“Built-in keyboard only” remaps your device's built-in keyboard, as well as any other keyboard for which “Treat as built-in keyboard” (under the “Devices” section) is enabled. Select this option if you plan to map MTGAP onto an external keyboard using custom firmware.
To use MTGAP on the password entry screen before logging in, follow the official instructions:
Download the XKB file for the desired version of MTGAP:
Extract the downloaded tar.gz file.
Run the install script from the extracted folder:
sudo ./install-system.sh
This copies the layout files to /usr/share/X11/xkb
and registers the layout with the system.
Add the layout to your desktop environment. Refer to your desktop environment's documentation for specific instructions.