Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the ergodox-ez/algernon keymap #409

Merged
merged 1 commit into from
Jun 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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