|
|
преди 9 години | |
|---|---|---|
| .. | ||
| images | преди 9 години | |
| tools | преди 9 години | |
| COPYING | преди 9 години | |
| Makefile | преди 9 години | |
| config.h | преди 9 години | |
| keymap.c | преди 9 години | |
| readme.md | преди 9 години | |
This is an unconventional layout for the ErgoDox EZ. For more details about the history of the layout, see my blog posts about my ErgoDox journey.
Some of the things in the layout only work when one uses Spacemacs and GNOME under Linux. Your mileage may vary.
At its core, this is a Dvorak layout, with some minor changes. The more interesting parts are how certain keys behave:
Shift, Alt, and Control modifiers are one-shot. When tapped, they are considered active for the next key press only. When double tapped, they toggle on, until a third, single tap sometime later. When held, they act as expected. My usual pattern is that I use these for the next keypress only, so this behaviour is perfect. If I need them held, I'll just double-tap.GUI key is special, because when I double-tap it, it sends GUI + w, which pops up an application selector. It also switches to a one-shot layer, where the number row on the left half turns into app selector macros, for the most common things I usually want to switch to. Otherwise it behaves as on a normal layout.ESC key also doubles as a one-shot cancel key: if tapped while any of the one-shot modifiers are in-flight (as in, single-tapped, and not expired yet), it cancels all one-shot modifiers. It also cancels the Hun layer, if active. Otherwise it sends the usual keycode.Tab/Arrow key, the arrow layer activates while the key is held. Tapping the key produces the normal, Tab key. Double-tapping it toggles the Arrow layer on until a third tap.: key once yields :, tapping it twice yields ;.[{(/)}] keys once yields [ (or { when shifted), tapping them twice yields (.LEAD l uses the unicode input method to enter a λ.LEAD s does a lot of magic to type in a shruggie: ¯\_(ツ)_/¯LEAD y types \o/.LEAD w m maximises the currently focused window.LEAD a makes the ADORE layer the default.LEAD v prints the firmware version, the keyboard and the keymap.LEAD d toggles logging keypress positions to the HID console.LEAD t toggles time travel. Figuring out the current date is left as an exercise to the reader.LEAD u enters the Unicode symbol input mode.
The symbols on the front in the image above have the same color as the key that activates them, with the exception of the Arrow layer, which is just black on the front.
My experimental layout, that I keep tweaking. No full description here, because things are very much in flux.
Note that the HUN layer does not work well with ADORE: it still has the same layout as on the Base layer. This will remain until ADORE becomes the default.
This is to be used with Plover, nothing really fancy here. The STENO key toggles the layer on and off, and sends the toggle command to Plover too.
The primary purpose of the LEDs is to show the modifier status, a secondary, to show which layer is active. Each modifier, Shift, Alt and Control each have their designated LEDs: the red, green and blue, respectively. When a modifier is in a one-shot state, the respective LED will turn on with a dimmer light. If the modifier is toggled on, the brightness of the LED turns full.
For the layers, the following rules apply:
Unless noted otherwise, the layers use a dim light for the LEDs, while modifiers use a stronger one, and modifiers override any layer preferences. For example, when on the one-handed layer, with the left side active (red light blinking), if Shift is on, the red light will be constantly on.
Once in the Unicode Symbol Input mode, one is able to type in symbol names, press Enter or Space, and get the Unicode symbol itself back. When in the mode, a capital U is printed first. Once the sequence is finished, all of it is erased by sending enough Backspace taps, and the firmware starts the OS-specific unicode input sequence. Then, it looks up the symbol name, and enters the associated code. If it is not found, it will just replay the pressed keycodes.
The currently supported symbols are:
snowman: ☃kiss: 😙rofl: 🤣poop: 💩This is an experimental feature, and may or may not work reliably.
When the keypress logging functionality is enabled (by LEAD d), the keyboard will output a line every time a key is pressed, containing the position of the key in the matrix. This allows one to collect this information, and build analytics over it, such as a heat map, including dead keys too.
Included with the firmware is a small tool that can parse these logs, and create a heatmap that one can import into KLE. To use it, either pipe the output of hid_listen into it, or pipe it an already saved log, and it will save the results into files in an output directory (given on the command-line). See the output of tools/log-to-heatmap.py --help for more information.
The generated heatmap looks somewhat like this:
There is a very small tool in tools/layer-notify, that listens to the HID console, looking for layer change events, and pops up a notification for every detected change. It is a very simple tool, mainly serving as an example.
To make my workflow easier, this layout is maintained in its own repository. To build it, you will need the QMK firmware checked out, and this repo either checked out to something like keyboards/ergodox_ez/algernon-master. One way to achieve that is this:
$ git clone https://github.com/jackhumbert/qmk_firmware.git
$ cd qmk_firmware
$ git clone https://github.com/algernon/ergodox-layout.git \
keyboards/ergodox/keymaps/algernon-master
$ make keyboard=ergodox keymap=algernon-master
From time to time, updates may be submitted back to the QMK repository. If you are reading it there, you can build the firmware like any other firmware included with it (assuming you are in the root directory of the firmware):
$ make keyboard=ergodox keymap=algernon
The keymap default to forcing NKRO, which seems to upset Windows, and except the modifiers, none of them work. If you experience this problem, recompile the firmware with FORCE_NKRO=no added to the make command line.
2016-09-18
:/; and -/_ keys were put back to their thumb position on the bottom row, on both the Base and ADORE layers.display-panes key. The left also doubles as a GNU screen prefix key, and sends C-a when double tapped.hid-commands tool to be running, with the output of hid_listen being piped to it.Y and X have been swapped again.Print screen has been removed.tools/layer-notify that listens to layer change events on the HID console, and pops up a notification on layer changes.tools/text-to-log.py has been added that converts arbitrary text to a keylogger output, which can be fed to the heatmap generator.tools/hid-commands utility. These generally are OS dependent, and are easier to implement on the software side.2016-08-24
[ or { (if it was shifted), double tapping leads to (.:; and -_ keys are now available on the base layer, on their ADORE location, too, just below [{(/]}).Apps key has been replaced by F12.-/_ is no longer a tap-dance key.LEAD u now starts the symbolic unicode input system, instead of the OS-one.ADORE_AUTOLOG option has been removed, instead there is AUTOLOG_ENABLE now, which when enabled, makes the keylogger start when the keyboard boots. It defaults to off.2016-08-12
Delete key is now available on the right thumb cluster.ADORE_AUTOLOG makefile variable to yes when compiling the keymap. It is off by default.~ key and the Media Next/Prev key have been swapped on the base layer.Backspace has been replaced by Enter.2016-07-29
KEYLOGGER_ENABLE=no on the make command line to disable it.TAB/ARRW key was turned into a tap-dance key, allowing one to toggle the ARROW layer on by double-tapping, and as such, avoid the need to hold the key.-/_ key was turned into a tap-dance key too.LEAD t.2016-07-06
LEAD d. Also included is a tool to generate a heatmap out of the logs.LEAD a now.2016-06-22
:; key has changed behaviour: to access the ; symbol, the key needs to be double-tapped, instead of shifted.= and \ keys were swapped, = moved to the home row, on both the base and the experimental layers.LEAD v types the firmware version, and the keymap version.L and Q, and the K and G keys were swapped.# and * keys, to make it easier on my fingers.2016-06-14
LEAD y types \o/.? moved to the left pinky, left of Q.= shifted one row down, but F11 stayed where it was.- on the left half was replaced by Tab.Tab's original position is taken by a Media Next/Media Prev key.: now inputs ; when shifted.ESC cancels the Hungarian layer too, not just modifiers.2016-05-26
Initial version.
The layout, being a derivative of the original TMK firmware which is under the GPL-2+, this layout is under the GPL as well, but GPL-3+, rather than the older version.