mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-28 03:26:51 +06:00
commit
811257a0c8
145
keyboards/ergodox/keymaps/algernon/NEWS.md
Normal file
145
keyboards/ergodox/keymaps/algernon/NEWS.md
Normal file
|
@ -0,0 +1,145 @@
|
||||||
|
## v1.8
|
||||||
|
|
||||||
|
*2016-10-03*
|
||||||
|
|
||||||
|
### ADORE
|
||||||
|
|
||||||
|
* Major rearrangements were made, to reduce pinky use, and to balance out the hand usage.
|
||||||
|
|
||||||
|
### Tools
|
||||||
|
|
||||||
|
* The `hid-commands` tool will now display a notification when the **AppSel** layer is triggered.
|
||||||
|
* The `log-to-heatmap.py` tool now treats the innermost keys on the bottom row as thumb keys, as far as statistics are concerned.
|
||||||
|
|
||||||
|
### Miscellaneous
|
||||||
|
|
||||||
|
* Fixed the [Steno](#steno-layer) toggle key.
|
||||||
|
|
||||||
|
## v1.7
|
||||||
|
|
||||||
|
*2016-09-18*
|
||||||
|
|
||||||
|
### Overall changes
|
||||||
|
|
||||||
|
* The number row has been completely rearranged on both the [Base](#base-layer) and the [ADORE](#adore-layer) layers.
|
||||||
|
* The number/function key behavior was changed: function keys are now on the **Media**.
|
||||||
|
* 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.
|
||||||
|
* 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.
|
||||||
|
* 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.
|
||||||
|
|
||||||
|
### ADORE
|
||||||
|
|
||||||
|
* `Y` and `X` have been swapped again.
|
||||||
|
|
||||||
|
### Media/Navigation layer
|
||||||
|
|
||||||
|
* The function keys are now on this layer.
|
||||||
|
* Mouse keys have been removed.
|
||||||
|
* Media start/stop/prev/next have been removed.
|
||||||
|
* `Print screen` has been removed.
|
||||||
|
* There is only one screen lock key now.
|
||||||
|
|
||||||
|
### Heatmap
|
||||||
|
|
||||||
|
* Fixed a few issues in the finger-stats calculation.
|
||||||
|
* 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.
|
||||||
|
* The heatmap tool will now colorize the stats by default.
|
||||||
|
* The periodic stats are now printed in a more compact format.
|
||||||
|
|
||||||
|
### Tools
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
* 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.
|
||||||
|
* 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.
|
||||||
|
|
||||||
|
## v1.6
|
||||||
|
|
||||||
|
*2016-08-24*
|
||||||
|
|
||||||
|
### Base layer changes
|
||||||
|
|
||||||
|
* The parentheses & bracket keys have been merged: tapping them results in `[` or `{` (if it was shifted), double tapping leads to `(`.
|
||||||
|
* The `:;` and `-_` keys are now available on the base layer, on their [ADORE](#adore-layer) location, too, just below `[{(`/`]})`.
|
||||||
|
* The `Apps` key has been replaced by `F12`.
|
||||||
|
* The `-`/`_` is no longer a tap-dance key.
|
||||||
|
|
||||||
|
### ADORE layer changes
|
||||||
|
|
||||||
|
* Adjustments were made to the [ADORE](#adore-layer) layer, to separate some inconvenient combinations.
|
||||||
|
|
||||||
|
### Miscellaneous changes
|
||||||
|
|
||||||
|
* `LEAD u` now starts the symbolic unicode input system, instead of the OS-one.
|
||||||
|
* 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.
|
||||||
|
* When the **ARROW** layer is on, the *red* and *blue* LEDs light up now.
|
||||||
|
|
||||||
|
### Heatmap
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
* The heatmap generator received a lot of updates.
|
||||||
|
|
||||||
|
## v1.5
|
||||||
|
|
||||||
|
*2016-08-12*
|
||||||
|
|
||||||
|
* The **1HAND** layer has been removed.
|
||||||
|
* A `Delete` key is now available on the right thumb cluster.
|
||||||
|
* The [ADORE](#adore-layer) layer received a major update, see the layout image above.
|
||||||
|
* 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.
|
||||||
|
* The `~` key and the `Media Next/Prev` key have been swapped on the [base layer](#base-layer).
|
||||||
|
* On the **ARROW** layer, `Backspace` has been replaced by `Enter`.
|
||||||
|
* There is some experimental support for entering Unicode symbols.
|
||||||
|
|
||||||
|
## v1.4
|
||||||
|
|
||||||
|
*2016-07-29*
|
||||||
|
|
||||||
|
* When toggling the key logging on or off, the LEDs will do a little dance.
|
||||||
|
* The keylogger is now optional, but enabled by default. Use `KEYLOGGER_ENABLE=no` on the `make` command line to disable it.
|
||||||
|
* 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.
|
||||||
|
* The `-`/`_` key was turned into a tap-dance key too.
|
||||||
|
* There is now a way to travel time with the keyboard, toggle the feature on by hitting `LEAD t`.
|
||||||
|
|
||||||
|
## v1.3
|
||||||
|
|
||||||
|
*2016-07-06*
|
||||||
|
|
||||||
|
* Added support for logging keys, by pressing `LEAD d`. Also included is a tool to generate a [heatmap](#heatmap) out of the logs.
|
||||||
|
* 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.
|
||||||
|
* The **experimental** layer has been redone, and is now called [ADORE](#adore-layer), and as such, can be enabled by `LEAD a` now.
|
||||||
|
* Switching between Dvorak and ADORE is now persisted into EEPROM, and survives a reboot.
|
||||||
|
|
||||||
|
## v1.2
|
||||||
|
|
||||||
|
*2016-06-22*
|
||||||
|
|
||||||
|
* The forced NKRO mode can be easily toggled off at compile-time, to make the firmware compatible with [certain operating systems](#using-on-windows).
|
||||||
|
* The `:;` key has changed behaviour: to access the `;` symbol, the key needs to be double-tapped, instead of shifted.
|
||||||
|
* The `=` and `\` keys were swapped, `=` moved to the home row, on both the [base](#base-layer) and the **experimental** layers.
|
||||||
|
* The arrow and navigation keys were redone, they are now more accessible, but the navigation keys require an extra tap to access.
|
||||||
|
* The **Emacs** layer is gone, replaced by a simplified **navigation and media** layer.
|
||||||
|
* `LEAD v` types the firmware version, and the keymap version.
|
||||||
|
* On the **experimental** layer, the `L` and `Q`, and the `K` and `G` keys were swapped.
|
||||||
|
* The [Steno](#steno-layer) layer gained a few more `#` and `*` keys, to make it easier on my fingers.
|
||||||
|
|
||||||
|
## v1.1
|
||||||
|
|
||||||
|
*2016-06-14*
|
||||||
|
|
||||||
|
* The keyboard starts in NKRO mode, bootmagic and other things are disabled.
|
||||||
|
* A [Steno](#steno-layer) layer was added, to be used with Plover.
|
||||||
|
* An **experimental** layer was added, something halfway between Dvorak and Capewell-Dvorak. A work in progress.
|
||||||
|
* `LEAD y` types `\o/`.
|
||||||
|
* Some keys on the [Base](#base-layer) 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 **Hungarian** layer too, not just modifiers.
|
||||||
|
|
||||||
|
## v1.0
|
||||||
|
|
||||||
|
*2016-05-26*
|
||||||
|
|
||||||
|
Initial version.
|
Binary file not shown.
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 95 KiB |
Binary file not shown.
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 63 KiB |
|
@ -160,11 +160,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
* ,-----------------------------------------------------. ,-----------------------------------------------------.
|
* ,-----------------------------------------------------. ,-----------------------------------------------------.
|
||||||
* | Play/Pause| 9 | 7 @ | 5 * | 3 ^ | 1 $ | F11 | | F12 | 0 % | 2 ! | 4 # | 6 & | 8 | Plover |
|
* | Play/Pause| 9 | 7 @ | 5 * | 3 ^ | 1 $ | F11 | | F12 | 0 % | 2 ! | 4 # | 6 & | 8 | Plover |
|
||||||
* |-----------+------+------+------+------+-------------| |------+------+------+------+------+------+-----------|
|
* |-----------+------+------+------+------+-------------| |------+------+------+------+------+------+-----------|
|
||||||
* | `~ | X | W | G | L | M | ( | | ) | F | H | C | P | Y | \ |
|
* | \ | X | W | C | H | F | ( | | ) | M | G | L | P | / | `~ |
|
||||||
* |-----------+------+------+------+------+------| [ | | ] |------+------+------+------+------+-----------|
|
* |-----------+------+------+------+------+------| [ | | ] |------+------+------+------+------+-----------|
|
||||||
* | Tab/Arrow | A | O | E | I | U |------| |------| D | R | T | N | S | = |
|
* | Tab/Arrow | A | O | E | I | U |------| |------| D | R | T | N | S | = |
|
||||||
* |-----------+------+------+------+------+------| tmux | | tmux |------+------+------+------+------+-----------|
|
* |-----------+------+------+------+------+------| tmux | | tmux |------+------+------+------+------+-----------|
|
||||||
* | | Z | Q | ' | , | . | | | pane | B | K | V | J | / | |
|
* | | Z | Q | ' | , | . | | | pane | B | K | V | Y | J | |
|
||||||
* `-----------+------+------+------+------+-------------' `-------------+------+------+------+------+-----------'
|
* `-----------+------+------+------+------+-------------' `-------------+------+------+------+------+-----------'
|
||||||
* | | | | | : | | - | | | | |
|
* | | | | | : | | - | | | | |
|
||||||
* `-----------------------------------' `-----------------------------------'
|
* `-----------------------------------' `-----------------------------------'
|
||||||
|
@ -179,7 +179,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
[ADORE] = KEYMAP(
|
[ADORE] = KEYMAP(
|
||||||
// left hand
|
// left hand
|
||||||
KC_MPLY ,M(A_9) ,M(A_7) ,M(A_5) ,M(A_3) ,M(A_1) ,KC_F11
|
KC_MPLY ,M(A_9) ,M(A_7) ,M(A_5) ,M(A_3) ,M(A_1) ,KC_F11
|
||||||
,KC_GRV ,KC_X ,KC_W ,KC_G ,KC_L ,KC_M ,TD(CT_LBP)
|
,KC_BSLS ,KC_X ,KC_W ,KC_C ,KC_H ,KC_F ,TD(CT_LBP)
|
||||||
,TD(CT_TA) ,KC_A ,KC_O ,KC_E ,KC_I ,KC_U
|
,TD(CT_TA) ,KC_A ,KC_O ,KC_E ,KC_I ,KC_U
|
||||||
,KC_NO ,KC_Z ,KC_Q ,KC_QUOT ,KC_COMM ,KC_DOT ,TD(CT_TMUX)
|
,KC_NO ,KC_Z ,KC_Q ,KC_QUOT ,KC_COMM ,KC_DOT ,TD(CT_TMUX)
|
||||||
,KC_NO ,KC_NO ,KC_NO ,KC_NO ,TD(CT_CLN)
|
,KC_NO ,KC_NO ,KC_NO ,KC_NO ,TD(CT_CLN)
|
||||||
|
@ -190,9 +190,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
// right hand
|
// right hand
|
||||||
,KC_F12 ,M(A_0) ,M(A_2) ,M(A_4) ,M(A_6) ,M(A_8) ,M(A_PLVR)
|
,KC_F12 ,M(A_0) ,M(A_2) ,M(A_4) ,M(A_6) ,M(A_8) ,M(A_PLVR)
|
||||||
,TD(CT_RBP),KC_F ,KC_H ,KC_C ,KC_P ,KC_Y ,KC_BSLS
|
,TD(CT_RBP),KC_M ,KC_G ,KC_L ,KC_P ,KC_SLSH ,KC_GRV
|
||||||
,KC_D ,KC_R ,KC_T ,KC_N ,KC_S ,KC_EQL
|
,KC_D ,KC_R ,KC_T ,KC_N ,KC_S ,KC_EQL
|
||||||
,TD(CT_TPS),KC_B ,KC_K ,KC_V ,KC_J ,KC_SLSH ,KC_NO
|
,TD(CT_TPS),KC_B ,KC_K ,KC_V ,KC_Y ,KC_J ,KC_NO
|
||||||
,KC_MINS ,KC_NO ,KC_NO ,KC_NO ,KC_NO
|
,KC_MINS ,KC_NO ,KC_NO ,KC_NO ,KC_NO
|
||||||
|
|
||||||
,OSL(NMDIA),KC_DEL
|
,OSL(NMDIA),KC_DEL
|
||||||
|
@ -386,7 +386,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
/* Keymap 6: Steno for Plover
|
/* Keymap 6: Steno for Plover
|
||||||
*
|
*
|
||||||
* ,--------------------------------------------------. ,--------------------------------------------------.
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
||||||
* | | | | | | | BASE | | | | | | | | |
|
* | | | | | | | | | | | | | | | BASE |
|
||||||
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
||||||
* | | # | # | # | # | # | # | | # | # | # | # | # | # | # |
|
* | | # | # | # | # | # | # | | # | # | # | # | # | # | # |
|
||||||
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||||
|
@ -407,7 +407,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
[PLVR] = KEYMAP(
|
[PLVR] = KEYMAP(
|
||||||
// left hand
|
// left hand
|
||||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, M(A_PLVR),
|
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||||
KC_NO, PV_NUM, PV_NUM, PV_NUM, PV_NUM, PV_NUM, PV_NUM,
|
KC_NO, PV_NUM, PV_NUM, PV_NUM, PV_NUM, PV_NUM, PV_NUM,
|
||||||
KC_NO, PV_LS, PV_LT, PV_LP, PV_LH, PV_STAR,
|
KC_NO, PV_LS, PV_LT, PV_LP, PV_LH, PV_STAR,
|
||||||
KC_NO, PV_LS, PV_LK, PV_LW, PV_LR, PV_STAR, PV_STAR,
|
KC_NO, PV_LS, PV_LK, PV_LW, PV_LR, PV_STAR, PV_STAR,
|
||||||
|
@ -417,7 +417,7 @@ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||||
PV_A, PV_O, KC_NO,
|
PV_A, PV_O, KC_NO,
|
||||||
|
|
||||||
// right hand
|
// right hand
|
||||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, M(A_PLVR),
|
||||||
PV_NUM, PV_NUM, PV_NUM, PV_NUM, PV_NUM, PV_NUM, PV_NUM,
|
PV_NUM, PV_NUM, PV_NUM, PV_NUM, PV_NUM, PV_NUM, PV_NUM,
|
||||||
PV_STAR, PV_RF, PV_RP, PV_RL, PV_RT, PV_RD,
|
PV_STAR, PV_RF, PV_RP, PV_RL, PV_RT, PV_RD,
|
||||||
PV_STAR, PV_STAR, PV_RR, PV_RB, PV_RG, PV_RS, PV_RZ,
|
PV_STAR, PV_STAR, PV_RR, PV_RB, PV_RG, PV_RS, PV_RZ,
|
||||||
|
@ -617,6 +617,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
||||||
register_code (KC_LGUI);
|
register_code (KC_LGUI);
|
||||||
if (record->tap.count && !record->tap.interrupted) {
|
if (record->tap.count && !record->tap.interrupted) {
|
||||||
if (record->tap.count >= 2) {
|
if (record->tap.count >= 2) {
|
||||||
|
uprintf("CMD:appsel_start\n");
|
||||||
layer_on (APPSEL);
|
layer_on (APPSEL);
|
||||||
set_oneshot_layer (APPSEL, ONESHOT_START);
|
set_oneshot_layer (APPSEL, ONESHOT_START);
|
||||||
}
|
}
|
||||||
|
@ -695,15 +696,15 @@ void matrix_init_user(void) {
|
||||||
|
|
||||||
LEADER_EXTERNS();
|
LEADER_EXTERNS();
|
||||||
|
|
||||||
static void ang_tap (uint8_t code, ...) {
|
static void ang_tap (uint16_t code, ...) {
|
||||||
uint8_t kc = code;
|
uint16_t kc = code;
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
va_start(ap, code);
|
va_start(ap, code);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
register_code(kc);
|
register_code16(kc);
|
||||||
unregister_code(kc);
|
unregister_code16(kc);
|
||||||
wait_ms(50);
|
wait_ms(50);
|
||||||
kc = va_arg(ap, int);
|
kc = va_arg(ap, int);
|
||||||
} while (kc != 0);
|
} while (kc != 0);
|
||||||
|
@ -866,6 +867,17 @@ void matrix_scan_user(void) {
|
||||||
leading = false;
|
leading = false;
|
||||||
leader_end ();
|
leader_end ();
|
||||||
|
|
||||||
|
SEQ_ONE_KEY (KC_C) {
|
||||||
|
ang_tap (LSFT(KC_C), KC_S, KC_I, KC_L, KC_L, KC_RALT, KC_QUOT, KC_A, KC_M, KC_A, KC_S,
|
||||||
|
KC_S, KC_Z, KC_O, KC_N, KC_Y, KC_K, KC_RALT, KC_QUOT, KC_A, KC_M, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
SEQ_ONE_KEY (KC_G) {
|
||||||
|
ang_tap (LSFT(KC_G), KC_E, KC_J, KC_G, KC_RALT, KC_EQL, KC_O,
|
||||||
|
KC_RALT, KC_EQL, KC_O,
|
||||||
|
KC_RALT, KC_EQL, KC_O, 0);
|
||||||
|
}
|
||||||
|
|
||||||
#if KEYLOGGER_ENABLE
|
#if KEYLOGGER_ENABLE
|
||||||
SEQ_ONE_KEY (KC_D) {
|
SEQ_ONE_KEY (KC_D) {
|
||||||
ergodox_led_all_on();
|
ergodox_led_all_on();
|
||||||
|
@ -875,11 +887,6 @@ void matrix_scan_user(void) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
SEQ_ONE_KEY (KC_Q) {
|
|
||||||
register_code16 (LCTL(KC_1));
|
|
||||||
unregister_code16 (LCTL(KC_1));
|
|
||||||
}
|
|
||||||
|
|
||||||
SEQ_ONE_KEY (KC_T) {
|
SEQ_ONE_KEY (KC_T) {
|
||||||
time_travel = !time_travel;
|
time_travel = !time_travel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ Some of the things in the layout only work when one uses [Spacemacs][spacemacs]
|
||||||
- [Unicode Symbol Input](#unicode-symbol-input)
|
- [Unicode Symbol Input](#unicode-symbol-input)
|
||||||
* [Building](#building)
|
* [Building](#building)
|
||||||
- [Using on Windows](#using-on-windows)
|
- [Using on Windows](#using-on-windows)
|
||||||
* [Changelog](#changelog)
|
* [Changelog](https://github.com/algernon/ergodox-layout/blob/master/NEWS.md#readme)
|
||||||
* [License](#license)
|
* [License](#license)
|
||||||
|
|
||||||
# Layouts
|
# Layouts
|
||||||
|
@ -145,137 +145,6 @@ $ 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.
|
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.
|
||||||
|
|
||||||
# Changelog
|
|
||||||
|
|
||||||
## v1.7
|
|
||||||
|
|
||||||
*2016-09-18*
|
|
||||||
|
|
||||||
### Overall changes
|
|
||||||
|
|
||||||
* The number row has been completely rearranged on both the [Base](#base-layer) and the [ADORE](#adore-layer) layers.
|
|
||||||
* The number/function key behavior was changed: function keys are now on the **Media**.
|
|
||||||
* 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.
|
|
||||||
* 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.
|
|
||||||
* 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.
|
|
||||||
|
|
||||||
### ADORE
|
|
||||||
|
|
||||||
* `Y` and `X` have been swapped again.
|
|
||||||
|
|
||||||
### Media/Navigation layer
|
|
||||||
|
|
||||||
* The function keys are now on this layer.
|
|
||||||
* Mouse keys have been removed.
|
|
||||||
* Media start/stop/prev/next have been removed.
|
|
||||||
* `Print screen` has been removed.
|
|
||||||
* There is only one screen lock key now.
|
|
||||||
|
|
||||||
### Heatmap
|
|
||||||
|
|
||||||
* Fixed a few issues in the finger-stats calculation.
|
|
||||||
* 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.
|
|
||||||
* The heatmap tool will now colorize the stats by default.
|
|
||||||
* The periodic stats are now printed in a more compact format.
|
|
||||||
|
|
||||||
### Tools
|
|
||||||
|
|
||||||
* 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.
|
|
||||||
* 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.
|
|
||||||
* 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.
|
|
||||||
|
|
||||||
## v1.6
|
|
||||||
|
|
||||||
*2016-08-24*
|
|
||||||
|
|
||||||
### Base layer changes
|
|
||||||
|
|
||||||
* The parentheses & bracket keys have been merged: tapping them results in `[` or `{` (if it was shifted), double tapping leads to `(`.
|
|
||||||
* The `:;` and `-_` keys are now available on the base layer, on their [ADORE](#adore-layer) location, too, just below `[{(`/`]})`.
|
|
||||||
* The `Apps` key has been replaced by `F12`.
|
|
||||||
* The `-`/`_` is no longer a tap-dance key.
|
|
||||||
|
|
||||||
### ADORE layer changes
|
|
||||||
|
|
||||||
* Adjustments were made to the [ADORE](#adore-layer) layer, to separate some inconvenient combinations.
|
|
||||||
|
|
||||||
### Miscellaneous changes
|
|
||||||
|
|
||||||
* `LEAD u` now starts the symbolic unicode input system, instead of the OS-one.
|
|
||||||
* 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.
|
|
||||||
* When the **ARROW** layer is on, the *red* and *blue* LEDs light up now.
|
|
||||||
|
|
||||||
### Heatmap
|
|
||||||
|
|
||||||
* 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.
|
|
||||||
* The heatmap generator received a lot of updates.
|
|
||||||
|
|
||||||
## v1.5
|
|
||||||
|
|
||||||
*2016-08-12*
|
|
||||||
|
|
||||||
* The **1HAND** layer has been removed.
|
|
||||||
* A `Delete` key is now available on the right thumb cluster.
|
|
||||||
* The [ADORE](#adore-layer) layer received a major update, see the layout image above.
|
|
||||||
* 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.
|
|
||||||
* The `~` key and the `Media Next/Prev` key have been swapped on the [base layer](#base-layer).
|
|
||||||
* On the **ARROW** layer, `Backspace` has been replaced by `Enter`.
|
|
||||||
* There is some experimental support for entering Unicode symbols.
|
|
||||||
|
|
||||||
## v1.4
|
|
||||||
|
|
||||||
*2016-07-29*
|
|
||||||
|
|
||||||
* When toggling the key logging on or off, the LEDs will do a little dance.
|
|
||||||
* The keylogger is now optional, but enabled by default. Use `KEYLOGGER_ENABLE=no` on the `make` command line to disable it.
|
|
||||||
* 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.
|
|
||||||
* The `-`/`_` key was turned into a tap-dance key too.
|
|
||||||
* There is now a way to travel time with the keyboard, toggle the feature on by hitting `LEAD t`.
|
|
||||||
|
|
||||||
## v1.3
|
|
||||||
|
|
||||||
*2016-07-06*
|
|
||||||
|
|
||||||
* Added support for logging keys, by pressing `LEAD d`. Also included is a tool to generate a [heatmap](#heatmap) out of the logs.
|
|
||||||
* 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.
|
|
||||||
* The **experimental** layer has been redone, and is now called [ADORE](#adore-layer), and as such, can be enabled by `LEAD a` now.
|
|
||||||
* Switching between Dvorak and ADORE is now persisted into EEPROM, and survives a reboot.
|
|
||||||
|
|
||||||
## v1.2
|
|
||||||
|
|
||||||
*2016-06-22*
|
|
||||||
|
|
||||||
* The forced NKRO mode can be easily toggled off at compile-time, to make the firmware compatible with [certain operating systems](#using-on-windows).
|
|
||||||
* The `:;` key has changed behaviour: to access the `;` symbol, the key needs to be double-tapped, instead of shifted.
|
|
||||||
* The `=` and `\` keys were swapped, `=` moved to the home row, on both the [base](#base-layer) and the **experimental** layers.
|
|
||||||
* The arrow and navigation keys were redone, they are now more accessible, but the navigation keys require an extra tap to access.
|
|
||||||
* The **Emacs** layer is gone, replaced by a simplified **navigation and media** layer.
|
|
||||||
* `LEAD v` types the firmware version, and the keymap version.
|
|
||||||
* On the **experimental** layer, the `L` and `Q`, and the `K` and `G` keys were swapped.
|
|
||||||
* The [Steno](#steno-layer) layer gained a few more `#` and `*` keys, to make it easier on my fingers.
|
|
||||||
|
|
||||||
## v1.1
|
|
||||||
|
|
||||||
*2016-06-14*
|
|
||||||
|
|
||||||
* The keyboard starts in NKRO mode, bootmagic and other things are disabled.
|
|
||||||
* A [Steno](#steno-layer) layer was added, to be used with Plover.
|
|
||||||
* An **experimental** layer was added, something halfway between Dvorak and Capewell-Dvorak. A work in progress.
|
|
||||||
* `LEAD y` types `\o/`.
|
|
||||||
* Some keys on the [Base](#base-layer) 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 **Hungarian** layer too, not just modifiers.
|
|
||||||
|
|
||||||
## v1.0
|
|
||||||
|
|
||||||
*2016-05-26*
|
|
||||||
|
|
||||||
Initial version.
|
|
||||||
|
|
||||||
# License
|
# License
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
|
@ -111,11 +111,11 @@
|
||||||
"x": 3.5,
|
"x": 3.5,
|
||||||
"a": 6
|
"a": 6
|
||||||
},
|
},
|
||||||
"G",
|
"C",
|
||||||
{
|
{
|
||||||
"x": 10.5
|
"x": 10.5
|
||||||
},
|
},
|
||||||
"C"
|
"L"
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
@ -128,11 +128,11 @@
|
||||||
"x": 1,
|
"x": 1,
|
||||||
"a": 6
|
"a": 6
|
||||||
},
|
},
|
||||||
"L",
|
"H",
|
||||||
{
|
{
|
||||||
"x": 8.5
|
"x": 8.5
|
||||||
},
|
},
|
||||||
"H",
|
"G",
|
||||||
{
|
{
|
||||||
"x": 1
|
"x": 1
|
||||||
},
|
},
|
||||||
|
@ -143,7 +143,7 @@
|
||||||
"y": -0.875,
|
"y": -0.875,
|
||||||
"x": 5.5
|
"x": 5.5
|
||||||
},
|
},
|
||||||
"M",
|
"F",
|
||||||
{
|
{
|
||||||
"a": 4,
|
"a": 4,
|
||||||
"fa": [0, 0, 0],
|
"fa": [0, 0, 0],
|
||||||
|
@ -158,7 +158,7 @@
|
||||||
{
|
{
|
||||||
"a": 6
|
"a": 6
|
||||||
},
|
},
|
||||||
"F"
|
"M"
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
@ -167,7 +167,7 @@
|
||||||
"a": 4,
|
"a": 4,
|
||||||
"w": 1.5
|
"w": 1.5
|
||||||
},
|
},
|
||||||
"\n\n~\n`",
|
"\n\n|\n\\",
|
||||||
{
|
{
|
||||||
"a": 6,
|
"a": 6,
|
||||||
"f": 3
|
"f": 3
|
||||||
|
@ -175,14 +175,14 @@
|
||||||
"X",
|
"X",
|
||||||
{
|
{
|
||||||
"x": 14.5,
|
"x": 14.5,
|
||||||
"a": 6
|
"a": 4
|
||||||
},
|
},
|
||||||
"Y",
|
"/\n?",
|
||||||
{
|
{
|
||||||
"a": 4,
|
"a": 4,
|
||||||
"w": 1.5
|
"w": 1.5
|
||||||
},
|
},
|
||||||
"|\n\\"
|
"~\n`"
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
@ -312,7 +312,7 @@
|
||||||
{
|
{
|
||||||
"x": 1
|
"x": 1
|
||||||
},
|
},
|
||||||
"J"
|
"Y"
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
@ -342,10 +342,9 @@
|
||||||
},
|
},
|
||||||
"Z",
|
"Z",
|
||||||
{
|
{
|
||||||
"x": 14.5,
|
"x": 14.5
|
||||||
"a": 4
|
|
||||||
},
|
},
|
||||||
"?\n/",
|
"J",
|
||||||
{
|
{
|
||||||
"f": 9,
|
"f": 9,
|
||||||
"g": true,
|
"g": true,
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
LAST_APPSEL_START=0
|
||||||
|
|
||||||
cmd_wm () {
|
cmd_wm () {
|
||||||
WIN="$(xdotool getactivewindow)"
|
WIN="$(xdotool getactivewindow)"
|
||||||
wmctrl -i -r ${WIN} -b remove,maximized_vert,maximized_horz
|
wmctrl -i -r ${WIN} -b remove,maximized_vert,maximized_horz
|
||||||
|
@ -34,6 +36,16 @@ cmd_appsel_chrome () {
|
||||||
_cmd_appsel chromium
|
_cmd_appsel chromium
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cmd_appsel_start () {
|
||||||
|
APPSEL_START=$(date +%s)
|
||||||
|
if [ $APPSEL_START -lt $(expr $LAST_APPSEL_START + 10) ]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
LAST_APPSEL_START=$APPSEL_START
|
||||||
|
notify-send -t 1000 "Please select an application!" -c device -u low \
|
||||||
|
-i /usr/share/icons/Adwaita/24x24/devices/video-display.png
|
||||||
|
}
|
||||||
|
|
||||||
cmd_help () {
|
cmd_help () {
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
Use the source, Luke!
|
Use the source, Luke!
|
||||||
|
|
|
@ -145,6 +145,11 @@ class Heatmap(object):
|
||||||
usage[0][4] = usage[0][4] + self.log[(c, r)]
|
usage[0][4] = usage[0][4] + self.log[(c, r)]
|
||||||
else:
|
else:
|
||||||
usage[1][0] = usage[1][0] + self.log[(c, r)]
|
usage[1][0] = usage[1][0] + self.log[(c, r)]
|
||||||
|
elif r == 4 and (c == 4 or c == 9): # bottom row thumb keys
|
||||||
|
if c <= 6: # left side
|
||||||
|
usage[0][4] = usage[0][4] + self.log[(c, r)]
|
||||||
|
else:
|
||||||
|
usage[1][0] = usage[1][0] + self.log[(c, r)]
|
||||||
else:
|
else:
|
||||||
fc = c
|
fc = c
|
||||||
hand = 0
|
hand = 0
|
||||||
|
|
|
@ -15,20 +15,20 @@ charmap = {
|
||||||
'6': [[11, 0]], '&': [[2, 5], [11, 0]],
|
'6': [[11, 0]], '&': [[2, 5], [11, 0]],
|
||||||
'8': [[12, 0]],
|
'8': [[12, 0]],
|
||||||
|
|
||||||
'`': [[0, 1]], '~': [[2, 5], [0, 1]],
|
'\\': [[0, 1]], '|': [[2, 5], [0, 1]],
|
||||||
'y': [[1, 1]], 'Y': [[2, 5], [1, 1]],
|
'x': [[1, 1]], 'X': [[2, 5], [1, 1]],
|
||||||
'w': [[2, 1]], 'W': [[2, 5], [2, 1]],
|
'w': [[2, 1]], 'W': [[2, 5], [2, 1]],
|
||||||
'g': [[3, 1]], 'G': [[2, 5], [3, 1]],
|
'c': [[3, 1]], 'C': [[2, 5], [3, 1]],
|
||||||
'l': [[4, 1]], 'L': [[2, 5], [4, 1]],
|
'h': [[4, 1]], 'H': [[2, 5], [4, 1]],
|
||||||
'm': [[5, 1]], 'M': [[2, 5], [5, 1]],
|
'f': [[5, 1]], 'F': [[2, 5], [5, 1]],
|
||||||
'[': [[6, 1]], '{': [[2, 5], [6, 1]], '(': [[6, 1], [6, 1]],
|
'[': [[6, 1]], '{': [[2, 5], [6, 1]], '(': [[6, 1], [6, 1]],
|
||||||
']': [[7, 1]], '}': [[2, 5], [7, 1]], ')': [[7, 1], [7, 1]],
|
']': [[7, 1]], '}': [[2, 5], [7, 1]], ')': [[7, 1], [7, 1]],
|
||||||
'f': [[8, 1]], 'F': [[2, 5], [8, 1]],
|
'm': [[8, 1]], 'M': [[2, 5], [8, 1]],
|
||||||
'h': [[9, 1]], 'H': [[2, 5], [9, 1]],
|
'g': [[9, 1]], 'G': [[2, 5], [9, 1]],
|
||||||
'c': [[10, 1]], 'C': [[2, 5], [10, 1]],
|
'l': [[10, 1]], 'L': [[2, 5], [10, 1]],
|
||||||
'p': [[11, 1]], 'P': [[2, 5], [11, 1]],
|
'p': [[11, 1]], 'P': [[2, 5], [11, 1]],
|
||||||
'x': [[12, 1]], 'X': [[2, 5], [12, 1]],
|
'/': [[12, 1]], '?': [[2, 5], [12, 1]],
|
||||||
'\\': [[13, 1]], '|': [[2, 5], [13, 1]],
|
'`': [[13, 1]], '~': [[2, 5], [13, 1]],
|
||||||
|
|
||||||
'\t': [[0, 2]],
|
'\t': [[0, 2]],
|
||||||
'a': [[1, 2]], 'A': [[2, 5], [1, 2]],
|
'a': [[1, 2]], 'A': [[2, 5], [1, 2]],
|
||||||
|
@ -51,8 +51,8 @@ charmap = {
|
||||||
'b': [[8, 3]], 'B': [[2, 5], [8, 3]],
|
'b': [[8, 3]], 'B': [[2, 5], [8, 3]],
|
||||||
'k': [[9, 3]], 'K': [[2, 5], [9, 3]],
|
'k': [[9, 3]], 'K': [[2, 5], [9, 3]],
|
||||||
'v': [[10, 3]], 'V': [[2, 5], [10, 3]],
|
'v': [[10, 3]], 'V': [[2, 5], [10, 3]],
|
||||||
'j': [[11, 3]], 'J': [[2, 5], [11, 3]],
|
'y': [[11, 3]], 'Y': [[2, 5], [11, 3]],
|
||||||
'/': [[12, 3]], '?': [[2, 5], [12, 3]],
|
'j': [[12, 3]], 'J': [[2, 5], [12, 3]],
|
||||||
|
|
||||||
':': [[4, 4]], ';': [[4, 4], [4, 4]],
|
':': [[4, 4]], ';': [[4, 4], [4, 4]],
|
||||||
'-': [[9, 4]], '_': [[2, 5], [9, 4]],
|
'-': [[9, 4]], '_': [[2, 5], [9, 4]],
|
||||||
|
|
3
keyboards/handwired/gamenum/Makefile
Normal file
3
keyboards/handwired/gamenum/Makefile
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
ifndef MAKEFILE_INCLUDED
|
||||||
|
include ../../../Makefile
|
||||||
|
endif
|
102
keyboards/handwired/gamenum/README.md
Normal file
102
keyboards/handwired/gamenum/README.md
Normal file
|
@ -0,0 +1,102 @@
|
||||||
|
GameNum firmware
|
||||||
|
======================
|
||||||
|
## Board overview
|
||||||
|
|
||||||
|
The GameNum was designed to facilitate the use of mechanical keys for gaming even when your packing space is limited.
|
||||||
|
It uses a standard numpad layout replacing the NumLock key with a layer toggle that allows you to cycle through the different layers.
|
||||||
|
The standard layout features a default layer that acts as a standard numpad, a layer that was meant for simple WASD based games and a layer that was designed to be used for MOBA/RTS related games.
|
||||||
|
The RTS layer is meant to be used rotating the device 90 degrees counterclockwise.
|
||||||
|
|
||||||
|
The README.MD for this board is reasonably extensive and in-depth because the build is quite small and covers a lot of things that I feel that it would be a good starting point for getting into QMK.
|
||||||
|
|
||||||
|
## Build considerations
|
||||||
|
|
||||||
|
Since the GameNum is handwired and uses 2 of its pins to toggle indicator lights there are some things to keep in mind.
|
||||||
|
Firmware was build for use with a Pro Micro based on a ATMEGA32u4 at 16mHz.
|
||||||
|
The indicator LED's are normally assigned to `pin C6` and `pin D4`, C6 goes high when the first layer is used, D4 goes high when layer 2 is used. Both LED's are off when the default layer is enabled.
|
||||||
|
'+' of the LED goes to the respective pins and can be joined together on the '-' into a resistor that runs to the ground pin of the pro micro. With a standard LED a resistor value of 100 ohm is fine, keep in mind that you cannot use high powered LEDS on these pins without ruining your pro micro.
|
||||||
|
|
||||||
|
## schematic of the switches and diodes
|
||||||
|
|
||||||
|
![schematic overview](http://i.imgur.com/fleitoA.jpg)
|
||||||
|
|
||||||
|
Keep in mind that the minus of the diodes should point towards the pro micros inputs.
|
||||||
|
|
||||||
|
##LED hookup
|
||||||
|
|
||||||
|
![led overview](http://i.imgur.com/U6m865n.jpg)
|
||||||
|
|
||||||
|
## Adding more layers
|
||||||
|
|
||||||
|
Adding additional layers is pretty straight forward. Look in `keymaps/default/keymap.c` and find `#define OSY 2` add a new definition for the layer you are going to add. This can be named pretty much anything. Example: `#define NAMEHERE 3`.
|
||||||
|
Keep in mind here that the number after the name should correspond with the number that the layer has in the stack of layers.
|
||||||
|
|
||||||
|
Next thing to do is to add the actual layer for the keymap.
|
||||||
|
|
||||||
|
```
|
||||||
|
[DEF] = KEYMAP(
|
||||||
|
KC_FN0, KC_SLSH, KC_ASTR, KC_MINS, \
|
||||||
|
KC_7, KC_8, KC_9, KC_PLUS, \
|
||||||
|
KC_4, KC_5, KC_6, \
|
||||||
|
KC_1, KC_2, KC_3, \
|
||||||
|
KC_0, KC_DOT, KC_ENT \
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
This is the default layer for the gamenum. It's generally easiest to just copy this and change things as you see fit. Keep in mind that at least 1 button on the pad has to be used to switch to the next layer in the stack or you will be stuck in that layer FOREVER! D:
|
||||||
|
In the case of DEF this is key `KC_FN0`. Also keep in mind that the last layer that you add does not have a comma after its closing bracket but any other layer does!
|
||||||
|
|
||||||
|
Which brings us nicely to the next part, the layer switching logic. Under the keymaps look for `PROGMEM fn_actions[]` this function handles the switching between layers, as you might have noticed every layer in the keymap has its own KC_FNx key. This is the key responsible for switching you from layer to layer.
|
||||||
|
The number that is at the end of the keycode corresponds with the code in the function.
|
||||||
|
`[0] = ACTION_LAYER_SET(HDN, ON_PRESS),` When `KC_FN0` is pressed the keyboard switches layer `HDN` on when the key is pressed down. Add an extra line for your layer here as well.
|
||||||
|
|
||||||
|
Now for the LEDs, if you plan on adding extra LED's to the keyboard to indicate other layers you have to first define the pin that the LED will be using in `gamenum.c`.
|
||||||
|
Look for this piece of code:
|
||||||
|
|
||||||
|
```
|
||||||
|
DDRD |= (1<<4);
|
||||||
|
PORTD &= ~(1<<4);
|
||||||
|
```
|
||||||
|
|
||||||
|
Copy it and change the letter after DDR and PORT to the letter of your pin. Change the 4 to the number of your pin. `DDRx |= (1<<y);` defines that pin as an output. `PORTx &= ~(1<<y);` sets the pin to LOW turning off the LED.
|
||||||
|
|
||||||
|
Now go back to `keymap.c` and look for the `process_record_user` function. The function is basically a switch case that checks if you pushed one of the defined layer-switch buttons. When it sees that you pushed one of them it sets the pins of the LED's either low or high.
|
||||||
|
|
||||||
|
```
|
||||||
|
case KC_FN1:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
PORTC &= ~(1 << 6); // PC6 goes low
|
||||||
|
PORTD |= (1<<4); //PD4 goes high
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
```
|
||||||
|
|
||||||
|
This is the code for the KC_FN1 button. Notice how we check against what key is pressed in the case and then set pin C6 low and pin D4 high. Adjust this as you see fit.
|
||||||
|
|
||||||
|
|
||||||
|
## Quantum MK Firmware
|
||||||
|
|
||||||
|
For the full Quantum feature list, see [the parent readme.md](/doc/readme.md).
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
Download or clone the whole firmware and navigate to the keyboards/handwired/gamenum folder.
|
||||||
|
Read the README.md for the qmk repository on how to set up your developer enviroment to build your firmware with.
|
||||||
|
Building firmware on Windows can be a bit of a hassle. Linux is a lot easier to use if you have some experience with it. A raspberry pi will already be able to build the firmware for you.
|
||||||
|
Once your dev env is set up, you'll be able to type `make` to generate your .hex - you can then use AVRDudess to program your .hex file.
|
||||||
|
|
||||||
|
### Default
|
||||||
|
|
||||||
|
To build with the default keymap, simply run `make`.
|
||||||
|
|
||||||
|
### Other Keymaps
|
||||||
|
|
||||||
|
To build the firmware binary hex file with a keymap just do `make` with `keymap` option like:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ make keymap=[default|jack|<name>]
|
||||||
|
```
|
||||||
|
|
||||||
|
Keymaps follow the format **__keymap.c__** and are stored in folders in the `keymaps` folder, eg `keymaps/my_keymap/`
|
||||||
|
|
||||||
|
|
162
keyboards/handwired/gamenum/config.h
Normal file
162
keyboards/handwired/gamenum/config.h
Normal file
|
@ -0,0 +1,162 @@
|
||||||
|
/*
|
||||||
|
Copyright 2012 Jun Wako <wakojun@gmail.com>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef CONFIG_H
|
||||||
|
#define CONFIG_H
|
||||||
|
|
||||||
|
#include "config_common.h"
|
||||||
|
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0x1234
|
||||||
|
#define PRODUCT_ID 0x5678
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER Seth-Senpai
|
||||||
|
#define PRODUCT GameNum
|
||||||
|
#define DESCRIPTION Numpad with gamelayers
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 5
|
||||||
|
#define MATRIX_COLS 4
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Keyboard Matrix Assignments
|
||||||
|
*
|
||||||
|
* Change this to how you wired your keyboard
|
||||||
|
* COLS: AVR pins used for columns, left to right
|
||||||
|
* ROWS: AVR pins used for rows, top to bottom
|
||||||
|
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
|
||||||
|
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#define MATRIX_ROW_PINS { B6, B2, B3, B1, F7 }
|
||||||
|
#define MATRIX_COL_PINS { D7, E6, B4, B5 }
|
||||||
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
/* COL2ROW or ROW2COL */
|
||||||
|
#define DIODE_DIRECTION ROW2COL
|
||||||
|
|
||||||
|
// #define BACKLIGHT_PIN C6
|
||||||
|
// #define BACKLIGHT_BREATHING
|
||||||
|
// #define BACKLIGHT_LEVELS 3
|
||||||
|
|
||||||
|
|
||||||
|
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||||
|
#define DEBOUNCING_DELAY 5
|
||||||
|
|
||||||
|
/* define if matrix has ghost (lacks anti-ghosting diodes) */
|
||||||
|
//#define MATRIX_HAS_GHOST
|
||||||
|
|
||||||
|
/* number of backlight levels */
|
||||||
|
|
||||||
|
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||||
|
#define LOCKING_SUPPORT_ENABLE
|
||||||
|
/* Locking resynchronize hack */
|
||||||
|
#define LOCKING_RESYNC_ENABLE
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Force NKRO
|
||||||
|
*
|
||||||
|
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
|
||||||
|
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
|
||||||
|
* makefile for this to work.)
|
||||||
|
*
|
||||||
|
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
|
||||||
|
* until the next keyboard reset.
|
||||||
|
*
|
||||||
|
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is
|
||||||
|
* fully operational during normal computer usage.
|
||||||
|
*
|
||||||
|
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
|
||||||
|
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
|
||||||
|
* bootmagic, NKRO mode will always be enabled until it is toggled again during a
|
||||||
|
* power-up.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//#define FORCE_NKRO
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Magic Key Options
|
||||||
|
*
|
||||||
|
* Magic keys are hotkey commands that allow control over firmware functions of
|
||||||
|
* the keyboard. They are best used in combination with the HID Listen program,
|
||||||
|
* found here: https://www.pjrc.com/teensy/hid_listen.html
|
||||||
|
*
|
||||||
|
* The options below allow the magic key functionality to be changed. This is
|
||||||
|
* useful if your keyboard/keypad is missing keys and you want magic key support.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* key combination for magic key command */
|
||||||
|
#define IS_COMMAND() ( \
|
||||||
|
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
|
||||||
|
)
|
||||||
|
|
||||||
|
/* control how magic key switches layers */
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
|
||||||
|
|
||||||
|
/* override magic key keymap */
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
|
||||||
|
//#define MAGIC_KEY_HELP1 H
|
||||||
|
//#define MAGIC_KEY_HELP2 SLASH
|
||||||
|
//#define MAGIC_KEY_DEBUG D
|
||||||
|
//#define MAGIC_KEY_DEBUG_MATRIX X
|
||||||
|
//#define MAGIC_KEY_DEBUG_KBD K
|
||||||
|
//#define MAGIC_KEY_DEBUG_MOUSE M
|
||||||
|
//#define MAGIC_KEY_VERSION V
|
||||||
|
//#define MAGIC_KEY_STATUS S
|
||||||
|
//#define MAGIC_KEY_CONSOLE C
|
||||||
|
//#define MAGIC_KEY_LAYER0_ALT1 ESC
|
||||||
|
//#define MAGIC_KEY_LAYER0_ALT2 GRAVE
|
||||||
|
//#define MAGIC_KEY_LAYER0 0
|
||||||
|
//#define MAGIC_KEY_LAYER1 1
|
||||||
|
//#define MAGIC_KEY_LAYER2 2
|
||||||
|
//#define MAGIC_KEY_LAYER3 3
|
||||||
|
//#define MAGIC_KEY_LAYER4 4
|
||||||
|
//#define MAGIC_KEY_LAYER5 5
|
||||||
|
//#define MAGIC_KEY_LAYER6 6
|
||||||
|
//#define MAGIC_KEY_LAYER7 7
|
||||||
|
//#define MAGIC_KEY_LAYER8 8
|
||||||
|
//#define MAGIC_KEY_LAYER9 9
|
||||||
|
//#define MAGIC_KEY_BOOTLOADER PAUSE
|
||||||
|
//#define MAGIC_KEY_LOCK CAPS
|
||||||
|
//#define MAGIC_KEY_EEPROM E
|
||||||
|
//#define MAGIC_KEY_NKRO N
|
||||||
|
//#define MAGIC_KEY_SLEEP_LED Z
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Feature disable options
|
||||||
|
* These options are also useful to firmware size reduction.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* disable debug print */
|
||||||
|
//#define NO_DEBUG
|
||||||
|
|
||||||
|
/* disable print */
|
||||||
|
//#define NO_PRINT
|
||||||
|
|
||||||
|
/* disable action features */
|
||||||
|
//#define NO_ACTION_LAYER
|
||||||
|
//#define NO_ACTION_TAPPING
|
||||||
|
//#define NO_ACTION_ONESHOT
|
||||||
|
//#define NO_ACTION_MACRO
|
||||||
|
//#define NO_ACTION_FUNCTION
|
||||||
|
|
||||||
|
#endif
|
14
keyboards/handwired/gamenum/gamenum.c
Normal file
14
keyboards/handwired/gamenum/gamenum.c
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#include "gamenum.h"
|
||||||
|
|
||||||
|
void matrix_init_kb(void) {
|
||||||
|
// put your keyboard start-up code here
|
||||||
|
// runs once when the firmware starts up
|
||||||
|
DDRC |= (1<<6);
|
||||||
|
PORTC &= ~(1<<6);
|
||||||
|
|
||||||
|
DDRD |= (1<<4);
|
||||||
|
PORTD &= ~(1<<4);
|
||||||
|
|
||||||
|
matrix_init_user();
|
||||||
|
|
||||||
|
}
|
21
keyboards/handwired/gamenum/gamenum.h
Normal file
21
keyboards/handwired/gamenum/gamenum.h
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
#ifndef GAMENUM_H
|
||||||
|
#define GAMENUM_H
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#define KEYMAP( \
|
||||||
|
k00, k01, k02, k03, \
|
||||||
|
k10, k11, k12, k13, \
|
||||||
|
k20, k21, k22, \
|
||||||
|
k30, k31, k32, \
|
||||||
|
k41, k42, k43 \
|
||||||
|
) \
|
||||||
|
{ \
|
||||||
|
{ k00, k01, k02, k03}, \
|
||||||
|
{ k10, k11, k12, k13}, \
|
||||||
|
{ k20, k21, k22, KC_NO}, \
|
||||||
|
{ k30, k31, k32, KC_NO}, \
|
||||||
|
{ KC_NO, k41, k42, k43} \
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
68
keyboards/handwired/gamenum/keymaps/default/keymap.c
Normal file
68
keyboards/handwired/gamenum/keymaps/default/keymap.c
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
#include "gamenum.h"
|
||||||
|
#include "action_layer.h"
|
||||||
|
#include "eeconfig.h"
|
||||||
|
|
||||||
|
|
||||||
|
#define _______ KC_TRNS
|
||||||
|
|
||||||
|
#define DEF 0
|
||||||
|
#define HDN 1
|
||||||
|
#define OSY 2
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[DEF] = KEYMAP(
|
||||||
|
KC_FN0, KC_SLSH, KC_ASTR, KC_MINS, \
|
||||||
|
KC_7, KC_8, KC_9, KC_PLUS, \
|
||||||
|
KC_4, KC_5, KC_6, \
|
||||||
|
KC_1, KC_2, KC_3, \
|
||||||
|
KC_0, KC_DOT, KC_ENT \
|
||||||
|
),
|
||||||
|
[HDN] = KEYMAP(
|
||||||
|
KC_FN1, KC_1, KC_2, KC_3, \
|
||||||
|
KC_Q, KC_W, KC_E, KC_R, \
|
||||||
|
KC_A, KC_S, KC_D, \
|
||||||
|
KC_Z, KC_X, KC_C, \
|
||||||
|
KC_LSFT, KC_LALT, KC_SPC \
|
||||||
|
),
|
||||||
|
[OSY] = KEYMAP(
|
||||||
|
KC_A, KC_Q, KC_1, KC_FN2, \
|
||||||
|
KC_S, KC_W, KC_2, KC_LALT, \
|
||||||
|
KC_D, KC_E, KC_3, \
|
||||||
|
KC_F, KC_R, KC_4, \
|
||||||
|
KC_SPC, KC_T, KC_TAB \
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
const uint16_t PROGMEM fn_actions[] = {
|
||||||
|
[0] = ACTION_LAYER_SET(HDN, ON_PRESS),
|
||||||
|
[1] = ACTION_LAYER_SET(OSY, ON_PRESS),
|
||||||
|
[2] = ACTION_LAYER_SET(DEF, ON_PRESS),
|
||||||
|
};
|
||||||
|
|
||||||
|
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
||||||
|
return MACRO_NONE;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
bool process_record_user (uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch(keycode) {
|
||||||
|
case KC_FN0:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
PORTC |= (1 << 6); // PC6 goes high
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case KC_FN1:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
PORTC &= ~(1 << 6); // PC6 goes high
|
||||||
|
PORTD |= (1<<4);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case KC_FN2:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
PORTD &= ~(1 << 4); // PC6 goes high
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
73
keyboards/handwired/gamenum/rules.mk
Normal file
73
keyboards/handwired/gamenum/rules.mk
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
|
||||||
|
# MCU name
|
||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Processor frequency.
|
||||||
|
# This will define a symbol, F_CPU, in all source code files equal to the
|
||||||
|
# processor frequency in Hz. You can then use this symbol in your source code to
|
||||||
|
# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
|
||||||
|
# automatically to create a 32-bit value in your source code.
|
||||||
|
#
|
||||||
|
# This will be an integer division of F_USB below, as it is sourced by
|
||||||
|
# F_USB after it has run through any CPU prescalers. Note that this value
|
||||||
|
# does not *change* the processor frequency - it should merely be updated to
|
||||||
|
# reflect the processor speed set externally so that the code can use accurate
|
||||||
|
# software delays.
|
||||||
|
F_CPU = 16000000
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# LUFA specific
|
||||||
|
#
|
||||||
|
# Target architecture (see library "Board Types" documentation).
|
||||||
|
ARCH = AVR8
|
||||||
|
|
||||||
|
# Input clock frequency.
|
||||||
|
# This will define a symbol, F_USB, in all source code files equal to the
|
||||||
|
# input clock frequency (before any prescaling is performed) in Hz. This value may
|
||||||
|
# differ from F_CPU if prescaling is used on the latter, and is required as the
|
||||||
|
# raw input clock is fed directly to the PLL sections of the AVR for high speed
|
||||||
|
# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
|
||||||
|
# at the end, this will be done automatically to create a 32-bit value in your
|
||||||
|
# source code.
|
||||||
|
#
|
||||||
|
# If no clock division is performed on the input clock inside the AVR (via the
|
||||||
|
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||||
|
F_USB = $(F_CPU)
|
||||||
|
|
||||||
|
# Interrupt driven control endpoint task(+60)
|
||||||
|
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
||||||
|
|
||||||
|
|
||||||
|
# Boot Section Size in *bytes*
|
||||||
|
# Teensy halfKay 512
|
||||||
|
# Teensy++ halfKay 1024
|
||||||
|
# Atmel DFU loader 4096
|
||||||
|
# LUFA bootloader 4096
|
||||||
|
# USBaspLoader 2048
|
||||||
|
OPT_DEFS += -DBOOTLOADER_SIZE=512
|
||||||
|
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000)
|
||||||
|
MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700)
|
||||||
|
EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450)
|
||||||
|
CONSOLE_ENABLE ?= yes # Console for debug(+400)
|
||||||
|
COMMAND_ENABLE ?= yes # Commands for debug and configuration
|
||||||
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
|
SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend
|
||||||
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
NKRO_ENABLE ?= no # USB Nkey Rollover
|
||||||
|
BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality on B7 by default
|
||||||
|
MIDI_ENABLE ?= no # MIDI controls
|
||||||
|
UNICODE_ENABLE ?= no # Unicode
|
||||||
|
BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||||
|
AUDIO_ENABLE ?= no # Audio output on port C6
|
||||||
|
|
||||||
|
ifndef QUANTUM_DIR
|
||||||
|
include ../../Makefile
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
|
@ -21,14 +21,8 @@ enum planck_keycodes {
|
||||||
MOVE = SAFE_RANGE,
|
MOVE = SAFE_RANGE,
|
||||||
SYMB,
|
SYMB,
|
||||||
FUNC,
|
FUNC,
|
||||||
CMDLEFT,
|
|
||||||
CMDRGHT,
|
|
||||||
BELOW,
|
BELOW,
|
||||||
ABOVE,
|
ABOVE
|
||||||
DASH,
|
|
||||||
GBP,
|
|
||||||
VOLUP,
|
|
||||||
VOLDN
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Fillers to make layering more clear
|
// Fillers to make layering more clear
|
||||||
|
@ -59,15 +53,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
* ,-----------------------------------------------------------------------------------.
|
* ,-----------------------------------------------------------------------------------.
|
||||||
* | Esc | | Cmd-L| Up | Cmd-R| | | Cmd-L| Up | Cmd-R| | Esc |
|
* | Esc | | Cmd-L| Up | Cmd-R| | | Cmd-L| Up | Cmd-R| | Esc |
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
* | Del | | Left | Down | Right| | | Left | Down | Right| | Del |
|
* | Del | Caps | Left | Down | Right| | | Left | Down | Right| Caps | Del |
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
* | | | | Pg Up| Pg Dn| Above| | Pg Dn| Pg Up| | Caps | |
|
* | | | | Pg Up| Pg Dn| Above| | Pg Dn| Pg Up| | | |
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
* | | | | | | Below| | | | | | |
|
* | | | | | | Below| | | | | | |
|
||||||
* `-----------------------------------------------------------------------------------'
|
* `-----------------------------------------------------------------------------------'
|
||||||
*/
|
*/
|
||||||
[_MOVE] = {
|
[_MOVE] = {
|
||||||
{KC_ESC, XXXXXXX, CMDLEFT, KC_UP, CMDRGHT, XXXXXXX, XXXXXXX, CMDLEFT, KC_UP, CMDRGHT, XXXXXXX, KC_ESC },
|
{KC_ESC, XXXXXXX, LGUI(KC_LEFT), KC_UP, LGUI(KC_RGHT), XXXXXXX, XXXXXXX, LGUI(KC_LEFT), KC_UP, LGUI(KC_RGHT), XXXXXXX, KC_ESC },
|
||||||
{KC_DEL, KC_CAPS, KC_LEFT, KC_DOWN, KC_RGHT, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_RGHT, KC_CAPS, KC_DEL },
|
{KC_DEL, KC_CAPS, KC_LEFT, KC_DOWN, KC_RGHT, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_RGHT, KC_CAPS, KC_DEL },
|
||||||
{_______, XXXXXXX, XXXXXXX, KC_PGUP, KC_PGDN, ABOVE, XXXXXXX, KC_PGDN, KC_PGUP, XXXXXXX, XXXXXXX, _______},
|
{_______, XXXXXXX, XXXXXXX, KC_PGUP, KC_PGDN, ABOVE, XXXXXXX, KC_PGDN, KC_PGUP, XXXXXXX, XXXXXXX, _______},
|
||||||
{_______, _______, _______, _______, _______, BELOW, _______, _______, _______, _______, _______, _______}
|
{_______, _______, _______, _______, _______, BELOW, _______, _______, _______, _______, _______, _______}
|
||||||
|
@ -85,8 +79,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
* `-----------------------------------------------------------------------------------'
|
* `-----------------------------------------------------------------------------------'
|
||||||
*/
|
*/
|
||||||
[_SYMB] = {
|
[_SYMB] = {
|
||||||
{KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, DASH },
|
{KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, LALT(KC_MINS)},
|
||||||
{KC_DEL, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, GBP },
|
{KC_DEL, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, LALT(KC_3)},
|
||||||
{_______, KC_TILD, KC_GRV, KC_PLUS, KC_EQL, KC_PIPE, KC_BSLS, KC_LBRC, KC_RBRC, KC_LCBR, KC_RCBR, _______},
|
{_______, KC_TILD, KC_GRV, KC_PLUS, KC_EQL, KC_PIPE, KC_BSLS, KC_LBRC, KC_RBRC, KC_LCBR, KC_RCBR, _______},
|
||||||
{_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______}
|
{_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______}
|
||||||
},
|
},
|
||||||
|
@ -115,15 +109,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
* | | F11 | F12 | F13 | F14 | F15 | F16 | F17 | F18 | F19 | F20 | Vol- |
|
* | | F11 | F12 | F13 | F14 | F15 | F16 | F17 | F18 | F19 | F20 | Vol- |
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
* | | F21 | F22 | F23 | F24 | | | | | | | |
|
* | | F21 | F22 | F23 | F24 | | | Lock | | | | |
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
* | | | | | Prev | Mute | Play | Next | | | | |
|
* | | | | | Prev | Mute | Play | Next | | | | |
|
||||||
* `-----------------------------------------------------------------------------------'
|
* `-----------------------------------------------------------------------------------'
|
||||||
*/
|
*/
|
||||||
[_FUNC] = {
|
[_FUNC] = {
|
||||||
{RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, VOLUP },
|
{RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, S(LALT(KC_VOLU))},
|
||||||
{XXXXXXX, KC_F11, KC_F12, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, VOLDN },
|
{XXXXXXX, KC_F11, KC_F12, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, S(LALT(KC_VOLD))},
|
||||||
{_______, KC_F21, KC_F22, KC_F23, KC_F24, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______},
|
{_______, KC_F21, KC_F22, KC_F23, KC_F24, XXXXXXX, XXXXXXX, S(LCTL(KC_POWER)), XXXXXXX, XXXXXXX, XXXXXXX, _______},
|
||||||
{_______, _______, _______, _______, KC_MPRV, KC_MUTE, KC_MPLY, KC_MNXT, _______, _______, _______, _______}
|
{_______, _______, _______, _______, KC_MPRV, KC_MUTE, KC_MPLY, KC_MNXT, _______, _______, _______, _______}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -159,26 +153,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
break;
|
break;
|
||||||
case CMDLEFT:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
register_code(KC_LGUI);
|
|
||||||
register_code(KC_LEFT);
|
|
||||||
} else {
|
|
||||||
unregister_code(KC_LEFT);
|
|
||||||
unregister_code(KC_LGUI);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
case CMDRGHT:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
register_code(KC_LGUI);
|
|
||||||
register_code(KC_RGHT);
|
|
||||||
} else {
|
|
||||||
unregister_code(KC_RGHT);
|
|
||||||
unregister_code(KC_LGUI);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
case BELOW:
|
case BELOW:
|
||||||
if (record->event.pressed) {
|
if (record->event.pressed) {
|
||||||
register_code(KC_LGUI);
|
register_code(KC_LGUI);
|
||||||
|
@ -203,50 +177,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
break;
|
break;
|
||||||
case DASH:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
register_code(KC_LALT);
|
|
||||||
register_code(KC_MINS);
|
|
||||||
} else {
|
|
||||||
unregister_code(KC_MINS);
|
|
||||||
unregister_code(KC_LALT);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
case GBP:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
register_code(KC_LALT);
|
|
||||||
register_code(KC_3);
|
|
||||||
} else {
|
|
||||||
unregister_code(KC_3);
|
|
||||||
unregister_code(KC_LALT);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
case VOLUP:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
register_code(KC_LALT);
|
|
||||||
register_code(KC_LSFT);
|
|
||||||
register_code(KC_VOLU);
|
|
||||||
} else {
|
|
||||||
unregister_code(KC_VOLU);
|
|
||||||
unregister_code(KC_LSFT);
|
|
||||||
unregister_code(KC_LALT);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
case VOLDN:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
register_code(KC_LALT);
|
|
||||||
register_code(KC_LSFT);
|
|
||||||
register_code(KC_VOLD);
|
|
||||||
} else {
|
|
||||||
unregister_code(KC_VOLD);
|
|
||||||
unregister_code(KC_LSFT);
|
|
||||||
unregister_code(KC_LALT);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,9 +25,9 @@ We have five layers. A `BASE` layer, in colemak; a `MOVE` layer, with an arrow c
|
||||||
* ,-----------------------------------------------------------------------------------.
|
* ,-----------------------------------------------------------------------------------.
|
||||||
* | Esc | | Cmd-L| Up | Cmd-R| | | Cmd-L| Up | Cmd-R| | Esc |
|
* | Esc | | Cmd-L| Up | Cmd-R| | | Cmd-L| Up | Cmd-R| | Esc |
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
* | Del | | Left | Down | Right| | | Left | Down | Right| | Del |
|
* | Del | Caps | Left | Down | Right| | | Left | Down | Right| Caps | Del |
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
* | | | | Pg Up| Pg Dn| Above| | Pg Dn| Pg Up| | Caps | |
|
* | | | | Pg Up| Pg Dn| Above| | Pg Dn| Pg Up| | | |
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
* | | | | | | Below| | | | | | |
|
* | | | | | | Below| | | | | | |
|
||||||
* `-----------------------------------------------------------------------------------'
|
* `-----------------------------------------------------------------------------------'
|
||||||
|
@ -63,7 +63,7 @@ We have five layers. A `BASE` layer, in colemak; a `MOVE` layer, with an arrow c
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
* | | F11 | F12 | F13 | F14 | F15 | F16 | F17 | F18 | F19 | F20 | Vol- |
|
* | | F11 | F12 | F13 | F14 | F15 | F16 | F17 | F18 | F19 | F20 | Vol- |
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
* | | F21 | F22 | F23 | F24 | | | | | | | |
|
* | | F21 | F22 | F23 | F24 | | | Lock | | | | |
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
* | | | | | Prev | Mute | Play | Next | | | | |
|
* | | | | | Prev | Mute | Play | Next | | | | |
|
||||||
* `-----------------------------------------------------------------------------------'
|
* `-----------------------------------------------------------------------------------'
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
static uint8_t input_mode;
|
static uint8_t input_mode;
|
||||||
|
|
||||||
|
__attribute__((weak))
|
||||||
uint16_t hex_to_keycode(uint8_t hex)
|
uint16_t hex_to_keycode(uint8_t hex)
|
||||||
{
|
{
|
||||||
if (hex == 0x0) {
|
if (hex == 0x0) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user