You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qmk_firmware/keyboard/atomic/keymaps/default.c

96 lines
7.5 KiB
C

#include "atomic.h"
#define _QW 0
#define _CM 1
#define _DV 2
#define _LW 3
#define _RS 4
// ROW 1 OPTIONS
// .--------------------------------------------------------------------------------------------------------------------------------------.
// | | | | | | | | | | | | | | | |
// '--------------------------------------------------------------------------------------------------------------------------------------'
// .- 2u ------------.
// | X |
// '-----------------'
// ROW 2 OPTIONS
// .--------------------------------------------------------------------------------------------------------------------------------------.
// | | | | | | | | | | | | | | | |
// '--------------------------------------------------------------------------------------------------------------------------------------'
// .- 2u ------------. .- 2u ------------.
// | X | | X |
// '-----------------' '-----------------'
// ROW 3 OPTIONS
// .--------------------------------------------------------------------------------------------------------------------------------------.
// | | | | | | | | | | | | | | | |
// '--------------------------------------------------------------------------------------------------------------------------------------'
// .- 2u ------------. .- 2u ------------.
// | X | | X |
// '-----------------' '-----------------'
// .- 2u ------------.
// | X |
// '-----------------'
// ROW 4 OPTIONS
// .--------------------------------------------------------------------------------------------------------------------------------------.
// | | | | | | | | | | | | | | | |
// '--------------------------------------------------------------------------------------------------------------------------------------'
// .- 2u ------------.
// | X |
// '-----------------'
// .- 2u ------------. .- 2u ------------.
// | X | | X |
// '-----------------' '-----------------'
// .- 2u ------------.
// | X |
// '-----------------'
// ROW 5 OPTIONS
// .--------------------------------------------------------------------------------------------------------------------------------------.
// | | | | | | | | | | | | | | | |
// '--------------------------------------------------------------------------------------------------------------------------------------'
// .- 1.25u --+ 1.25u ------- 1.25u +--- 1.25u --- 2u -------------- 1.25u ---- 1.25u ------ 1.25u +---- 1.25u .
// | X | X | X | X | X | X | X | X | X |
// '-----------------------------------------------------------------------------------------------------------'
// .- 2u ------------.
// | X |
// '-----------------'
// .--------------------- 6.25u ----------------------------.
// | X |
// '--------------------------------------------------------'
// .----------------------- 6.25u ---------------------------- 1.25u ---- 1.25u ---- 1.25u ------ 1.25u +-- 1.25u --.
// | X | X | X | X | X | X |
// '----------------------------------------------------------------------------------------------------------------'
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_QW] = { /* Qwerty */
{ KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL },
{ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL },
{ KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_ENT, KC_PGUP },
{ KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_RSFT, KC_UP, KC_PGDN },
{ BL_STEP, KC_LCTL, KC_LALT, KC_LGUI, KC_LGUI, KC_SPC, KC_SPC, KC_RGUI, KC_RGUI, KC_RALT, KC_RCTL, BL_STEP, KC_LEFT, KC_DOWN, KC_RGHT },
}
};
const uint16_t PROGMEM fn_actions[] = {
[1] = ACTION_LAYER_MOMENTARY(2), // to RAISE
[2] = ACTION_LAYER_MOMENTARY(3), // to LOWER
[3] = ACTION_DEFAULT_LAYER_SET(0),
[4] = ACTION_DEFAULT_LAYER_SET(1),
};
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
{
// MACRODOWN only works in this function
switch(id) {
case 0:
return MACRODOWN(TYPE(KC_T), END);
break;
}
return MACRO_NONE;
};