From 8938273360226339296ef766fc2261b1ac2920bd Mon Sep 17 00:00:00 2001 From: locker98 Date: Mon, 24 Jun 2024 21:09:00 -0400 Subject: [PATCH] added new key maps --- keyboards/sofle/keymaps/locker98/keymap.c | 71 +++++++++++++---------- keyboards/sofle/keymaps/locker98/rules.mk | 1 + 2 files changed, 41 insertions(+), 31 deletions(-) diff --git a/keyboards/sofle/keymaps/locker98/keymap.c b/keyboards/sofle/keymaps/locker98/keymap.c index f01bf6f5c1..9488c5c5c3 100644 --- a/keyboards/sofle/keymaps/locker98/keymap.c +++ b/keyboards/sofle/keymaps/locker98/keymap.c @@ -80,6 +80,15 @@ enum custom_keycodes { KC_D_MUTE }; +enum { + TD_SHIFT_BACK, +}; +tap_dance_action_t tap_dance_actions[] = { + [TD_SHIFT_BACK] = ACTION_TAP_DANCE_DOUBLE(KC_BSPC, C(KC_BSPC)), +}; + + + const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { /* * QWERTY @@ -92,7 +101,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { * |------+------+------+------+------+------| MUTE | |DISCORD|------+------+------+------+------+------| * |LShift| Z | X | C | V | B |-------| |-------| N | M | , | . | / |LShift| * `-----------------------------------------/ / \ \-----------------------------------------' - * |Space | WIN |LOWER | BSPC | / Enter / \Enter \ |SPACE |RAISE | RCTR | RAlt | + * |Space | WIN |LOWER | BSPC | / Enter / \Shift \ |SPACE |RAISE | RCTR | RAlt | * | | | | |/ / \ \ | | | | | * `----------------------------------' '------''---------------------------' */ @@ -106,7 +115,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { //|------+-------+--------+--------+--------+------| === | | === |--------+-------+--------+--------+--------+---------| KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MUTE, KC_D_MUTE,KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, //|------+-------+--------+--------+--------+------| === | | === |--------+-------+--------+--------+--------+---------| - KC_SPC, KC_LGUI, KC_LOWER, KC_BSPC, KC_ENT, XXXXXXX, KC_SPC , KC_RAISE, KC_RCTL, KC_RALT + KC_SPC, KC_LGUI, KC_LOWER, TD(TD_SHIFT_BACK), KC_ENT, KC_LSFT, KC_SPC , KC_RAISE, KC_RCTL, KC_RALT // \--------+--------+--------+---------+-------| |--------+---------+--------+---------+-------/ ), @@ -115,40 +124,40 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { * ,-----------------------------------------. ,-----------------------------------------. * | trans| F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | F11 | * |------+------+------+------+------+------| |------+------+------+------+------+------| - * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | F12 | + * | trans| 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | F12 | * |------+------+------+------+------+------| |------+------+------+------+------+------| - * | trans| ! | @ | # | $ | % |-------. ,-------| ^ | & | * | ( | ) | | | - * |------+------+------+------+------+------| MUTE | | |------+------+------+------+------+------| - * | trans| = | - | + | { | } |-------| |-------| [ | ] | ; | : | \ | Shift| + * | trans| - _ | = + | [ { | ] } | | \ |-------. ,-------| Left | Down | UP | Right|ScrPrt|Numpad| + * |------+------+------+------+------+------| trans | | trans |------+------+------+------+------+------| + * | trans| Undo | Cut | Copy | Paste|delete|-------| |-------| | | | | | trans| * `-----------------------------------------/ / \ \-----------------------------------------' - * | Bspc | WIN |LOWER | Enter| /Space / \Enter \ |SPACE |RAISE | RCTR | RAlt | + * | trans| trans| trans| trans| /trans / \trans \ | trans| trans| trans| trans| * | | | | |/ / \ \ | | | | | * `----------------------------------' '------''---------------------------' - */ + */ [_LOWER] = LAYOUT( //,------------------------------------------------. ,---------------------------------------------------. - _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, + _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, //|------+-------+--------+--------+--------+------| |--------+-------+--------+--------+--------+---------| - KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, + _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_F12, //|------+-------+--------+--------+--------+------| |--------+-------+--------+--------+--------+---------| - _______, KC_NO, KC_NO, KC_NO, KC_WH_U, KC_PGUP, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_NO, KC_DEL, + _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC,KC_BSLS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_PSCR, XXXXXXX, //|------+-------+--------+--------+--------+------| === | | === |--------+-------+--------+--------+--------+---------| - _______, KC_NO, KC_NO, KC_NO, KC_WH_D, KC_PGDN,_______, _______,KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, _______, + _______, C(KC_Z), KC_CUT, KC_COPY,KC_PASTE,KC_DEL,_______, _______, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, _______, //|------+-------+--------+--------+--------+------| === | | === |--------+-------+--------+--------+--------+---------| _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ // \--------+--------+--------+---------+-------| |--------+---------+--------+---------+-------/ ), /* RAISE - * ,----------------------------------------. ,-----------------------------------------. - * | | | | | | | | | | | | | | + * ,-----------------------------------------. ,-----------------------------------------. + * | trans| trans| trans| trans| trans| trans| | trans| trans| trans| trans| trans| trans| * |------+------+------+------+------+------| |------+------+------+------+------+------| - * | Esc | Ins | Pscr | Menu | | | | | PWrd | Up | NWrd | DLine| Bspc | + * | trans| | | | | | | | | | | | | * |------+------+------+------+------+------| |------+------+------+------+------+------| - * | Tab | LAt | LCtl |LShift| | Caps |-------. ,-------| | Left | Down | Rigth| Del | Bspc | - * |------+------+------+------+------+------| MUTE | | |------+------+------+------+------+------| - * |Shift | Undo | Cut | Copy | Paste| |-------| |-------| | LStr | | LEnd | | Shift| + * | trans| | | | | Caps |-------. ,-------| | | | | | | + * |------+------+------+------+------+------| | | |------+------+------+------+------+------| + * | trans| | | | | |-------| |-------| | | | | | trans| * `-----------------------------------------/ / \ \-----------------------------------------' - * | LGUI | LAlt | LCTR |LOWER | /Enter / \Space \ |RAISE | RCTR | RAlt | RGUI | + * | trans| trans| trans| trans| / trans / \ trans\ | trans| trans| trans| trans| * | | | | |/ / \ \ | | | | | * `----------------------------------' '------''---------------------------' */ @@ -156,24 +165,24 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { //,------------------------------------------------. ,---------------------------------------------------. _______, _______ , _______ , _______ , _______ , _______, _______, _______ , _______, _______ , _______ ,_______, //|------+-------+--------+--------+--------+------| |--------+-------+--------+--------+--------+---------| - _______, KC_INS, KC_PSCR, KC_APP, XXXXXXX, XXXXXXX, KC_CIRC, KC_AMPR,KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, + _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,XXXXXXX, XXXXXXX,XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, //|------+-------+--------+--------+--------+------| |--------+-------+--------+--------+--------+---------| - _______, KC_LALT, KC_LCTL, KC_LSFT, XXXXXXX, KC_CAPS, KC_MINS, KC_EQL, KC_LCBR, KC_RCBR, KC_PIPE, KC_GRV, + _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,KC_CAPS, XXXXXXX,XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, //|------+-------+--------+--------+--------+------| === | | === |--------+-------+--------+--------+--------+---------| - _______,KC_UNDO, KC_CUT, KC_COPY, KC_PASTE, XXXXXXX,_______, _______,KC_UNDS, KC_PLUS,KC_LBRC, KC_RBRC, KC_BSLS, KC_TILD, + _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,XXXXXXX,_______, _______, XXXXXXX,XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, //|------+-------+--------+--------+--------+------| === | | === |--------+-------+--------+--------+--------+---------| _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ // \--------+--------+--------+---------+-------| |--------+---------+--------+---------+-------/ ), /* ADJUST * ,-----------------------------------------. ,-----------------------------------------. - * | | | | | | | | | | | | | | + * | | | | | | | | | SwSd |QK_MAK| Reset| Power| Sleep| * |------+------+------+------+------+------| |------+------+------+------+------+------| - * QK_BOOT| | | | | | | | | | | | | + * QK_BOOT| | | bri ^| BL UP| | | |Scro U| | | | | * |------+------+------+------+------+------| |------+------+------+------+------+------| - * |RGB_TOG|hue^ |sat ^ | bri ^| | |-------. .-------|desk <| | |desk >| | | + * |RGB_TOG|hue^ |sat ^ |RightC| LeftC| |-------. .-------|MouseL|MouseD|MouseU|MouseR| | | * |------+------+------+------+------+------| MUTE | | |------+------+------+------+------+------| - * | mode | hue dn|sat d|bri dn| |QWERTY|-------| |-------| | PREV | PLAY | NEXT | | | + * | mode | hue dn|sat d|bri dn| BL DW| |-------| |-------| |Scro D| | | | | * `-----------------------------------------/ / \ \-----------------------------------------' * | LGUI | LAlt | LCTR |LOWER | /Enter / \Space \ |RAISE | RCTR | RAlt | RGUI | * | | | | |/ / \ \ | | | | | @@ -181,16 +190,16 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { */ [_ADJUST] = LAYOUT( //,------------------------------------------------. ,---------------------------------------------------. - EE_CLR, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, + EE_CLR, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, SH_TT, QK_MAKE, QK_BOOT, KC_PWR, KC_SLEP, //|------+-------+--------+--------+--------+------| |--------+-------+--------+--------+--------+---------| - QK_BOOT, XXXXXXX,XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, + QK_BOOT, XXXXXXX, XXXXXXX, RGB_VAI, BL_UP, XXXXXXX, XXXXXXX, KC_WH_U, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, //|------+-------+--------+--------+--------+------| |--------+-------+--------+--------+--------+---------| - RGB_TOG, RGB_HUI,RGB_SAI, RGB_VAI, XXXXXXX, XXXXXXX, C(G(KC_LEFT)),KC_NO,KC_NO,C(G(KC_RGHT)),XXXXXXX, XXXXXXX, + RGB_TOG, RGB_HUI,RGB_SAI, KC_BTN1, KC_BTN2, XXXXXXX, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, XXXXXXX, XXXXXXX, //|------+-------+--------+--------+--------+------| === | | === |--------+-------+--------+--------+--------+---------| - RGB_MOD, RGB_HUD,RGB_SAD, RGB_VAD, XXXXXXX,KC_QWERTY,XXXXXXX, XXXXXXX, XXXXXXX, KC_MPRV, KC_MPLY, KC_MNXT, XXXXXXX, XXXXXXX, + RGB_MOD, RGB_HUD,RGB_SAD, RGB_VAD, BL_DOWN,XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_WH_D, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, //|------+-------+--------+--------+--------+------| === | | === |--------+-------+--------+--------+--------+---------| _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ - // \--------+--------+--------+---------+-------| |--------+---------+--------+---------+-------/ + // \--------+--------+--------+---------+-------| |--L------+---------+--------+---------+-------/ ), /* NUMPAD * ,-----------------------------------------. ,-----------------------------------------. diff --git a/keyboards/sofle/keymaps/locker98/rules.mk b/keyboards/sofle/keymaps/locker98/rules.mk index 0d18161a0d..31cf3d2772 100644 --- a/keyboards/sofle/keymaps/locker98/rules.mk +++ b/keyboards/sofle/keymaps/locker98/rules.mk @@ -5,3 +5,4 @@ RGBLIGHT_ENABLE = yes ENCODER_ENABLE = yes LTO_ENABLE = yes OLED_ENABLE = yes +TAP_DANCE_ENABLE = yes \ No newline at end of file