diff options
author | Erez Zukerman <bulk@ezuk.org> | 2016-06-22 09:01:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-22 09:01:51 -0400 |
commit | 8c1bfdf0bd9aae13d8722fd107deca40ffc7932c (patch) | |
tree | 0eba6a7ccd873cbfbc75e2fa3ebc34041eb17140 /keyboards/ergodox_ez | |
parent | 98f0807359cfa78d25442b91ff4c5bbfc5679661 (diff) | |
parent | 2278956412ca7f970dc4d38a6c32d7b5301f9a90 (diff) |
Merge pull request #433 from algernon/ergodox-ez/algernon
ergodox_ez: Update the algernon keymap to v1.2
Diffstat (limited to 'keyboards/ergodox_ez')
-rw-r--r-- | keyboards/ergodox_ez/keymaps/algernon/Makefile | 18 | ||||
-rw-r--r-- | keyboards/ergodox_ez/keymaps/algernon/config.h | 2 | ||||
-rw-r--r-- | keyboards/ergodox_ez/keymaps/algernon/images/base-layer.png | bin | 96845 -> 105162 bytes | |||
-rw-r--r-- | keyboards/ergodox_ez/keymaps/algernon/images/emacs-layer.png | bin | 114267 -> 0 bytes | |||
-rw-r--r-- | keyboards/ergodox_ez/keymaps/algernon/images/experimental-layer.png | bin | 96956 -> 105172 bytes | |||
-rw-r--r-- | keyboards/ergodox_ez/keymaps/algernon/images/hun-layer.png | bin | 78720 -> 67924 bytes | |||
-rw-r--r-- | keyboards/ergodox_ez/keymaps/algernon/images/nav-n-media-layer.png | bin | 0 -> 94837 bytes | |||
-rw-r--r-- | keyboards/ergodox_ez/keymaps/algernon/images/one-handed-layer.png | bin | 85970 -> 91140 bytes | |||
-rw-r--r-- | keyboards/ergodox_ez/keymaps/algernon/images/steno-layer.png | bin | 65146 -> 69557 bytes | |||
-rw-r--r-- | keyboards/ergodox_ez/keymaps/algernon/keymap.c | 486 | ||||
-rw-r--r-- | keyboards/ergodox_ez/keymaps/algernon/readme.md | 176 |
11 files changed, 351 insertions, 331 deletions
diff --git a/keyboards/ergodox_ez/keymaps/algernon/Makefile b/keyboards/ergodox_ez/keymaps/algernon/Makefile index 3db507c8f2..cd7e9e9d2a 100644 --- a/keyboards/ergodox_ez/keymaps/algernon/Makefile +++ b/keyboards/ergodox_ez/keymaps/algernon/Makefile @@ -2,6 +2,24 @@ BOOTMAGIC_ENABLE=no COMMAND_ENABLE=no SLEEP_LED_ENABLE=no UNICODE_ENABLE=no +FORCE_NKRO ?= yes + +ifeq (${FORCE_NKRO},yes) +OPT_DEFS += -DFORCE_NKRO +endif + +KEYMAP_VERSION = $(shell \ + if [ -d "${KEYMAP_PATH}/.git" ]; then \ + cd "${KEYMAP_PATH}" && git describe --abbrev=6 --dirty --always --tags --match 'v*' 2>/dev/null; \ + else echo QMK; fi) + +KEYMAP_BRANCH = $(shell \ + if [ -d "${KEYMAP_PATH}/.git" ]; then \ + cd "${KEYMAP_PATH}"; \ + fi; \ + git rev-parse --abbrev-ref HEAD 2>/dev/null) + +OPT_DEFS += -DKEYMAP_VERSION=\"$(KEYMAP_VERSION)\\\#$(KEYMAP_BRANCH)\" ifndef QUANTUM_DIR include ../../../../Makefile diff --git a/keyboards/ergodox_ez/keymaps/algernon/config.h b/keyboards/ergodox_ez/keymaps/algernon/config.h index 4cb878ebce..9bb1025be5 100644 --- a/keyboards/ergodox_ez/keymaps/algernon/config.h +++ b/keyboards/ergodox_ez/keymaps/algernon/config.h @@ -24,6 +24,4 @@ #undef LEADER_TIMEOUT #define LEADER_TIMEOUT 1000 -#define FORCE_NKRO - #endif diff --git a/keyboards/ergodox_ez/keymaps/algernon/images/base-layer.png b/keyboards/ergodox_ez/keymaps/algernon/images/base-layer.png Binary files differindex 1a7c0f4805..c4e298b6b7 100644 --- a/keyboards/ergodox_ez/keymaps/algernon/images/base-layer.png +++ b/keyboards/ergodox_ez/keymaps/algernon/images/base-layer.png diff --git a/keyboards/ergodox_ez/keymaps/algernon/images/emacs-layer.png b/keyboards/ergodox_ez/keymaps/algernon/images/emacs-layer.png Binary files differdeleted file mode 100644 index 1aa23cc00e..0000000000 --- a/keyboards/ergodox_ez/keymaps/algernon/images/emacs-layer.png +++ /dev/null diff --git a/keyboards/ergodox_ez/keymaps/algernon/images/experimental-layer.png b/keyboards/ergodox_ez/keymaps/algernon/images/experimental-layer.png Binary files differindex c5e695b8c1..81155851b5 100644 --- a/keyboards/ergodox_ez/keymaps/algernon/images/experimental-layer.png +++ b/keyboards/ergodox_ez/keymaps/algernon/images/experimental-layer.png diff --git a/keyboards/ergodox_ez/keymaps/algernon/images/hun-layer.png b/keyboards/ergodox_ez/keymaps/algernon/images/hun-layer.png Binary files differindex f1e5f9ec07..104a9544d0 100644 --- a/keyboards/ergodox_ez/keymaps/algernon/images/hun-layer.png +++ b/keyboards/ergodox_ez/keymaps/algernon/images/hun-layer.png diff --git a/keyboards/ergodox_ez/keymaps/algernon/images/nav-n-media-layer.png b/keyboards/ergodox_ez/keymaps/algernon/images/nav-n-media-layer.png Binary files differnew file mode 100644 index 0000000000..16d29e124d --- /dev/null +++ b/keyboards/ergodox_ez/keymaps/algernon/images/nav-n-media-layer.png diff --git a/keyboards/ergodox_ez/keymaps/algernon/images/one-handed-layer.png b/keyboards/ergodox_ez/keymaps/algernon/images/one-handed-layer.png Binary files differindex 283559b3a9..698d11e5f2 100644 --- a/keyboards/ergodox_ez/keymaps/algernon/images/one-handed-layer.png +++ b/keyboards/ergodox_ez/keymaps/algernon/images/one-handed-layer.png diff --git a/keyboards/ergodox_ez/keymaps/algernon/images/steno-layer.png b/keyboards/ergodox_ez/keymaps/algernon/images/steno-layer.png Binary files differindex e747bfb414..fe3c03c932 100644 --- a/keyboards/ergodox_ez/keymaps/algernon/images/steno-layer.png +++ b/keyboards/ergodox_ez/keymaps/algernon/images/steno-layer.png diff --git a/keyboards/ergodox_ez/keymaps/algernon/keymap.c b/keyboards/ergodox_ez/keymaps/algernon/keymap.c index 4eea6874c7..fdc63a8136 100644 --- a/keyboards/ergodox_ez/keymaps/algernon/keymap.c +++ b/keyboards/ergodox_ez/keymaps/algernon/keymap.c @@ -15,13 +15,14 @@ enum { BASE = 0, + EXPRM, + ARRW, APPSEL, HUN, - EMACS, + NMDIA, OHLFT, OHRGT, PLVR, - EXPRM }; /* Macros */ @@ -33,7 +34,6 @@ enum { A_PLVR, A_ESC, A_MPN, - A_COLN, // Function / number keys KF_1, // 1, F1 @@ -61,17 +61,6 @@ enum { A_MDL, A_MDR, - // Emacs layer keys - AE_VIS, // Visual mode - AE_PSTDEL, // Paste/Delete - AE_CPYC, // Copy/Cut - AE_EMACS, // Emacs copy & paste mode - AE_TERM, // Terminal copy & paste mode - AE_OTHER, // Other copy & paste mode - AE_INS, // Insert mode - AE_OVR, // Overwrite mode - AE_APPND, // Append - // Hungarian layer keys HU_AA, // Á HU_OO, // Ó @@ -102,11 +91,13 @@ enum { F_CTRL }; -/* States & timers */ +/* Custom keycodes */ + +enum { + CT_CLN = 0x7101 +}; -uint8_t m_visual_state = 0; -static uint16_t m_cutdel_timer; -static uint16_t m_copypaste_timer; +/* States & timers */ uint16_t gui_timer = 0; @@ -123,13 +114,8 @@ uint16_t oh_left_blink_timer = 0; uint8_t oh_right_blink = 0; uint16_t oh_right_blink_timer = 0; -enum { - CP_EMACS = 0, - CP_TERM = 1, - CP_OTHER = 2, -}; - -uint8_t cp_mode = CP_EMACS; +uint8_t ct_cln_count = 0; +uint16_t ct_cln_timer = 0; /* The Keymap */ @@ -138,18 +124,18 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { /* Keymap 0: Base Layer * * ,-----------------------------------------------------. ,-----------------------------------------------------. - * | `~ | 1 F1 | 2 F2 | 3 F3 | 4 F4 | 5 F5 | Plvr | | Apps | 6 F6 | 7 F7 | 8 F8 | 9 F9 | 0 F10| F11 | + * | `~ | 1 F1 | 2 F2 | 3 F3 | 4 F4 | 5 F5 | Plvr | | 1HND | 6 F6 | 7 F7 | 8 F8 | 9 F9 | 0 F10| F11 | * |-----------+------+------+------+------+-------------| |------+------+------+------+------+------+-----------| - * | Next/Prev | ' | , | . | P | Y | [ | | ] | F | G | C | R | L | = | + * | Next/Prev | ' | , | . | P | Y | [ | | ] | F | G | C | R | L | \ | * |-----------+------+------+------+------+------| | | |------+------+------+------+------+-----------| - * | Tab | A | O | E | U | I |------| |------| D | H | T | N | S | \ | + * | Tab | A | O | E | U | I |------| |------| D | H | T | N | S | = | * |-----------+------+------+------+------+------| ( | | ) |------+------+------+------+------+-----------| * | Play/Pause| / | Q | J | K | X | | | | B | M | W | V | Z | Stop | * `-----------+------+------+------+------+-------------' `-------------+------+------+------+------+-----------' - * | Home | End | Down | Up | : | | - | Left | Right| PgUp | PgDn | + * | | | Left | Up | : | | - | Down | Rght | | | * `-----------------------------------' `-----------------------------------' * ,-------------. ,-------------. - * | LAlt | GUI | |EMACS | 1HND | + * | LAlt | GUI | | MDIA | ARRW | * ,------|------|------| |------+------+------. * | | | Ctrl | | LEAD | | | * |Backsp|LShift|------| |------| Enter| Space| @@ -162,25 +148,116 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { ,M(A_MPN) ,KC_QUOT ,KC_COMM ,KC_DOT ,KC_P ,KC_Y ,KC_LBRC ,KC_TAB ,KC_A ,KC_O ,KC_E ,KC_U ,KC_I ,KC_MPLY ,KC_SLSH ,KC_Q ,KC_J ,KC_K ,KC_X ,KC_LPRN -,KC_HOME ,KC_END ,KC_DOWN ,KC_UP ,M(A_COLN) +,KC_NO ,KC_NO ,KC_LEFT ,KC_UP ,CT_CLN ,F(F_ALT),F(F_GUI) ,F(F_CTRL) ,KC_BSPC,F(F_SFT),M(A_ESC) // right hand - ,KC_APP ,M(KF_6),M(KF_7),M(KF_8),M(KF_9) ,M(KF_10) ,KC_F11 - ,KC_RBRC ,KC_F ,KC_G ,KC_C ,KC_R ,KC_L ,KC_EQL - ,KC_D ,KC_H ,KC_T ,KC_N ,KC_S ,KC_BSLS - ,KC_RPRN ,KC_B ,KC_M ,KC_W ,KC_V ,KC_Z ,KC_MSTP - ,KC_MINS,KC_LEFT,KC_RGHT ,KC_PGUP ,KC_PGDN + ,M(OH_LEFT),M(KF_6),M(KF_7),M(KF_8),M(KF_9) ,M(KF_10) ,KC_F11 + ,KC_RBRC ,KC_F ,KC_G ,KC_C ,KC_R ,KC_L ,KC_BSLS + ,KC_D ,KC_H ,KC_T ,KC_N ,KC_S ,KC_EQL + ,KC_RPRN ,KC_B ,KC_M ,KC_W ,KC_V ,KC_Z ,KC_MSTP + ,KC_MINS,KC_DOWN,KC_RGHT ,KC_NO ,KC_NO - ,OSL(EMACS),M(OH_LEFT) + ,OSL(NMDIA),OSL(ARRW) ,KC_LEAD - ,F(F_HUN),KC_ENT ,KC_SPC + ,F(F_HUN) ,KC_ENT ,KC_SPC ), -/* Keymap 1: Application select layer +/* Keymap 1: Experimental layer + * + * ,-----------------------------------------------------. ,-----------------------------------------------------. + * | `~ | 1 F1 | 2 F2 | 3 F3 | 4 F4 | 5 F5 | Plvr | | 1HND | 6 F6 | 7 F7 | 8 F8 | 9 F9 | 0 F10| F11 | + * |-----------+------+------+------+------+-------------| |------+------+------+------+------+------+-----------| + * | Next/Prev | ' | , | . | P | Y | [ | | ] | L | F | C | R | J | = | + * |-----------+------+------+------+------+------| | | |------+------+------+------+------+-----------| + * | Tab | A | O | E | U | I |------| |------| D | H | T | N | S | \ | + * |-----------+------+------+------+------+------| ( | | ) |------+------+------+------+------+-----------| + * | Play/Pause| Z | G | V | K | X | | | | Q | M | W | B | / | Stop | + * `-----------+------+------+------+------+-------------' `-------------+------+------+------+------+-----------' + * | | | Left | Up | : | | - | Down | Rght | | | + * `-----------------------------------' `-----------------------------------' + * ,-------------. ,-------------. + * | LAlt | GUI | | MDIA | ARRW | + * ,------|------|------| |------+------+------. + * | | | Ctrl | | LEAD | | | + * |Backsp|LShift|------| |------| Enter| Space| + * | | | ESC | | HUN | | | + * `--------------------' `--------------------' + */ +[EXPRM] = KEYMAP( +// left hand + KC_GRV ,M(KF_1) ,M(KF_2) ,M(KF_3),M(KF_4),M(KF_5),M(A_PLVR) +,M(A_MPN) ,KC_QUOT ,KC_COMM ,KC_DOT ,KC_P ,KC_Y ,KC_LBRC +,KC_TAB ,KC_A ,KC_O ,KC_E ,KC_U ,KC_I +,KC_MPLY ,KC_Z ,KC_G ,KC_V ,KC_K ,KC_X ,KC_LPRN +,KC_NO ,KC_NO ,KC_LEFT ,KC_UP ,CT_CLN + + ,F(F_ALT),F(F_GUI) + ,F(F_CTRL) + ,KC_BSPC,F(F_SFT),M(A_ESC) + + // right hand + ,M(OH_LEFT),M(KF_6),M(KF_7),M(KF_8),M(KF_9) ,M(KF_10) ,KC_F11 + ,KC_RBRC ,KC_L ,KC_F ,KC_C ,KC_R ,KC_J ,KC_BSLS + ,KC_D ,KC_H ,KC_T ,KC_N ,KC_S ,KC_EQL + ,KC_RPRN ,KC_Q ,KC_M ,KC_W ,KC_B ,KC_SLSH ,KC_MSTP + ,KC_MINS,KC_DOWN,KC_RGHT ,KC_NO ,KC_NO + + ,OSL(NMDIA),OSL(ARRW) + ,KC_LEAD + ,F(F_HUN) ,KC_ENT ,KC_SPC + ), + +/* Keymap 2: Arrow layer + * + * ,-----------------------------------------------------. ,-----------------------------------------------------. + * | | | | | | | | | | | | | | | | + * |-----------+------+------+------+------+-------------| |------+------+------+------+------+------+-----------| + * | | | | | | | | | | | | | | | | + * |-----------+------+------+------+------+------| | | |------+------+------+------+------+-----------| + * | | | | | | |------| |------| | | | | | | + * |-----------+------+------+------+------+------| | | |------+------+------+------+------+-----------| + * | | | | | | | | | | | | | | | | + * `-----------+------+------+------+------+-------------' `-------------+------+------+------+------+-----------' + * | | | Home | PgUp | | | | PgDn | End | | | + * `----------------------------------' `----------------------------------' + * ,-------------. ,-------------. + * | | | | | | + * ,------|------|------| |------+------+------. + * | | | | | | | | + * | | |------| |------| | | + * | | | | | | | | + * `--------------------' `--------------------' + */ + +[ARRW] = KEYMAP( +// left hand + KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS +,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS +,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS +,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS +,KC_TRNS ,KC_TRNS ,KC_HOME ,KC_PGUP ,KC_TRNS + + ,KC_TRNS ,KC_TRNS + ,KC_TRNS + ,KC_TRNS ,KC_TRNS ,KC_TRNS + + // right hand + ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS + ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS + ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS + ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS + ,KC_TRNS ,KC_PGDN ,KC_END ,KC_TRNS ,KC_TRNS + + ,KC_TRNS ,KC_TRNS + ,KC_TRNS + ,KC_TRNS ,KC_TRNS ,KC_TRNS + ), + +/* Keymap 3: Application select layer * * ,-----------------------------------------------------. ,-----------------------------------------------------. * | |Music |Slack |Emacs |Term |Chrome| | | | | | | | | | @@ -227,7 +304,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { ), -/* Keymap 2: Hungarian Layer +/* Keymap 4: Hungarian Layer * * ,-----------------------------------------------------. ,-----------------------------------------------------. * | | | | | | | | | | | | | | | | @@ -251,73 +328,73 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [HUN] = KEYMAP( // left hand - KC_NO ,KC_NO ,KC_NO ,KC_NO ,KC_NO ,KC_NO ,KC_TRNS + KC_NO ,KC_NO ,KC_NO ,KC_NO ,KC_NO ,KC_NO ,KC_NO ,KC_NO ,KC_NO ,M(HU_OEE),KC_NO ,M(HU_UEE),KC_NO ,KC_NO ,KC_NO ,M(HU_AA),M(HU_OO) ,M(HU_EE),M(HU_UU) ,M(HU_II) -,KC_TRNS ,KC_NO ,M(HU_OE) ,KC_NO ,M(HU_UE) ,KC_NO ,KC_NO -,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_NO +,KC_NO ,KC_NO ,M(HU_OE) ,KC_NO ,M(HU_UE) ,KC_NO ,KC_NO +,KC_NO ,KC_NO ,KC_NO ,KC_NO ,KC_NO - ,KC_TRNS ,KC_TRNS - ,KC_TRNS - ,KC_TRNS ,KC_TRNS ,KC_TRNS + ,KC_NO ,KC_NO + ,KC_NO + ,KC_NO ,KC_TRNS ,KC_TRNS // right hand ,KC_TRNS ,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 ,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 - ,KC_NO ,KC_TRNS ,KC_TRNS ,KC_TRNS ,KC_TRNS + ,KC_NO ,KC_NO ,KC_NO ,KC_NO ,KC_NO ,KC_NO ,KC_NO ,KC_NO ,F(F_BSE),KC_TRNS ,KC_TRNS ), -/* Keymap 3: Spacemacs layer +/* Keymap 5: Navigation & Media layer * * ,-----------------------------------------------------. ,-----------------------------------------------------. - * | MS Slow | 1 F1 | 2 F2 | 3 F3 | 4 F4 | 5 F5 |ScrLCK| |ScrLCK| 6 F6 | 7 F7 | 8 F8 | 9 F9 | 0 F10| F11 | + * | MS Slow | | | | | |ScrLCK| |ScrLCK| | | | | | | * |-----------+------+------+------+------+-------------| |------+------+------+------+------+------+-----------| - * | MS Normal | | Home | Up | PgUp | |Visual| |Scroll| $ |MsUpL | MsUp |MsUpR | R |PrintScreen| - * |-----------+------+------+------+------+------| Mode | | Up |------+------+------+------+------+-----------| - * | MS Fast |APPEND| Left | Down | Right| INS |------| |------| D |MsLeft| MsDn |MsRght| | | - * |-----------+------+------+------+------+------| Cut | |Scroll|------+------+------+------+------+-----------| - * | Play/Pause| | End | Down | PgDn | X | Copy | | Down | |MsDnL | W |MsDnR | | Stop | + * | MS Normal | | Home | Up | PgUp | | | |Scroll| |MsUpL | MsUp |MsUpR | |PrintScreen| + * |-----------+------+------+------+------+------| | | Up |------+------+------+------+------+-----------| + * | MS Fast | | Left | Down | Right| |------| |------| |MsLeft| MsDn |MsRght| | | + * |-----------+------+------+------+------+------| | |Scroll|------+------+------+------+------+-----------| + * | Play/Pause| | End | Down | PgDn | | | | Down | |MsDnL | MsDn |MsDnR | | Stop | * `-----------+------+------+------+------+-------------' `-------------+------+------+------+------+-----------' - * |EmacsM|TermM |OtherM| | | |Vol Up|Vol Dn| Mute | | | + * | | | | | | | | | | | | * `----------------------------------' `----------------------------------' * ,-------------. ,-------------. - * | Alt | GUI | | BASE | MClk | + * | Mute | VlUp | | BASE | MClk | * ,------|------|------| |------+------+------. - * |Delete| | Ctrl | | Prev |Left |Right | - * | |LShift|------| |------| Click| Click| - * |Paste | | ESC | | Next | | | + * | | | VlDn | | Prev |Left |Right | + * | SPC | Enter|------| |------| Click| Click| + * | | | ESC | | Next | | | * `--------------------' `--------------------' */ -[EMACS] = KEYMAP( +[NMDIA] = KEYMAP( // left hand - KC_ACL0 ,M(KF_1) ,M(KF_2) ,M(KF_3) ,M(KF_4) ,M(KF_5) ,LGUI(KC_L) -,KC_ACL1 ,KC_NO ,KC_HOME ,KC_UP ,KC_PGUP ,KC_NO ,M(AE_VIS) -,KC_ACL2 ,M(AE_APPND) ,KC_LEFT ,KC_DOWN ,KC_RIGHT,M(AE_INS) -,KC_MPLY ,KC_NO ,KC_END ,KC_DOWN ,KC_PGDN ,KC_X ,M(AE_CPYC) -,M(AE_EMACS),M(AE_TERM) ,M(AE_OTHER),KC_NO ,KC_NO - ,KC_TRNS ,KC_TRNS - ,KC_TRNS - ,M(AE_PSTDEL),KC_TRNS ,KC_TRNS + KC_ACL0 ,KC_NO ,KC_NO ,KC_NO ,KC_NO ,KC_NO ,LGUI(KC_L) +,KC_ACL1 ,KC_NO ,KC_HOME ,KC_UP ,KC_PGUP ,KC_NO ,KC_NO +,KC_ACL2 ,KC_NO ,KC_LEFT ,KC_DOWN ,KC_RIGHT,KC_NO +,KC_MPLY ,KC_NO ,KC_END ,KC_DOWN ,KC_PGDN ,KC_NO ,KC_NO +,KC_NO ,KC_NO ,KC_NO ,KC_NO ,KC_NO + ,KC_MUTE ,KC_VOLU + ,KC_VOLD + ,KC_SPC,KC_ENTER,M(A_ESC) // right hand - ,LGUI(KC_L),M(KF_6) ,M(KF_7) ,M(KF_8) ,M(KF_9) ,M(KF_10) ,M(KF_11) - ,KC_WH_U ,KC_DLR ,M(A_MUL),KC_MS_U ,M(A_MUR),M(AE_OVR),KC_PSCR - ,KC_D ,KC_MS_L ,KC_MS_D ,KC_MS_R ,KC_NO ,KC_NO - ,KC_WH_D ,KC_NO ,M(A_MDL),KC_W ,M(A_MDR),KC_NO ,KC_MSTP - ,KC_VOLU ,KC_VOLD ,KC_MUTE ,KC_NO ,KC_NO + ,LGUI(KC_L),KC_NO ,KC_NO ,KC_NO ,KC_NO ,KC_NO ,KC_NO + ,KC_WH_U ,KC_NO ,M(A_MUL),KC_MS_U ,M(A_MUR),KC_NO ,KC_PSCR + ,KC_NO ,KC_MS_L ,KC_MS_D ,KC_MS_R ,KC_NO ,KC_NO + ,KC_WH_D ,KC_NO ,M(A_MDL),KC_MS_D ,M(A_MDR),KC_NO ,KC_MSTP + ,KC_NO ,KC_NO ,KC_NO ,KC_NO ,KC_NO ,KC_TRNS ,KC_MS_BTN3 ,KC_MPRV ,KC_MNXT ,KC_BTN1 ,KC_BTN2 ), -/* Keymap 5: One-handed, left side +/* Keymap 6: One-handed, left side * * ,-----------------------------------------------------. * | `~ | 1 F1 | 2 F2 | 3 F3 | 4 F4 | 5 F5 |A BSE| @@ -362,7 +439,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { ,KC_NO ,KC_NO ,KC_NO ), -/* Keymap 6: One-handed, right side +/* Keymap 7: One-handed, right side * * ,-----------------------------------------------------. * | = F11 | 0 F10| 9 F9 | 8 F8 | 7 F7 | 6 F6 |A BSE| @@ -407,15 +484,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { ,KC_NO ,KC_NO ,KC_NO ), -/* Keymap 7: Steno for Plover +/* Keymap 8: Steno for Plover * * ,--------------------------------------------------. ,--------------------------------------------------. * | | | | | | | BASE | | | | | | | | | * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | | # | # | # | # | # | | | | # | # | # | # | # | # | + * | | # | # | # | # | # | # | | # | # | # | # | # | # | # | * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| * | | | T | P | H | |------| |------| | F | P | L | T | D | - * |--------+ S +------+------+------+ * | | | | * +------+------+------+------+--------| + * |--------+ S +------+------+------+ * | * | | * | * +------+------+------+------+--------| * | | | K | W | R | | | | | | R | B | G | S | Z | * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' * | | | | | | | | | | | | @@ -432,9 +509,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [PLVR] = KEYMAP( // left hand KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, M(A_PLVR), -KC_NO, PV_NUM, PV_NUM, PV_NUM, PV_NUM, PV_NUM, KC_NO, +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_LK, PV_LW, PV_LR, PV_STAR, KC_NO, +KC_NO, PV_LS, PV_LK, PV_LW, PV_LR, PV_STAR, PV_STAR, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, @@ -442,61 +519,15 @@ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, // right hand 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, + 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, - KC_NO, PV_STAR, PV_RR, PV_RB, PV_RG, PV_RS, PV_RZ, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, + PV_STAR, PV_STAR, PV_RR, PV_RB, PV_RG, PV_RS, PV_RZ, + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,PV_E, PV_U ), -/* Keymap 8: Experimental layer - * - * ,-----------------------------------------------------. ,-----------------------------------------------------. - * | `~ | 1 F1 | 2 F2 | 3 F3 | 4 F4 | 5 F5 | Plvr | | Apps | 6 F6 | 7 F7 | 8 F8 | 9 F9 | 0 F10| F11 | - * |-----------+------+------+------+------+-------------| |------+------+------+------+------+------+-----------| - * | Next/Prev | ' | , | . | P | Y | [ | | ] | Q | F | C | R | J | = | - * |-----------+------+------+------+------+------| | | |------+------+------+------+------+-----------| - * | Tab | A | O | E | U | I |------| |------| D | H | T | N | S | \ | - * |-----------+------+------+------+------+------| ( | | ) |------+------+------+------+------+-----------| - * | Play/Pause| Z | K | V | G | X | | | | L | M | W | B | / | Stop | - * `-----------+------+------+------+------+-------------' `-------------+------+------+------+------+-----------' - * | Home | End | Down | Up | : | | - | Left | Right| PgUp | PgDn | - * `-----------------------------------' `-----------------------------------' - * ,-------------. ,-------------. - * | LAlt | GUI | |EMACS | 1HND | - * ,------|------|------| |------+------+------. - * | | | Ctrl | | LEAD | | | - * |Backsp|LShift|------| |------| Enter| Space| - * | | | ESC | | HUN | | | - * `--------------------' `--------------------' - */ -[EXPRM] = KEYMAP( -// left hand - KC_GRV ,M(KF_1) ,M(KF_2) ,M(KF_3),M(KF_4),M(KF_5),M(A_PLVR) -,M(A_MPN) ,KC_QUOT ,KC_COMM ,KC_DOT ,KC_P ,KC_Y ,KC_LBRC -,KC_TAB ,KC_A ,KC_O ,KC_E ,KC_U ,KC_I -,KC_MPLY ,KC_Z ,KC_K ,KC_V ,KC_G ,KC_X ,KC_LPRN -,KC_HOME ,KC_END ,KC_DOWN ,KC_UP ,M(A_COLN) - - ,F(F_ALT),F(F_GUI) - ,F(F_CTRL) - ,KC_BSPC,F(F_SFT),M(A_ESC) - - // right hand - ,KC_APP ,M(KF_6),M(KF_7),M(KF_8),M(KF_9) ,M(KF_10) ,KC_F11 - ,KC_RBRC ,KC_Q ,KC_F ,KC_C ,KC_R ,KC_J ,KC_EQL - ,KC_D ,KC_H ,KC_T ,KC_N ,KC_S ,KC_BSLS - ,KC_RPRN ,KC_L ,KC_M ,KC_W ,KC_B ,KC_SLSH ,KC_MSTP - ,KC_MINS,KC_LEFT,KC_RGHT ,KC_PGUP ,KC_PGDN - - ,OSL(EMACS),M(OH_LEFT) - ,KC_LEAD - ,F(F_HUN),KC_ENT ,KC_SPC - ), - - }; const uint16_t PROGMEM fn_actions[] = { @@ -616,26 +647,6 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) } break; - case A_COLN: - if (keyboard_report->mods & MOD_BIT(KC_LSFT) || - ((get_oneshot_mods() & MOD_BIT(KC_LSFT)) && !has_oneshot_mods_timed_out())) { - int oneshot = ((get_oneshot_mods() & MOD_BIT(KC_LSFT)) && !has_oneshot_mods_timed_out()); - - if (record->event.pressed) { - if (oneshot) - clear_oneshot_mods (); - unregister_code (KC_LSFT); - - register_code (KC_SCLN); - unregister_code (KC_SCLN); - if (!oneshot) - register_code (KC_LSFT); - } - } else { - return MACRODOWN (D(RSFT), T(SCLN), U(RSFT), END); - } - break; - case A_MPN: if (record->event.pressed) { if (keyboard_report->mods & MOD_BIT(KC_LSFT) || @@ -722,126 +733,6 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) mousekey_send(); break; - /* EMACS layer stuff */ - case AE_EMACS: - if (record->event.pressed) { - cp_mode = CP_EMACS; - } - break; - - case AE_TERM: - if (record->event.pressed) { - cp_mode = CP_TERM; - } - break; - - case AE_OTHER: - if (record->event.pressed) { - cp_mode = CP_OTHER; - } - break; - - case AE_VIS: - if (cp_mode == CP_EMACS && record->event.pressed) { - return MACRO(T(V), END); - } - break; - - case AE_CPYC: - if (record->event.pressed) { - m_copypaste_timer = timer_read (); - } else { - if (timer_elapsed (m_copypaste_timer) > TAPPING_TERM) { - // Long press: Cut - switch (cp_mode) { - case CP_EMACS: - return MACRO(T(X), END); - break; - case CP_TERM: - return MACRO(D(RCTRL), D(RSFT), T(X), U(RSFT), U(RCTRL), END); - break; - case CP_OTHER: - return MACRO(D(RCTRL), T(X), U(RCTRL), END); - break; - } - } else { - // Short press: Copy - switch (cp_mode) { - case CP_EMACS: - return MACRO(T(Y), END); - break; - case CP_TERM: - return MACRO(D(RCTRL), D(RSFT), T(C), U(RSFT), U(RCTRL), END); - break; - case CP_OTHER: - return MACRO(D(RCTRL), T(C), U(RCTRL), END); - break; - } - } - } - break; - - case AE_PSTDEL: - if (record->event.pressed) { - m_cutdel_timer = timer_read (); - } else { - if (timer_elapsed (m_cutdel_timer) > TAPPING_TERM) { - // Long press: Delete - switch (cp_mode) { - case CP_EMACS: - return MACRO(T(D), END); - break; - case CP_TERM: - case CP_OTHER: - return MACRO(T(DEL), END); - break; - } - } else { - // Short press: Paste - switch (cp_mode) { - case CP_EMACS: - if (keyboard_report->mods & MOD_BIT(KC_RSFT)) { - unregister_code (KC_RSFT); - return MACRO(U(RSFT), T(RBRC), T(P), D(RSFT), END); - } - else - return MACRO(T(P), END); - break; - case CP_TERM: - return MACRO(D(RCTRL), D(RSFT), T(V), U(RSFT), U(RCTRL), END); - break; - case CP_OTHER: - return MACRO(D(RCTRL), T(V), U(RCTRL), END); - break; - } - } - } - break; - - case AE_INS: - if (record->event.pressed) { - return MACRO(T(I), END); - } else { - lay |