qmk-firmware/keyboards/melody96/keymaps/konstantin/keymap.c

68 lines
7.2 KiB
C
Raw Normal View History

2019-01-11 07:55:47 +01:00
#include QMK_KEYBOARD_H
#include "konstantin.h"
enum keycodes_keymap {
RGB_SET = RANGE_KEYMAP,
};
bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case RGB_SET:
rgblight_sethsv(GODSPEED_BLUE.h, GODSPEED_BLUE.s, GODSPEED_BLUE.v);
return false;
default:
return true;
}
}
2019-01-11 07:55:47 +01:00
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Base layer
*
* EscF1 F2 F3 F4 F5 F6 F7 F8 F9 F10F11F12PScInsHomEndPgUPgD
*
* ` 1 2 3 4 5 6 7 8 9 0 - = \ DelNLkP/ P* P-
*
* Tab Q W E R T Y U I O P [ ] Bspc P7 P8 P9
* P+
* FnCaps A S D F G H J K L ; ' Enter P4 P5 P6
*
* LSftRAG Z X C V B N M , . / RShift P1 P2 P3
* PEn
* LCtlLGuiLAlt Space RAlGuRCtrl P0 P.
*
*/
[L_BASE] = LAYOUT( \
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_INS, KC_HOME, KC_END, KC_PGUP, KC_PGDN,
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_BSLS, KC_DEL, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
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_BSPC, KC_P7, KC_P8, KC_P9, XXXXXXX,
FN_CAPS, 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_P4, KC_P5, KC_P6, KC_PPLS,
KC_LSFT, RAL_RGU, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, XXXXXXX,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, RAL_RGU, XXXXXXX, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT
),
/* Function layer
*
*
*
* RTg ÷ ×
2019-01-11 07:55:47 +01:00
*
* M4 M2 M M1 M3 M5 UCM ClearRH+RS+RV+
* RSt
* M M M MW RH-RS-RV-
2019-01-11 07:55:47 +01:00
*
* MA0MA2MWMW Vo-Vo+Mut PgURMBRMKRMG
* RMP
* DtPRDtNA MW App HomPgDEndRMRRMF
2019-01-11 07:55:47 +01:00
*
*/
[L_FN] = LAYOUT( \
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_TOG, DIVIDE, TIMES, MINUS,
KC_BTN4, KC_BTN2, KC_MS_U, KC_BTN1, KC_BTN3, KC_BTN5, _______, UC_MOD, _______, _______, _______, _______, _______, CLEAR, RGB_HUI, RGB_SAI, RGB_VAI, XXXXXXX,
_______, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_U, _______, _______, _______, _______, _______, _______, _______, _______, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SET,
_______, _______, KC_ACL0, KC_ACL2, KC_WH_L, KC_WH_R, _______, _______, _______, KC_VOLD, KC_VOLU, KC_MUTE, _______, KC_PGUP, RGB_M_B, RGB_M_K, RGB_M_G, XXXXXXX,
_______, DST_P_R, DST_N_A, KC_WH_D, _______, XXXXXXX, KC_APP, KC_HOME, KC_PGDN, KC_END, RGB_RMOD,RGB_MOD, RGB_M_P
2019-01-11 07:55:47 +01:00
),
};