Skip to content

Commit

Permalink
Update the ergodox-ez/algernon keymap (qmk#409)
Browse files Browse the repository at this point in the history
Compared to the previous version, the following noteworthy changes have
been made to the keymap:

* The keyboard starts in NKRO mode, bootmagic and other things are
  disabled.
* A STENO layer was added, to be used with Plover.
* An experimental layout was added, something halfway between Dvorak and
  Capewell-Dvorak. A work in progress.
* `LEAD y` types \o/.
* Some keys on the BASE layer have been moved around:
  - `?` 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 **HUN** layer too, not just modifiers.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
  • Loading branch information
algernon authored and jackhumbert committed Jun 14, 2016
1 parent 4f2f3f4 commit 39d0216
Show file tree
Hide file tree
Showing 11 changed files with 373 additions and 1,353 deletions.
1 change: 1 addition & 0 deletions keyboard/ergodox_ez/keymaps/algernon/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/compiled.hex
4 changes: 4 additions & 0 deletions keyboard/ergodox_ez/keymaps/algernon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ BOOTMAGIC_ENABLE=no
COMMAND_ENABLE=no
SLEEP_LED_ENABLE=no
UNICODE_ENABLE=no

ifndef QUANTUM_DIR
include ../../../../Makefile
endif
1,257 changes: 0 additions & 1,257 deletions keyboard/ergodox_ez/keymaps/algernon/compiled.hex

This file was deleted.

6 changes: 4 additions & 2 deletions keyboard/ergodox_ez/keymaps/algernon/config.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef CONFIG_USER_H
#define CONFIG_USER_H 1
#ifndef CONFIG_ALGERNON_H
#define CONFIG_ALGERNON_H

#include "../../config.h"

Expand All @@ -24,4 +24,6 @@
#undef LEADER_TIMEOUT
#define LEADER_TIMEOUT 1000

#define FORCE_NKRO

#endif
Binary file modified keyboard/ergodox_ez/keymaps/algernon/images/base-layer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified keyboard/ergodox_ez/keymaps/algernon/images/hun-layer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
426 changes: 333 additions & 93 deletions keyboard/ergodox_ez/keymaps/algernon/keymap.c

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,19 @@ right). The more interesting parts are how certain keys behave:
* 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. Otherwise it sends the usual keycode.
* The **Emacs** and **Hun** layer keys are one-shot, the **1Hand** is a toggle.
* The **Emacs** and **Hun** layer keys are one-shot, the **1Hand** and **STENO**
keys are toggles.
* The **Lead** key allows me to type in a sequence of keys, and trigger some
actions:
- `LEAD u` enters unicode input mode, by sending the GTK+ key sequence that
does this.
- `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 e` makes the [experimental layer](#experimental-layer) the default.
- `LEAD v` prints the firmware version, the keyboard and the keymap, if
compiled with a QMK version that has these available.

## Hungarian layer

Expand Down Expand Up @@ -100,6 +105,26 @@ The differences are as follows:
* The `Apps`/`BASE` key can be used to go back to the base layer, by
long-tapping it. A short-tap will send the `App` key, as usual.

## Steno layer

[![Steno layer for Plover](images/steno-layer.png)](http://www.keyboard-layout-editor.com/#/gists/401ef9a84369e47c57f9aedcf0a0d667)

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.

## Experimental layer

[![Experimental layer](images/experimental-layer.png)](http://www.keyboard-layout-editor.com/#/gists/6ff50bf71248e05aab5b3fec4fae3d08)

While using the standard Dvorak layout, I encountered a number of
inconveniences, and on this layer, I am playing with ideas to make the layout
feel better. Initially, it was based on [Capewell-Dvorak][cpd], but that too,
had shortcomings I was not happy with. So now this is something inbetween, with
own observations thrown in. How it works out in the long run remains to be seen.

[cpd]: http://www.michaelcapewell.com/projects/keyboard/layout_capewell-dvorak.htm

# Building

To make my workflow easier, this layout is maintained in
Expand Down
5 changes: 5 additions & 0 deletions keyboard/ergodox_ez/keymaps/algernon/tools/max-focused
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#! /bin/sh
WIN="$(xdotool getactivewindow)"
wmctrl -i -r ${WIN} -b remove,maximized_vert,maximized_horz
xdotool windowsize ${WIN} 100% 100%
wmctrl -i -r ${WIN} -b add,maximized_vert,maximized_horz

0 comments on commit 39d0216

Please sign in to comment.