|
| 1 | +# Installing Windows layout |
| 2 | + |
| 3 | +## Specifics for Windows |
| 4 | + |
| 5 | +At the moment only PT+ exists, as I have no need for PT-Dev on windows for now. |
| 6 | + |
| 7 | +You need to **install** and **add the layout as input srouce**. |
| 8 | +Optionally, if you like key placements and shortcuts Mac style (ex: CMD+C for copy) there are also instuctions for it. |
| 9 | + |
| 10 | +## Install the layouts |
| 11 | + |
| 12 | +1. Download the installer for windows from the latest release on GitHub |
| 13 | + |
| 14 | +1. Unzip and run the setup.exe |
| 15 | + |
| 16 | +## [Alternative] Install the layouts (with MSKLC) |
| 17 | + |
| 18 | +On Windows you can generate an installer from a `.klc` keyboard layout file. |
| 19 | + |
| 20 | +1. Install Microsoft Keyboard Layout Creator (MSKLC) - https://www.microsoft.com/en-us/download/details.aspx?id=102134 |
| 21 | + |
| 22 | +1. Open MSKLC > Load Source File > Select the `.klc` file. You should see the layout open on MSKLC |
| 23 | + |
| 24 | +1. Project > Build DLL and Setup Package > "Yes" to open the directory where the installer was created |
| 25 | + |
| 26 | +1. Run the setup.exe |
| 27 | + |
| 28 | + > If by any reason, it fails due to repeated name or some other detail, edit them Project > Properties and repeat |
| 29 | + the previous step to make a new setup package |
| 30 | + |
| 31 | +## Add layout as input source |
| 32 | + |
| 33 | +1. Go to Language Settings (Settings > Time & Language > Language) |
| 34 | + |
| 35 | +1. Expand your current language > Options |
| 36 | + |
| 37 | +1. Add a keyboard > Scroll until you find it (sorted alphabetically) |
| 38 | + |
| 39 | +1. You can either remove the previous keyboard, or leave it there. |
| 40 | +Choose what you want to use on the Language Bar on the bottom right corner |
| 41 | + |
| 42 | +## [Optional] Add MacOS like shortcuts |
| 43 | + |
| 44 | +You may want to check https://medium.com/@chrisdhanaraj/mapping-your-macos-keybinds-to-windows-b6009c50065b where the author |
| 45 | +goes on a good explanation on how to remap Ctrl and Alt, and how to have the shortcuts. I made it a bit different, |
| 46 | +focused more on swapping Alt with Win key, and then adding the shortcuts, pick your poison. |
| 47 | + |
| 48 | +Also, with my approach, if you have a keyboard with Mac mode, you don't need to do the |
| 49 | +[Swap Alt and Windows key location](#optional-swap-alt-and-windows-key-location) |
| 50 | + |
| 51 | +1. Install AutoHotkey - https://www.autohotkey.com |
| 52 | + |
| 53 | +1. Add a shortcut for the mac-win-shortcuts.ahk on your [startup](https://www.autohotkey.com/docs/FAQ.htm#Startup). |
| 54 | +> Press Win+R to open the Run dialog, then enter shell:startup to open the startup folder. |
| 55 | +
|
| 56 | +## [Optional] Swap Alt and Windows key location |
| 57 | + |
| 58 | +1. Install [Sharpkeys](https://github.com/randyrants/sharpkeys/releases) |
| 59 | + |
| 60 | +1. "Load keys" and select the provided `alt-win-swap.skl` OR click "Add" to add the new 4 mappings: |
| 61 | + |
| 62 | + 1. Special: Left Alt -> Special: Left Windows |
| 63 | + |
| 64 | + 1. Special: Left Windows -> Special: Left Alt |
| 65 | + |
| 66 | + 1. Special: Right Alt -> Special: Right Windows |
| 67 | + |
| 68 | + 1. Special: Right Windows -> Special: Right Alt |
| 69 | + |
| 70 | +2. Once you see the 4 mappings on the SharpKeys, press "Write to Registry" and reboot |
| 71 | + |
| 72 | +And with that, you should be done! |
| 73 | + |
| 74 | +## Undo Alt and Windows swap |
| 75 | + |
| 76 | +Follow the instructions of the previous section, but now "Delete All", and then "Write to Registry". |
| 77 | + |
| 78 | +## Delete Installed layouts |
| 79 | + |
| 80 | +1. Remove the keyboard from the input souce, the same way you added it at [Add layout as input source](#add-layout-as-input-source), |
| 81 | +but now click "Remove" on it |
| 82 | + |
| 83 | +1. Remove it from registry (regedit.exe) |
| 84 | + |
| 85 | + 1. Delete it from inside `Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts` (should be at the bottom) |
| 86 | + |
| 87 | +1. Remove the dlls with the matching name of that layout |
| 88 | + |
| 89 | + 1. `C:\Windows\System32` |
| 90 | + |
| 91 | + 1. `C:\Windows\SysWOW64` |
| 92 | + |
| 93 | + 1. Reboot for good measure, or if it fails to delete the .dll files |
0 commit comments