4. Customizing Keyboard Layout for Linux with QMK
(10 min read) This section uses QMK CLI, a CLI tool compatible with Linux, Mac and Windows.
4.1 ✨Instructions
Text in block quotes refers to the terminal output.
For reference, see the QMK documentation.
4.2 ⚡QMK CLI - Installing the CLI Tool
4.3 ⚡QMK CLI - Test Run the CLI Tool
You can test that QMK CLI is working properly by compiling one of the default keymaps that came with the installation. For instance, we can test clueboard/66/rev3 as below.
You should see a message similar to below.
Linking: .build/clueboard_66_rev3_default.elf [OK]
Creating load file for flashing: .build/clueboard_66_rev3_default.hex [OK]
Copying clueboard_66_rev3_default.hex to qmk_firmware folder > [OK]
Checking file size of clueboard_66_rev3_default.hex [OK]
* The firmware size is fine - 26356/28672 (2316 bytes free)
4.4 ⚡QMK CLI - Creating a Custom Keymap
You'll then be prompted to give a name to the keymap. Here I give it the name taiko
.
Edit the keymap.c file with your preferred editor. Here I use nano.
While editing your keymap.c, you may wish to look at the following:
Save your keymap.c after you are finished editing.
4.6 🖥️Keyboard - Flashing the Firmware
Before you flash the firmware:
Then flash the firmware:
You should see:
Detecting USB port, reset your controller now...
When you see "Detecting USB port, reset your controller now..." in the terminal, click reset button on the keyboard, as indicated by the green arrow in Figure 4.1. No need to rush, QMK will wait for you.
If it flashes correctly, you should see this message:
avrdude: 18874 bytes of flash verified
avrdude: safemode: Fuses OK (E:CB, H:D8, L:FF)
avrdude done. Thank you.
4.7 🖥️Keyboard - Repeat Section 4.6 For the Other Piece of the Keyboard
4.8 🥳Good Work! You Did It!🎉
Make sure the keyboard is not connected to the computer before reconnecting the audio cord to each piece of the keyboard.
Connect the USB cord from your computer to the left keyboard.
Good work, you did it 🎉!
Last updated