This repo contains my specifications for my own keyboard layout based on the Cole Mac-DH layout with some additional swedish and esperanto characters added to the Iso dead key.
The keyboard layout can be built with the program klfc. I recommend installing it with Nix. Once you have Nix installed just clone the repo and install it:
$ git clone https://github.com/39aldo39/klfc
$ cd klfc
$ nix-env -i -f .
Installing to Windows is a bit complicated since Windows is so bad. But if you really want, here's a step-by-step guide:
Inside the windows_build
directory, there is a pre-built setup executable for Windows.
When I ran Setup.exe
inside this directory, the keyboard layout was seemlessly installed and availlable.
Note though that it can't be ran inside a WSL filesystem, so you'll need to copy the entire folder to Window's normal file system first.
If this for some reason doesn't work for you, read on:
- Install Microsoft Keyboard Layout Creator (MSKLC). Because Microsoft don't want their users to be creative, you might need to install .net3.5 for the MSKLC installation to succeed.
- Run
./make_klc
from the root of this repo. - Open
build/klc/cp_encoded.klc
with MSKLC. - If you have already installed a version of this layout on your system you must goto
Project -> Properties
and change the name and description to something different in order to avoid a name conflict. - Click on
Project -> Build...
and don't care about the warnings, they just try to scare you. - Hopefully the build succeeded without any hard errors and you were able to open the directory with the setup files.
- Run
setup.exe
. - Open the Settings app, search on language and open "Language settings", select "English United States" (or what ever prefered language you have), click on more options and then click on "Language Options".
- Tab to the keyboards list, select the old keyboard layout and click "Keyboard options" after which you remove the old layout so only the new layout remains in the keyboard list. (Warning: Sometimes Microsoft tries to give you a last nightmare by naming the keyboard layout you've just created "Unavaillable keyboard layout". You should take it personally, but don't be afraid, you're close to victory.)
- Make sure the only keyboard layout listed is the keyboard layout you've just created.
- Now you should be able to press Alt+Shift a few times to select the new keyboard layout.
- If it doesn't work, either resign or drop Windows completely.
It might also stop working after a while.
In that case you should run the setup.exe
-file again and choose to repair the keyboard layout.