7b8857a368
https://support.apple.com/en-us/HT201236 says that ⌃⌘⏏ will quit all apps and then restart your Mac; ⌃⌘-power will shut things down in an…ungraceful fashion. I reboot into Windows fairly frequently; I'd rather have the nice behavior at my fingertips, not the rude one. |
||
---|---|---|
.. | ||
keymaps | ||
190hotfix.sh | ||
Makefile | ||
config.h | ||
ergodox_ez.c | ||
ergodox_ez.h | ||
i2cmaster.h | ||
makeallhex.sh | ||
matrix.c | ||
readme.md | ||
twimaster.c |
readme.md
Getting started
There are two main ways you could customize the ErgoDox EZ.
The Easy Way: Use an existing firmware file and just flash it
- Download and install the Teensy Loader. Some Linux distributions already provide a binary (may be called
teensy-loader-cli
), so you may prefer to use this. - Find a firmware file you like. You can find a few if these in the keymaps subdirectory right here. The file you need ends with .hex, and you can look at its .c counterpart (or its PNG image) to see what you'll be getting. You can also use the Massdrop configurator to create a firmware Hex file you like.
- Download the firmware file
- Connect the keyboard, press its Reset button (gently insert a paperclip into the hole in the top-right corner) and flash it using the Teensy loader you installed on step 1 and the firmware you downloaded.
More technical: create your own totally custom firmware by editing the source files.
This requires a little bit of familiarity with coding.
- Go to https://github.com/jackhumbert/qmk_firmware and read the Readme at the base of this repository, top to bottom. Then come back here :)
- Clone the repository (download it)
- Set up a build environment as per the build guide
- Using a Mac and have homebrew? just run
brew tap osx-cross/avr && brew install avr-libc
- Using a Mac and have homebrew? just run
- Copy
keyboard/ergodox_ez/keymaps/default/keymap.c
intokeymaps/your_name/keymap.c
(for example,keymaps/german/keymap.c
) - Edit this file, changing keycodes to your liking (see "Finding the keycodes you need" below). Try to edit the comments as well, so the "text graphics" represent your layout correctly. See below for more tips on sharing your work.
- Compile your firmware by running
make clean
followed bymake KEYMAP=your_name
. For example,make KEYMAP=german
. This will result in a hex file, which will always be calledergodox_ez.hex
, regardless of your keymap name. - Flash this hex file using the Teensy loader as described in step 4 in the "Easy Way" above. If you prefer you can automatically flash the hex file after successfull build by running
make teensy KEYMAP=your_name
. - Submit your work as a pull request to this repository, so others can also use it. :) See below on specifics.
Good luck! :)
Contributing your keymap
The ErgoDox EZ firmware is open-source, so it would be wonderful to have your contribution! Within a very short time after launching we already amassed almost 20 user-contributed keymaps, with all sorts of creative improvements and tweaks. This is very valuable for people who aren't comfortable coding, but do want to customize their ErgoDox EZ. To make it easy for these people to use your layout, I recommend submitting your PR in the following format.
- All work goes inside your keymap subdirectory (
keymaps/german
in this example). keymap.c
- this is your actual keymap file; please update the ASCII comments in the file so they correspond with what you did.german.hex
- a compiled version of your keymap. Commit it to the repo withgit add -f
as hex files are ignored by default. This allows people to just download your hex file and flash it without having to set up a build toolchain to make it.readme.md
- a Readme file, which GitHub would display by default when people go to your directory. Explain what's different about your keymap, what you tweaked or how it works. No specific format to follow, just communicate what you did. :)- Any graphics you wish to add. This is absolutely not a must. If you feel like it, you can use Keyboard Layout Editor to make something and grab a screenshot, but it's really not a must. If you do have graphics, your Readme can just embed the graphic as a link, just like I did with the default layout.
Finding the keycodes you need
Let's say you want a certain key in your layout to send a colon; to figure out what keycode to use to make it do that, you're going to need quantum/keymap_common.h
.
That file contains a big list of all of the special, fancy keys (like, being able to send % on its own and whatnot).
If you want to send a plain vanilla key, you can look up its code under doc/keycode.txt
. That's where all the boring keys hang out.