Skip to content

Commit

Permalink
[Keyboard] Update dynamis keyboard (#17625)
Browse files Browse the repository at this point in the history
Co-authored-by: Drashna Jaelre <drashna@live.com>
  • Loading branch information
bbrfkr and drashna authored Aug 29, 2022
1 parent 38de991 commit a2294bc
Show file tree
Hide file tree
Showing 7 changed files with 116 additions and 110 deletions.
16 changes: 6 additions & 10 deletions keyboards/bbrfkr/dynamis/dynamis.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,12 @@

#ifdef ENCODER_ENABLE
bool encoder_update_kb(uint8_t index, bool clockwise) {
if (!encoder_update_user(index, clockwise)) {
return false;
if (!encoder_update_user(index, clockwise)) { return false; }
if (clockwise) {
tap_code(layer_state == 0 ? KC_WH_D : KC_VOLD);
} else {
tap_code(layer_state == 0 ? KC_WH_U : KC_VOLU);
}
if (index == 0) { /* First encoder */
if (clockwise) {
tap_code(KC_WH_D);
} else {
tap_code(KC_WH_U);
}
}
return false;
return true;
}
#endif
76 changes: 38 additions & 38 deletions keyboards/bbrfkr/dynamis/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,62 +17,62 @@
"y": 0
},
{
"label": "F1",
"label": "1",
"x": 1,
"y": 0
},
{
"label": "F2",
"label": "2",
"x": 2,
"y": 0
},
{
"label": "F3",
"label": "3",
"x": 3,
"y": 0
},
{
"label": "F4",
"label": "4",
"x": 4,
"y": 0
},
{
"label": "F5",
"label": "5",
"x": 5,
"y": 0
},
{
"label": "F6",
"label": "6",
"x": 6,
"y": 0
},
{
"label": "F7",
"label": "7",
"x": 7,
"y": 0
},
{
"label": "F8",
"label": "8",
"x": 8,
"y": 0
},
{
"label": "F9",
"label": "9",
"x": 9,
"y": 0
},
{
"label": "F10",
"label": "0",
"x": 10,
"y": 0
},
{
"label": "F11",
"label": "-",
"x": 11,
"y": 0
},
{
"label": "F12",
"label": "=",
"x": 12,
"y": 0
},
Expand Down Expand Up @@ -292,7 +292,7 @@
"w": 1.75
},
{
"label": "Raise",
"label": "Lower",
"x": 14,
"y": 3
},
Expand All @@ -308,13 +308,13 @@
"w": 1.25
},
{
"label": "Super",
"label": "Alt",
"x": 1.25,
"y": 4,
"w": 1.25
},
{
"label": "Alt",
"label": "Lower",
"x": 2.5,
"y": 4,
"w": 1.25
Expand All @@ -326,25 +326,25 @@
"w": 2.25
},
{
"label": "Lower",
"label": "Space",
"x": 6,
"y": 4,
"w": 1.25
},
{
"label": "Raise",
"label": "Enter",
"x": 7.25,
"y": 4,
"w": 2.75
},
{
"label": "Alt",
"label": "Raise",
"x": 10,
"y": 4,
"w": 1.25
},
{
"label": "Super",
"label": "Alt",
"x": 11.25,
"y": 4,
"w": 1.25
Expand Down Expand Up @@ -380,62 +380,62 @@
"y": 0
},
{
"label": "F1",
"label": "1",
"x": 1,
"y": 0
},
{
"label": "F2",
"label": "2",
"x": 2,
"y": 0
},
{
"label": "F3",
"label": "3",
"x": 3,
"y": 0
},
{
"label": "F4",
"label": "4",
"x": 4,
"y": 0
},
{
"label": "F5",
"label": "5",
"x": 5,
"y": 0
},
{
"label": "F6",
"label": "6",
"x": 6,
"y": 0
},
{
"label": "F7",
"label": "7",
"x": 7,
"y": 0
},
{
"label": "F8",
"label": "8",
"x": 8,
"y": 0
},
{
"label": "F9",
"label": "9",
"x": 9,
"y": 0
},
{
"label": "F10",
"label": "0",
"x": 10,
"y": 0
},
{
"label": "F11",
"label": "-",
"x": 11,
"y": 0
},
{
"label": "F12",
"label": "=",
"x": 12,
"y": 0
},
Expand Down Expand Up @@ -655,7 +655,7 @@
"w": 1.75
},
{
"label": "Raise",
"label": "Lower",
"x": 14,
"y": 3
},
Expand All @@ -671,13 +671,13 @@
"w": 1.25
},
{
"label": "Super",
"label": "Alt",
"x": 1.25,
"y": 4,
"w": 1.25
},
{
"label": "Alt",
"label": "Lower",
"x": 2.5,
"y": 4,
"w": 1.25
Expand All @@ -689,25 +689,25 @@
"w": 2.25
},
{
"label": "Lower",
"label": "Space",
"x": 6,
"y": 4,
"w": 1.25
},
{
"label": "Raise",
"label": "Enter",
"x": 7.25,
"y": 4,
"w": 2.75
},
{
"label": "Alt",
"label": "Raise",
"x": 10,
"y": 4,
"w": 1.25
},
{
"label": "Super",
"label": "Alt",
"x": 11.25,
"y": 4,
"w": 1.25
Expand Down
40 changes: 20 additions & 20 deletions keyboards/bbrfkr/dynamis/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,40 +20,40 @@ enum layer_names {
_QWERTY,
_LOWER,
_RAISE,
_SETTINGS
_SETTINGS,
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

[_QWERTY] = LAYOUT_ansi(
KC_GRV, 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_BSPC, KC_DEL,
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_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_TAB, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(2), KC_UP,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), MO(2), KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
KC_TAB, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), KC_UP,
KC_LCTL, KC_LALT, MO(1), KC_SPC, KC_SPC, KC_ENT, MO(2), KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
),

[_LOWER] = LAYOUT_ansi(
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS, KC_TRNS, KC_TRNS,
KC_PSCR, KC_TRNS, KC_TRNS, KC_WH_U, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PGUP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_BTN3, KC_BTN2, KC_WH_D, KC_BTN1, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_END, KC_TRNS, KC_TRNS, MO(3), KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, MO(3), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
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_DEL, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_PSCR, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_BTN3, KC_BTN2, KC_BTN1, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_LGUI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, MO(3), KC_RGUI, KC_TRNS, KC_TRNS, KC_TRNS, KC_MUTE
),

[_RAISE] = LAYOUT_ansi(
KC_ESC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_DEL, KC_TRNS,
KC_TRNS, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_MINS, KC_EQL, KC_QUOT, KC_LBRC, KC_RBRC, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_UNDS, KC_PLUS, KC_DQUO, KC_LCBR, KC_RCBR, KC_TRNS, MO(3), KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, MO(3), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
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_DEL, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_PSCR, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_LGUI, MO(3), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_RGUI, KC_TRNS, KC_TRNS, KC_TRNS, KC_MUTE
),

[_SETTINGS] = LAYOUT_ansi(
QK_BOOT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, RGB_TOG, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, RGB_MOD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, RGB_RMOD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
)
QK_BOOT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
KC_NO, RGB_TOG, RGB_MOD, RGB_RMOD, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
),
};
Loading

0 comments on commit a2294bc

Please sign in to comment.