qmk-firmware/keyboard/gh60/keymap_hasu.c

146 lines
8.1 KiB
C
Raw Normal View History

2013-11-21 08:32:45 +01:00
#include "keymap_common.h"
2012-12-26 18:41:32 +01:00
2013-11-21 11:32:17 +01:00
/*
* Hasu
*/
2013-11-21 08:32:45 +01:00
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
2013-02-20 02:40:07 +01:00
/* Keymap 0: Default Layer
2012-12-26 18:41:32 +01:00
* ,-----------------------------------------------------------.
2012-12-27 08:06:13 +01:00
* |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp |
2012-12-26 18:41:32 +01:00
* |-----------------------------------------------------------|
2012-12-27 08:06:13 +01:00
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \|
* |-----------------------------------------------------------|
* |Caps | A| S| D| F| G| H| J| K| L|Fn3| '|Return |
2012-12-26 18:41:32 +01:00
* |-----------------------------------------------------------|
2012-12-27 08:06:13 +01:00
* |Shift | Z| X| C| V| B| N| M| ,| .|Fn2|Shift |
2012-12-26 18:41:32 +01:00
* |-----------------------------------------------------------|
2012-12-31 19:19:34 +01:00
* |Ctrl|Gui |Alt | Space |Alt |Fn4 |Fn4 |Fn1 |
2012-12-26 18:41:32 +01:00
* `-----------------------------------------------------------'
2012-12-27 08:06:13 +01:00
*/
KEYMAP_ANSI(
ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, \
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, \
2013-02-21 02:15:08 +01:00
LCTL,A, S, D, F, G, H, J, K, L, FN2, QUOT, ENT, \
LSFT,Z, X, C, V, B, N, M, COMM,DOT, FN1, FN9, \
2013-02-21 02:15:08 +01:00
LCTL,LGUI,LALT, SPC, RALT,FN3, FN3, FN0),
2013-02-20 02:40:07 +01:00
/* Keymap 1: colemak */
KEYMAP_ANSI(
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, \
TAB, Q, W, F, P, G, J, L, U, Y, SCLN,LBRC,RBRC,BSLS, \
BSPC,A, R, S, T, D, H, N, E, I, O, QUOT, ENT, \
LSFT,Z, X, C, V, B, K, M, COMM,DOT, SLSH, RSFT, \
2013-02-21 02:15:08 +01:00
LCTL,LGUI,LALT, SPC, RALT,RGUI,APP, FN0),
2013-02-20 02:40:07 +01:00
/* Keymap 2: dvorak */
KEYMAP_ANSI(
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, LBRC,RBRC,BSPC, \
TAB, QUOT,COMM,DOT, P, Y, F, G, C, R, L, SLSH,EQL, BSLS, \
CAPS,A, O, E, U, I, D, H, T, N, S, MINS, ENT, \
LSFT,SCLN,Q, J, K, X, B, M, W, V, Z, RSFT, \
2013-02-21 02:15:08 +01:00
LCTL,LGUI,LALT, SPC, RALT,RGUI,APP, FN0),
/* Keymap 3: workman */
2013-02-20 02:40:07 +01:00
KEYMAP_ANSI(
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, \
TAB, Q, D, R, W, B, J, F, U, P, SCLN,LBRC,RBRC,BSLS, \
BSPC,A, S, H, T, G, Y, N, E, O, I, QUOT, ENT, \
LSFT,Z, X, M, C, V, K, L, COMM,DOT, SLSH, RSFT, \
2013-02-21 02:15:08 +01:00
LCTL,LGUI,LALT, SPC, RALT,RGUI,APP, FN0),
2013-02-20 02:40:07 +01:00
/* Overlay 4: HHKB mode
2012-12-26 18:41:32 +01:00
* ,-----------------------------------------------------------.
2012-12-27 08:06:13 +01:00
* |Esc| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Delete |
2012-12-26 18:41:32 +01:00
* |-----------------------------------------------------------|
2012-12-27 08:06:13 +01:00
* |Caps | | | | | | | |Psc|Slk|Pus|Up | |Inser|
* |-----------------------------------------------------------|
* |Contro|VoD|VoU|Mut| | | *| /|Hom|PgU|Lef|Rig|Enter |
2012-12-26 18:41:32 +01:00
* |-----------------------------------------------------------|
2012-12-27 08:06:13 +01:00
* |Shift | | | | | | +| -|End|PgD|Dow|Shift |
2012-12-26 18:41:32 +01:00
* |-----------------------------------------------------------|
2013-02-21 02:15:08 +01:00
* |Ctrl|Gui |Alt | Space |Alt |Gui |App | |
2012-12-26 18:41:32 +01:00
* `-----------------------------------------------------------'
2013-02-11 05:56:05 +01:00
*/
2012-12-27 08:06:13 +01:00
KEYMAP_ANSI(
GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, DEL, \
2013-02-20 02:40:07 +01:00
CAPS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,PSCR,SLCK,PAUS,UP, TRNS,INS, \
LCTL,VOLD,VOLU,MUTE,TRNS,TRNS,PAST,PSLS,HOME,PGUP,LEFT,RGHT, ENT, \
LSFT,TRNS,TRNS,TRNS,TRNS,TRNS,PPLS,PMNS,END, PGDN,DOWN, RSFT, \
LCTL,LGUI,LALT, SPC, RALT,RGUI,FN4, TRNS),
/* Overlay 5: Vi mode (Slash)
2012-12-26 18:41:32 +01:00
* ,-----------------------------------------------------------.
2012-12-27 08:06:13 +01:00
* | `| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Backsp |
2012-12-26 18:41:32 +01:00
* |-----------------------------------------------------------|
2012-12-27 08:06:13 +01:00
* |Tab |Hom|PgD|Up |PgU|End|Hom|PgD|PgU|End| | | | |
2012-12-26 18:41:32 +01:00
* |-----------------------------------------------------------|
2012-12-27 08:06:13 +01:00
* |Contro| |Lef|Dow|Rig| |Lef|Dow|Up |Rig| | |Return |
2012-12-26 18:41:32 +01:00
* |-----------------------------------------------------------|
2013-02-21 02:15:08 +01:00
* |Shift | | | | | |Hom|PgD|PgU|End| |Shift |
2012-12-27 08:06:13 +01:00
* |-----------------------------------------------------------|
* |Ctrl|Gui |Alt | Space |Alt |Gui |App |Ctrl|
2012-12-26 18:41:32 +01:00
* `-----------------------------------------------------------'
*/
2012-12-27 08:06:13 +01:00
KEYMAP_ANSI(
GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, BSPC, \
2013-02-20 02:40:07 +01:00
TAB, HOME,PGDN,UP, PGUP,END, HOME,PGDN,PGUP,END, TRNS,TRNS,TRNS,TRNS, \
LCTL,TRNS,LEFT,DOWN,RGHT,TRNS,LEFT,DOWN,UP, RGHT,TRNS,TRNS, ENT, \
2013-02-21 02:15:08 +01:00
LSFT,TRNS,TRNS,TRNS,TRNS,TRNS,HOME,PGDN,PGUP,END, TRNS, RSFT, \
2012-12-27 08:06:13 +01:00
LCTL,LGUI,LALT, SPC, RALT,RGUI,APP, RCTL),
/* Overlay 6: Mouse mode (Semicolon/App)
2012-12-26 18:41:32 +01:00
* ,-----------------------------------------------------------.
2012-12-27 08:06:13 +01:00
* | `| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Backsp |
2012-12-26 18:41:32 +01:00
* |-----------------------------------------------------------|
2012-12-31 19:19:34 +01:00
* |Tab | | | | | |MwL|MwD|MwU|MwR| | | | |
2012-12-26 18:41:32 +01:00
* |-----------------------------------------------------------|
2013-02-21 02:15:08 +01:00
* |Contro| |Ac0|Ac1|Ac1| |McL|McD|McU|McR| | |Return |
2012-12-26 18:41:32 +01:00
* |-----------------------------------------------------------|
2012-12-31 19:19:34 +01:00
* |Shift | | | | |Mb3|Mb2|Mb1|Mb4|Mb5| |Shift |
2012-12-27 08:06:13 +01:00
* |-----------------------------------------------------------|
2013-02-21 02:15:08 +01:00
* |Ctrl|Gui |Alt | Space | | | | |
2012-12-26 18:41:32 +01:00
* `-----------------------------------------------------------'
2013-02-11 05:56:05 +01:00
* Mc: Mouse Cursor / Mb: Mouse Button / Mw: Mouse Wheel
2012-12-26 18:41:32 +01:00
*/
2012-12-27 08:06:13 +01:00
KEYMAP_ANSI(
GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, BSPC, \
2013-02-20 02:40:07 +01:00
TAB, TRNS,TRNS,TRNS,TRNS,TRNS,WH_L,WH_D,WH_U,WH_R,TRNS,TRNS,TRNS,TRNS, \
2013-02-21 02:15:08 +01:00
LCTL,TRNS,ACL0,ACL1,ACL2,TRNS,MS_L,MS_D,MS_U,MS_R,TRNS,TRNS, ENT, \
2013-02-20 02:40:07 +01:00
LSFT,TRNS,TRNS,TRNS,TRNS,BTN3,BTN2,BTN1,BTN4,BTN5,TRNS, RSFT, \
2013-02-21 02:15:08 +01:00
LCTL,LGUI,LALT, BTN1, TRNS,TRNS,TRNS,RCTL),
/* Overlay 7: Layout selector
* ,-----------------------------------------------------------.
* | Lq| Lc| Ld| Lw| | | | | | | | | | |
* |-----------------------------------------------------------|
* | |Lq |Lw | | | | | | | | | | | |
* |-----------------------------------------------------------|
* | | | |Ld | | | | | | | | | |
* |-----------------------------------------------------------|
* | | | |Lc | | | | | | | | |
* |-----------------------------------------------------------|
* | | | | | | | | |
* `-----------------------------------------------------------'
* Lq: set Qwerty layout
* Lc: set Colemak layout
* Ld: set Dvorak layout
* Lw: set Workman layout
*/
KEYMAP_ANSI(
FN5, FN6, FN7, FN8, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
TRNS,FN5, FN8, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
TRNS,TRNS,TRNS,FN7, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \
TRNS,TRNS,TRNS,FN6, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \
TRNS,TRNS,TRNS, TRNS, TRNS,TRNS,TRNS,TRNS),
2012-12-26 18:41:32 +01:00
};
2013-02-12 09:08:51 +01:00
/*
* Fn action definition
*/
2013-11-21 08:32:45 +01:00
const uint16_t PROGMEM fn_actions[] = {
[0] = ACTION_LAYER_MOMENTARY(4),
[1] = ACTION_LAYER_TAP_KEY(5, KC_SLASH),
[2] = ACTION_LAYER_TAP_KEY(6, KC_SCLN),
[3] = ACTION_LAYER_MOMENTARY(6),
[4] = ACTION_LAYER_MOMENTARY(7), // to Layout selector
2013-03-04 18:42:28 +01:00
[5] = ACTION_DEFAULT_LAYER_SET(0), // set qwerty layout
[6] = ACTION_DEFAULT_LAYER_SET(1), // set colemak layout
[7] = ACTION_DEFAULT_LAYER_SET(2), // set dvorak layout
[8] = ACTION_DEFAULT_LAYER_SET(3), // set workman layout
2013-04-04 18:39:17 +02:00
[9] = ACTION_MODS_TAP_KEY(MOD_RSFT, KC_GRV),
2013-02-12 09:08:51 +01:00
};