Skip to content

Commit

Permalink
create C keymap for iris
Browse files Browse the repository at this point in the history
  • Loading branch information
plodah committed Dec 1, 2024
1 parent 70e0a78 commit 5569fa7
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 0 deletions.
33 changes: 33 additions & 0 deletions keyboards/keebio/iris/keymaps/plodahc/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#pragma once

#define KC_PL_QFTR
// #define KC_PL_QLYR
#define KC_PL_QRGB
#define KC_PL_QVER

#ifdef PRODUCT
#undef PRODUCT
#endif // PRODUCT
#define PRODUCT "Keebio Iris rev2 | plodahc"

#define PLODAH_BORING_LAYER 1

#define BOOTMAGIC_ROW 0
#define BOOTMAGIC_COLUMN 0

#include "configs/backlight-common.h"
#define SPLIT_LED_STATE_ENABLE

#ifdef COMBO_ENABLE
#ifdef COMBO_TERM
#undef COMBO_TERM
#endif
#define COMBO_TERM 50
#endif

#ifdef DYNAMIC_KEYMAP_LAYER_COUNT
#undef DYNAMIC_KEYMAP_LAYER_COUNT
#endif
// #define DYNAMIC_KEYMAP_LAYER_COUNT 4

#include "plodah.h"
66 changes: 66 additions & 0 deletions keyboards/keebio/iris/keymaps/plodahc/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#include QMK_KEYBOARD_H

enum keymap_keycodes {
PL_ALTTAB = QK_USER_0,
PL_ALTSTAB,
PL_QFTR,
PL_QRGB,
PL_QVER,
};

enum {
TD_ESC_RAGEQUIT,
TD_F5,
TD_F11,
};

#define P_SPCM2 LT(2,KC_SPC)
#define P_ENTM3 LT(3,KC_ENT)
#define P_ENTAL MT(MOD_LALT, KC_ENT)
#define P_ENALG MT(MOD_RALT, KC_ENT)

#define P_SALT MT(MOD_LALT, KC_S)
#define P_DCTL MT(MOD_LCTL, KC_D)
#define P_FSFT MT(MOD_LSFT, KC_F)
#define P_LALT MT(MOD_RALT, KC_L)
#define P_KCTL MT(MOD_RCTL, KC_K)
#define P_JSFT MT(MOD_RSFT, KC_J)

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
TD(TD_ESC_RAGEQUIT), KC_1, KC_2, KC_3, KC_4, TD(TD_F5), KC_6, KC_7, KC_8, KC_9, TD(TD_F11), KC_BSPC,
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_LSFT, KC_A, P_SALT, P_DCTL, P_FSFT, KC_G, KC_H, P_JSFT, P_KCTL, P_LALT, KC_SCLN, KC_QUOT,
KC_LCTL, KC_Z, KC_X, KC_C, KC_V, KC_B, XXXXXXX, XXXXXXX, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
P_ENTAL, P_ENTM3, P_SPCM2, P_SPCM2, P_ENTM3, P_ENALG
),
[1] = LAYOUT(
TD(TD_ESC_RAGEQUIT), KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
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_LSFT, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
KC_LCTL, KC_Z, KC_X, KC_C, KC_V, KC_B, XXXXXXX, XXXXXXX, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
P_ENTAL, P_ENTM3, P_SPCM2, P_SPCM2, P_ENTM3, P_ENALG
),
[2] = LAYOUT(
KC_GRV, _______, _______, PL_QFTR, PL_QRGB, QK_MAKE, QK_MAKE, PL_QVER, _______, KC_MINS, KC_EQL, KC_DEL,
_______, _______, KC_UP, _______, _______, _______, _______, _______, _______, KC_UP, _______, KC_RBRC,
_______, KC_LEFT, KC_DOWN, KC_RGHT, _______, KC_LBRC, KC_RBRC, _______, KC_LEFT, KC_DOWN, KC_RGHT, KC_NUHS,
_______, KC_NUBS, _______, _______, _______, KC_RCBR, XXXXXXX, XXXXXXX, KC_RCBR, _______, _______, _______, _______, _______,
KC_LGUI, KC_ENT, KC_SPC, KC_SPC, KC_ENT, KC_RGUI

),
[3] = LAYOUT(
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
BL_TOGG, _______, KC_PGUP, _______, KC_VOLU, _______, _______, _______, KC_PGUP, _______, KC_PSCR, KC_VOLU,
BL_UP, KC_HOME, KC_PGDN, KC_END, KC_VOLD, _______, _______, KC_HOME, KC_PGDN, KC_END, _______, KC_VOLD,
BL_DOWN, BL_BRTG, _______, _______, KC_MUTE, _______, XXXXXXX, XXXXXXX, _______, KC_MUTE, _______, _______, _______, CW_TOGG,
_______, _______, _______, _______, _______, _______
)/*,
[4] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, XXXXXXX, XXXXXXX, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______
)*/
};
22 changes: 22 additions & 0 deletions keyboards/keebio/iris/keymaps/plodahc/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
USER_NAME = plodah

AUTO_SHIFT_ENABLE = no
AUTOCORRECT_ENABLE = yes
BACKLIGHT_ENABLE = yes
BOOTMAGIC_ENABLE = yes
CAPS_WORD_ENABLE = yes
COMBO_ENABLE = yes
CONSOLE_ENABLE = no
DEFERRED_EXEC_ENABLE = no
DYNAMIC_MACRO_ENABLE = yes
DYNAMIC_TAPPING_TERM_ENABLE = no
ENCODER_MAP_ENABLE = no
EXTRAKEY_ENABLE = yes
LEADER_ENABLE = no
MOUSEKEY_ENABLE = yes
OS_DETECTION_ENABLE = no
RGBLIGHT_ENABLE = no
RGB_MATRIX_ENABLE = no
SPACE_CADET_ENABLE = no
TAP_DANCE_ENABLE = yes
VIA_ENABLE = yes
1 change: 1 addition & 0 deletions qmk.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
["dztech/dz60v2", "plodah"],
["dztech/dz60v2", "plodahc"],
["keebio/iris/rev2", "plodah"],
["keebio/iris/rev2", "plodahc"],
["keychron/q1v1/iso_encoder", "plodah"],
["keychron/q1v1/iso_encoder", "plodahc"],
["keychron/q3/iso_encoder", "plodah"],
Expand Down

0 comments on commit 5569fa7

Please sign in to comment.