3 // KLE here : http://www.keyboard-layout-editor.com/#/gists/0733eca6b4cb88ff9d7de746803f4039
5 #include QMK_KEYBOARD_H
7 extern keymap_config_t keymap_config;
9 // Each layer gets a name for readability, which is then used in the keymap matrix below.
10 // The underscores don't mean anything - you can have a layer called STUFF or any other name.
11 // Layer names don't all need to be of the same length, obviously, and you can also skip them
12 // entirely and just use numbers.
24 // Fillers to make layering more clear
29 #define KC_LOWR MO(_LOWER)
30 #define KC_RASE MO(_RAISE)
31 #define KC_ENTS MT(MOD_LSFT, KC_ENT)
32 #define KC_ESCC MT(MOD_LCTL, KC_ESC)
33 #define KC_GRVF LT(_FN3, KC_GRV)
34 #define KC_CAPW LGUI(LSFT(KC_3)) // Capture whole screen
35 #define KC_CPYW LGUI(LSFT(LCTL(KC_3))) // Copy whole screen
36 #define KC_CAPP LGUI(LSFT(KC_4)) // Capture portion of screen
37 #define KC_CPYP LGUI(LSFT(LCTL(KC_4))) // Copy portion of screen
38 #define KC_RTOG RGB_TOG
39 #define KC_RMOD RGB_MOD
40 #define KC_RHUI RGB_HUI
41 #define KC_RHUD RGB_HUD
42 #define KC_RSAI RGB_SAI
43 #define KC_RSAD RGB_SAD
44 #define KC_RVAI RGB_VAI
45 #define KC_RVAD RGB_VAD
47 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
49 [_QWERTY] = LAYOUT_kc(
50 //,----+----+----+----+----+----+----+----+----+----+----+----+----+----.
51 TAB , Q , W , E , R , T ,LPRN,RPRN, Y , U , I , O , P ,MINS,
52 //|----+----+----+----+----+----+----+----+----+----+----+----+----+----|
53 ESCC, A , S , D , F , G ,LBRC,RBRC, H , J , K , L ,SCLN,QUOT,
54 //|----+----+----+----+----+----+----+----+----+----+----+----+----+----|
55 LSFT, Z , X , C , V , B ,LCBR,RCBR, N , M ,COMM,DOT ,SLSH,ENTS,
56 //|----+----+----+----+----+----+----+----+----+----+----+----+----+----|
57 GRVF,LCTL,LALT,LGUI,LOWR,SPC ,SPC ,BSPC,BSPC,RASE,LEFT,DOWN, UP ,RGHT
58 //`----+----+----+----+----+----+----+----+----+----+----+----+----+----'
63 //,----+----+----+----+----+----+----+----+----+----+----+----+----+----.
64 , 1 , 2 , 3 , 4 , 5 ,LPRN,RPRN, 6 , 7 , 8 , 9 , 0 , ,
65 //|----+----+----+----+----+----+----+----+----+----+----+----+----+----|
66 DEL ,CAPP,LEFT,RGHT, UP ,LBRC,LBRC,RBRC,RBRC, P4 , P5 , P6 ,PLUS,PIPE,
67 //|----+----+----+----+----+----+----+----+----+----+----+----+----+----|
68 ,CPYP, , ,DOWN,LCBR,LCBR,RCBR,RCBR, P1 , P2 , P3 ,MINS, ,
69 //|----+----+----+----+----+----+----+----+----+----+----+----+----+----|
70 , , , , , , ,DEL ,DEL , , P0 ,PDOT, ,
71 //`----+----+----+----+----+----+----+----+----+----+----+----+----+----'
75 //,----+----+----+----+----+----+----+----+----+----+----+----+----+----.
76 ,EXLM, AT ,HASH,DLR ,PERC, , ,CIRC,AMPR,ASTR,LPRN,RPRN, ,
77 //|----+----+----+----+----+----+----+----+----+----+----+----+----+----|
78 DEL ,MPRV,MNXT,VOLU,PGUP,UNDS, , ,EQL ,HOME, , , ,BSLS,
79 //|----+----+----+----+----+----+----+----+----+----+----+----+----+----|
80 MUTE,MSTP,MPLY,VOLD,PGDN,MINS, , ,PLUS,END , , , , ,
81 //|----+----+----+----+----+----+----+----+----+----+----+----+----+----|
82 , , , , , , , , , , , , ,
83 //`----+----+----+----+----+----+----+----+----+----+----+----+----+----'
87 //,----+----+----+----+----+----+----+----+----+----+----+----+----+----.
88 F12 , F1 , F2 , F3 , F4 , F5 , , , F6 , F7 , F8 , F9 ,F10 ,F11 ,
89 //|----+----+----+----+----+----+----+----+----+----+----+----+----+----|
90 RTOG,RMOD,RHUI,RSAI,RVAI, , , , , , , , , ,
91 //|----+----+----+----+----+----+----+----+----+----+----+----+----+----|
92 RST ,DBUG,RHUD,RSAD,RVAD, , , , , , , , , ,
93 //|----+----+----+----+----+----+----+----+----+----+----+----+----+----|
94 , , , , , , , , , , , , ,
95 //`----+----+----+----+----+----+----+----+----+----+----+----+----+----'
100 void persistant_default_layer_set(uint16_t default_layer) {
101 eeconfig_update_default_layer(default_layer);
102 default_layer_set(default_layer);
105 bool process_record_user(uint16_t keycode, keyrecord_t *record) {
108 if (record->event.pressed) {
109 persistant_default_layer_set(1UL<<_QWERTY);