Skip to content

Commit

Permalink
Merge pull request qmk#2 from bruceme/master
Browse files Browse the repository at this point in the history
added key map with Colemak layer with a Kenesis flavor
  • Loading branch information
tshort authored Jun 12, 2017
2 parents d5962b9 + 7575358 commit 0a42aec
Show file tree
Hide file tree
Showing 2 changed files with 139 additions and 0 deletions.
25 changes: 25 additions & 0 deletions keyboards/dactyl-manuform/keymaps/4x5-fauxnesis/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
Copyright 2012 Jun Wako <[email protected]>
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/>.
*/


#define USE_SERIAL

// #define MASTER_LEFT
// #define MASTER_RIGHT
#define EE_HANDS

#include "../../config.h"
114 changes: 114 additions & 0 deletions keyboards/dactyl-manuform/keymaps/4x5-fauxnesis/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
#include "dactyl-manuform.h"
#include "action_layer.h"
#include "eeconfig.h"

extern keymap_config_t keymap_config;

// Each layer gets a name for readability, which is then used in the keymap matrix below.
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
// Layer names don't all need to be of the same length, obviously, and you can also skip them
// entirely and just use numbers.
#define _QWERTY 0
#define _COLEMAK 1
#define _MOVE 2
#define _SYM 3
#define _FN 4

// Fillers to make layering more clear
#define _______ KC_TRNS
#define XXXXXXX KC_NO

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_QWERTY] = KEYMAP_4x5(
// left hand
KC_Q, KC_W, KC_E, KC_R, KC_T,
KC_A, KC_S, KC_D, KC_F, KC_G,
SFT_T(KC_Z), KC_X, KC_C, KC_V, KC_B,
KC_LEFT, KC_RIGHT,
LT(_SYM, KC_BSPC), SFT_T(KC_DEL),
KC_LPRN, CTL_T(KC_ESC),
KC_LCBR, LT(_FN, KC_BSLS),
// right hand
KC_Y, KC_U, KC_I, KC_O, KC_P,
KC_H, KC_J, KC_K, KC_L, KC_QUOT,
KC_N, KC_M, KC_COMM, KC_DOT, SFT_T(KC_SLSH),
KC_UP, KC_DOWN,
ALT_T(KC_ENT), LT(_SYM, KC_SPC),
GUI_T(KC_SCLN), KC_RCBR,
LT(_MOVE, KC_TAB), KC_RPRN),
[_COLEMAK] = KEYMAP_4x5(
// left hand
KC_Q, KC_W, KC_F, KC_P, KC_G,
KC_A, KC_R, KC_S, KC_T, KC_D,
SFT_T(KC_Z), KC_X, KC_C, KC_V, KC_B,
KC_LEFT, KC_RIGHT,
LT(_SYM, KC_BSPC), SFT_T(KC_DEL),
KC_LPRN, CTL_T(KC_ESC),
KC_LCBR, LT(_FN, KC_BSLS),
// right hand
KC_J, KC_L, KC_U, KC_Y, KC_QUOT,
KC_H, KC_N, KC_E, KC_I, KC_O,
KC_K, KC_M, KC_COMM, KC_DOT, SFT_T(KC_SLSH),
KC_UP, KC_DOWN,
ALT_T(KC_ENT), LT(_SYM, KC_SPC),
GUI_T(KC_SCLN), KC_RCBR,
LT(_MOVE, KC_TAB), KC_RPRN),
[_SYM] = KEYMAP_4x5(
// left hand
KC_PIPE, KC_EXLM, KC_LCBR, KC_RCBR, KC_AT,
KC_AMPR, KC_HASH, KC_LPRN, KC_RPRN, KC_DLR,
KC_SCLN, KC_PERC, KC_LBRC, KC_RBRC, KC_BSLS,
KC_GRV, KC_TAB,
LT(_SYM, KC_DEL), SFT_T(KC_ENT),
LT(_MOVE, KC_SPC), CTL_T(KC_ESC),
KC_BTN1, LT(_FN, KC_TAB),
// right hand
KC_PLUS, KC_7, KC_8, KC_9, KC_CIRC,
KC_EQL, KC_4, KC_5, KC_6, KC_ASTR,
KC_MINS, KC_1, KC_2, KC_3, KC_SLSH,
KC_0, KC_DOT,
LT(_MOVE, KC_SPC), LT(_SYM, KC_BSPC),
CTL_T(KC_PGUP), GUI_T(KC_PGDN),
KC_LALT, KC_DQT),
[_MOVE] = KEYMAP_4x5(
// left hand
RESET, KC_WH_U, KC_MS_U, KC_WH_D, KC_WH_U,
KC_BTN3, KC_MS_L, KC_MS_D, KC_MS_R, KC_LGUI,
KC_BTN1, KC_BTN5, KC_BTN2, KC_BTN3, KC_WH_D,
KC_GRV, KC_TAB,
LT(_SYM, KC_DEL), SFT_T(KC_ENT),
LT(_MOVE, KC_SPC), CTL_T(KC_ESC),
KC_BTN1, LT(_FN, KC_TAB),
// right hand
KC_HOME, KC_PGUP, KC_PGDN, KC_END, TO(_QWERTY),
KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, TO(_COLEMAK),
KC_CAPS, KC_DEL, KC_DEL, LALT(KC_TAB), RESET,
KC_MINS, KC_SCLN,
LT(_MOVE, KC_SPC), LT(_SYM, KC_BSPC),
CTL_T(KC_PGUP), GUI_T(KC_PGDN),
KC_LALT, KC_DQT),
[_FN] = KEYMAP_4x5(
// left hand
KC_F1, KC_F2, KC_F3, KC_F4, KC_WH_U,
KC_F5, KC_F6, KC_F7, KC_F8, KC_LGUI,
KC_F9, KC_F10, KC_F11, KC_F12, KC_WH_D,
KC_GRV, KC_TAB,
LT(_SYM, KC_DEL), SFT_T(KC_ENT),
LT(_MOVE, KC_SPC), CTL_T(KC_ESC),
KC_BTN1, LT(_FN, KC_TAB),
// right hand
_______, _______, _______, _______, _______,
KC_CALC, KC_MAIL, KC_MYCM, KC_WHOM, _______,
_______, _______, _______, _______, _______,
KC_MINS, KC_SCLN,
LT(_MOVE, KC_SPC), LT(_SYM, KC_BSPC),
CTL_T(KC_PGUP), GUI_T(KC_PGDN),
KC_LALT, KC_DQT),
};



void persistant_default_layer_set(uint16_t default_layer) {
eeconfig_update_default_layer(default_layer);
default_layer_set(default_layer);
}

0 comments on commit 0a42aec

Please sign in to comment.