]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/ergodox/keymaps/algernon/readme.md
Merge branch 'master' into coderkun_neo2
[qmk_firmware.git] / keyboards / ergodox / keymaps / algernon / readme.md
1 <!-- -*- mode: markdown; fill-column: 8192 -*- -->
2
3 algernon's layout
4 =======================
5
6 This is an unconventional layout for the [ErgoDox EZ][ez]. For more details about the history of the layout, see my [blog posts about my ErgoDox journey][blog-ergodox].
7
8  [ez]: https://ergodox-ez.com/
9  [blog-ergodox]: https://asylum.madhouse-project.org/blog/tags/ergodox/
10
11 Some of the things in the layout only work when one uses [Spacemacs][spacemacs] and [GNOME][gnome] under Linux. Your mileage may vary.
12
13  [spacemacs]: http://spacemacs.org/
14  [gnome]: https://www.gnome.org/
15
16 ## Table of Contents
17
18 * [Layouts](#layouts)
19     - [Base layer](#base-layer)
20     - [ADORE layer](#adore-layer)
21     - [Steno layer](#steno-layer)
22     - [LED states](#led-states)
23 * [Tools](#tools)
24     - [Heatmap](#heatmap)
25     - [Layer notification](#layer-notification)
26 * [Special features](#special-features)
27     - [Unicode Symbol Input](#unicode-symbol-input)
28 * [Building](#building)
29     - [Using on Windows](#using-on-windows)
30 * [Changelog](#changelog)
31 * [License](#license)
32
33 # Layouts
34
35 ## Base layer
36
37 [![Base layer](images/base-layer.png)](http://www.keyboard-layout-editor.com/#/gists/28f7eb305fdbff943613e1dc7aa9e82b)
38
39 At its core, this is a Dvorak layout, with some minor changes. The more interesting parts are how certain keys behave:
40
41 * The number row is the same as in the [ADORE](#adore-layer) layer. The function keys are on the **Media** layer.
42 * The `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.
43 * The `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.
44 * The `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.
45 * The **Media** and **Hun** layer keys are one-shot, the **STENO** key is a toggle.
46 * When holding the `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.
47 * Tapping the `:` key once yields `:`, tapping it twice yields `;`.
48 * Tapping the `[{(`/`)}]` keys once yields `[` (or `{` when shifted), tapping them twice yields `(`.
49 * The **Lead** key allows me to type in a sequence of keys, and trigger some actions:
50     - `LEAD l` uses the unicode input method to enter a `λ`.
51     - `LEAD s` does a lot of magic to type in a shruggie: `¯\_(ツ)_/¯`
52     - `LEAD y` types `\o/`.
53     - `LEAD w m` maximises the currently focused window.
54     - `LEAD a` makes the [ADORE layer](#adore-layer) the default.
55     - `LEAD v` prints the firmware version, the keyboard and the keymap.
56     - `LEAD d` toggles logging keypress positions to the HID console.
57     - `LEAD t` toggles time travel. Figuring out the current `date` is left as an exercise to the reader.
58     - `LEAD u` enters the [Unicode symbol input](#unicode-symbol-input) mode.
59     
60 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.
61
62 ## ADORE layer
63
64 [![ADORE layer](images/adore-layer.png)](http://www.keyboard-layout-editor.com/#/gists/45681a17453d235925b6028dd83bf12a)
65
66 My experimental layout, that I keep tweaking. No full description here, because things are very much in flux.
67
68 Note that the **HUN** layer does not work well with ADORE: it still has the same layout as on the [Base](#base-layer) layer. This will remain until ADORE becomes the default.
69
70 ## Steno layer
71
72 [![Steno layer for Plover](images/steno-layer.png)](http://www.keyboard-layout-editor.com/#/gists/401ef9a84369e47c57f9aedcf0a0d667)
73
74 This is to be used with [Plover](http://www.openstenoproject.org/plover/), nothing really fancy here. The **STENO** key toggles the layer on and off, and sends the toggle command to Plover too.
75
76 ## LED states
77
78 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.
79
80 For the layers, the following rules apply:
81
82 * When the [ADORE layer](#adore-layer) is toggled on, LEDs will light up from left to right in a sequence, then turn off. When the layer is toggled off, the LEDs light up and turn off in the other direction. No LEDs are on while the layer is active.
83 * When the **Hungarian** layer is active, the *green* and *blue* LEDs are on.
84 * When the **Media** layer is active, the *red* and *green* ones are on.
85 * When the **ARROW** layer is active, the *red* and *blue* ones are on.
86 * For the [Steno layer](#steno-layer), all LEDs will be turned on.
87
88 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.
89
90 # Special features
91
92 ## Unicode Symbol Input
93
94 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.
95
96 The currently supported symbols are:
97
98 - `snowman`: ☃
99 - `kiss`: 😙
100 - `rofl`: 🤣
101 - `poop`: 💩
102
103 This is an experimental feature, and may or may not work reliably.
104
105 # Tools
106
107 ## Heatmap
108
109 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.
110
111 Included with the firmware is a small tool that can parse these logs, and create a heatmap that one can import into [KLE][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.
112
113  [kle]: http://www.keyboard-layout-editor.com/
114
115 The generated heatmap looks somewhat like this:
116
117  ![Heatmap](images/heatmap.png)
118
119 ## Layer notification
120
121 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.
122
123 # Building
124
125 To make my workflow easier, this layout is maintained in [its own repository][algernon:ez-layout]. To build it, you will need the [QMK][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:
126
127  [algernon:ez-layout]: https://github.com/algernon/ergodox-layout
128  [qmk]: https://github.com/jackhumbert/qmk_firmware
129
130 ```
131 $ git clone https://github.com/jackhumbert/qmk_firmware.git
132 $ cd qmk_firmware
133 $ git clone https://github.com/algernon/ergodox-layout.git \
134             keyboards/ergodox/keymaps/algernon-master
135 $ make keyboard=ergodox keymap=algernon-master
136 ```
137
138 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):
139
140 ```
141 $ make keyboard=ergodox keymap=algernon
142 ```
143
144 ## Using on Windows
145
146 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.
147
148 # Changelog
149
150 ## v1.7
151
152 *2016-09-18*
153
154 ### Overall changes
155
156 * The number row has been completely rearranged on both the [Base](#base-layer) and the [ADORE](#adore-layer) layers.
157 * The number/function key behavior was changed: function keys are now on the **Media**.
158 * The `:`/`;` and `-`/`_` keys were put back to their thumb position on the bottom row, on both the [Base](#base-layer) and [ADORE](#adore-layer) layers.
159 * The bottom large keys on the inner side of each half now function as [tmux](http://tmux.github.io/) keys: the left to send the prefix, the right to send the `display-panes` key. The left also doubles as a GNU screen prefix key, and sends `C-a` when double tapped.
160 * A number of functions, such as the **AppSel** layer, now require the `hid-commands` tool to be running, with the output of `hid_listen` being piped to it.
161
162 ### ADORE
163
164 * `Y` and `X` have been swapped again.
165
166 ### Media/Navigation layer
167
168 * The function keys are now on this layer.
169 * Mouse keys have been removed.
170 * Media start/stop/prev/next have been removed.
171 * `Print screen` has been removed.
172 * There is only one screen lock key now.
173
174 ### Heatmap
175
176 * Fixed a few issues in the finger-stats calculation.
177 * The tool now also timestamps and saves all input lines to a logfile, which it loads on start, allowing one to continue the collection after upgrading the tool.
178 * The heatmap tool will now colorize the stats by default.
179 * The periodic stats are now printed in a more compact format.
180
181 ### Tools
182
183 * Added a new tool, `tools/layer-notify` that listens to layer change events on the HID console, and pops up a notification on layer changes.
184 * Another new tool, `tools/text-to-log.py` has been added that converts arbitrary text to a keylogger output, which can be fed to the heatmap generator.
185 * A number of features have been moved to the `tools/hid-commands` utility. These generally are OS dependent, and are easier to implement on the software side.
186
187 ## v1.6
188
189 *2016-08-24*
190
191 ### Base layer changes
192
193 * The parentheses & bracket keys have been merged: tapping them results in `[` or `{` (if it was shifted), double tapping leads to `(`.
194 * The `:;` and `-_` keys are now available on the base layer, on their [ADORE](#adore-layer) location, too, just below `[{(`/`]})`.
195 * The `Apps` key has been replaced by `F12`.
196 * The `-`/`_` is no longer a tap-dance key.
197
198 ### ADORE layer changes
199
200 * Adjustments were made to the [ADORE](#adore-layer) layer, to separate some inconvenient combinations.
201
202 ### Miscellaneous changes
203
204 * `LEAD u` now starts the symbolic unicode input system, instead of the OS-one.
205 * The mouse acceleration keys on the **Navigation/Media** layer have been turned into toggles: tap them once to turn them on, until tapped again. Tapping an accelerator button will turn all the others off.
206 * When the **ARROW** layer is on, the *red* and *blue* LEDs light up now.
207
208 ### Heatmap
209
210 * The built-in keylogger has been greatly enhanced, it now outputs the pressed state, and the layer (Dvorak or ADORE). As such, the `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.
211 * The heatmap generator received a lot of updates.
212
213 ## v1.5
214
215 *2016-08-12*
216
217 * The **1HAND** layer has been removed.
218 * A `Delete` key is now available on the right thumb cluster.
219 * The [ADORE](#adore-layer) layer received a major update, see the layout image above.
220 * It is now possible to enable automatic logging for the [ADORE](#adore-layer) layer, by setting the `ADORE_AUTOLOG` makefile variable to `yes` when compiling the keymap. It is off by default.
221 * The `~` key and the `Media Next/Prev` key have been swapped on the [base layer](#base-layer).
222 * On the **ARROW** layer, `Backspace` has been replaced by `Enter`.
223 * There is some experimental support for entering Unicode symbols.
224
225 ## v1.4
226
227 *2016-07-29*
228
229 * When toggling the key logging on or off, the LEDs will do a little dance.
230 * The keylogger is now optional, but enabled by default. Use `KEYLOGGER_ENABLE=no` on the `make` command line to disable it.
231 * The `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.
232 * The `-`/`_` key was turned into a tap-dance key too.
233 * There is now a way to travel time with the keyboard, toggle the feature on by hitting `LEAD t`.
234
235 ## v1.3
236
237 *2016-07-06*
238
239 * Added support for logging keys, by pressing `LEAD d`. Also included is a tool to generate a [heatmap](#heatmap) out of the logs.
240 * The arrow and navigation keys were rearranged again, and now require an additional key being held to activate. See the [base layer](#base-layer) for an image that shows where arrows are.
241 * The **experimental** layer has been redone, and is now called [ADORE](#adore-layer), and as such, can be enabled by `LEAD a` now.
242 * Switching between Dvorak and ADORE is now persisted into EEPROM, and survives a reboot.
243
244 ## v1.2
245
246 *2016-06-22*
247
248 * The forced NKRO mode can be easily toggled off at compile-time, to make the firmware compatible with [certain operating systems](#using-on-windows).
249 * The `:;` key has changed behaviour: to access the `;` symbol, the key needs to be double-tapped, instead of shifted.
250 * The `=` and `\` keys were swapped, `=` moved to the home row, on both the [base](#base-layer) and the **experimental** layers.
251 * The arrow and navigation keys were redone, they are now more accessible, but the navigation keys require an extra tap to access.
252 * The **Emacs** layer is gone, replaced by a simplified **navigation and media** layer.
253 * `LEAD v` types the firmware version, and the keymap version.
254 * On the **experimental** layer, the `L` and `Q`, and the `K` and `G` keys were swapped.
255 * The [Steno](#steno-layer) layer gained a few more `#` and `*` keys, to make it easier on my fingers.
256
257 ## v1.1
258
259 *2016-06-14*
260
261 * The keyboard starts in NKRO mode, bootmagic and other things are disabled.
262 * A [Steno](#steno-layer) layer was added, to be used with Plover.
263 * An **experimental** layer was added, something halfway between Dvorak and Capewell-Dvorak. A work in progress.
264 * `LEAD y` types `\o/`.
265 * Some keys on the [Base](#base-layer) layer have been moved around:
266     - `?` moved to the left pinky, left of `Q`.
267     - `=` shifted one row down, but `F11` stayed where it was.
268     - `-` on the left half was replaced by `Tab`.
269     - `Tab`'s original position is taken by a `Media Next`/`Media Prev` key.
270     - `:` now inputs `;` when shifted.
271 * `ESC` cancels the **Hungarian** layer too, not just modifiers.
272
273 ## v1.0
274
275 *2016-05-26*
276
277 Initial version.
278
279 # License
280
281 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.