From b329e0ea70fbb0ecd5345625dd11b41bf481eebc Mon Sep 17 00:00:00 2001 From: xesc Date: Tue, 19 Mar 2024 20:44:12 +0100 Subject: [PATCH] add second keyboard --- colemak_dh_modified/config.h | 32 ---------------- colemak_dh_modified/keymap.c | 72 ------------------------------------ colemak_dh_modified/rules.mk | 24 ------------ 3 files changed, 128 deletions(-) delete mode 100644 colemak_dh_modified/config.h delete mode 100644 colemak_dh_modified/keymap.c delete mode 100644 colemak_dh_modified/rules.mk diff --git a/colemak_dh_modified/config.h b/colemak_dh_modified/config.h deleted file mode 100644 index 2c5dfb0..0000000 --- a/colemak_dh_modified/config.h +++ /dev/null @@ -1,32 +0,0 @@ -/* Copyright 2022 x123 <@x123> -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ -#pragma once - -#define ONESHOT_TAP_TOGGLE 3 /* Tapping this number of times holds the key until tapped once again. */ -#define ONESHOT_TIMEOUT 5000 /* Time (in ms) before the one shot key is released */ -#define TAPPING_TOGGLE 1 -#define TAPPING_TERM 190 -#define UNICODE_SELECTED_MODES UNICODE_MODE_WINCOMPOSE, UNICODE_MODE_MACOS, UNICODE_MODE_LINUX -#define RGBLIGHT_EFFECT_BREATHING -#define RGBLIGHT_EFFECT_RAINBOW_MOOD -#define RGBLIGHT_EFFECT_STATIC_GRADIENT -#define RGBLIGHT_EFFECT_SNAKE -#define RGBLIGHT_EFFECT_RAINBOW_SWIRL -#define RGBLIGHT_EFFECT_KNIGHT -#define RGBLIGHT_EFFECT_TWINKLE -#define RGBLIGHT_EFFECT_CHRISTMAS - -#define AUTO_SHIFT_TIMEOUT 150 -#define NO_AUTO_SHIFT_ALPHA -#define NO_AUTO_SHIFT_NUMERIC diff --git a/colemak_dh_modified/keymap.c b/colemak_dh_modified/keymap.c deleted file mode 100644 index 48fa436..0000000 --- a/colemak_dh_modified/keymap.c +++ /dev/null @@ -1,72 +0,0 @@ -#include QMK_KEYBOARD_H - -enum custom_keycodes { - CTL_SPC = SAFE_RANGE, -}; - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - static uint16_t pressed_timer; - switch (keycode) { - case CTL_SPC: - if (record->event.pressed) { - pressed_timer = timer_read(); - register_code(KC_LGUI); - } else { - unregister_code(KC_LGUI); - if (timer_elapsed(pressed_timer) < TAPPING_TERM) { - register_code(KC_LCTL); - SEND_STRING(" "); - unregister_code(KC_LCTL); - } - } - return false; - } - return true; -} - -const uint16_t PROGMEM combo1[] = {CTL_SPC, KC_T, COMBO_END}; -const uint16_t PROGMEM combo2[] = {CTL_SPC, KC_S, COMBO_END}; -const uint16_t PROGMEM combo3[] = {CTL_SPC, KC_R, COMBO_END}; -combo_t key_combos[] = { - COMBO(combo1, OSL(2)), - COMBO(combo2, OSL(4)), - COMBO(combo3, OSL(3)), -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [0] = LAYOUT_split_3x6_3( - LT(4,KC_TAB), KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, LALT_T(KC_BSPC), - LCTL_T(KC_ESC), KC_A, KC_R, KC_S, KC_T, KC_G, KC_M, KC_N, KC_E, KC_I, KC_O, RCTL_T(KC_QUOT), - SC_LSPO, KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, SC_RSPC, - OSL(1), KC_SPC, CTL_SPC, RALT_T(KC_TAB), LT(3,KC_ENT), OSL(1) - ), - - [1] = LAYOUT_split_3x6_3( - LT(4,KC_TAB), KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, LALT_T(KC_BSPC), - LCTL_T(KC_ESC), KC_NO, KC_AMPR, KC_ASTR, KC_CIRC, KC_NO, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_GRV, - KC_LSFT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, KC_TILD, - TO(1), TO(0), CTL_SPC, RALT_T(KC_TAB), LT(3,KC_ENT), TO(2) - ), - [2] = LAYOUT_split_3x6_3( - - LT(4,KC_TAB), KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_CIRC, KC_7, KC_8, KC_9, KC_0, LALT_T(KC_BSPC), - LCTL_T(KC_ESC), KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_COMM, KC_4, KC_5, KC_6, KC_MINS, KC_EQL, SC_LSPO, - KC_NO, KC_NO, KC_DEL, KC_F11, KC_F12, KC_DOT, KC_1, KC_2, KC_3, KC_SLSH, KC_ASTR, - TO(4), TO(0), CTL_SPC, RALT_T(KC_TAB), LT(3,KC_ENT), TO(3) - ), - - [3] = LAYOUT_split_3x6_3( - KC_MUTE, KC_MPRV, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY, KC_MS_D, KC_MS_R, KC_WH_R, KC_NO, KC_NO, KC_ACL0, - LCTL_T(KC_ESC), KC_NO, KC_NO, KC_BTN3, KC_BTN1, KC_BTN2, KC_NO, KC_WH_U, KC_WH_D, KC_NO, KC_NO, KC_ACL1, - KC_LSFT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_MS_U, KC_MS_L, KC_WH_L, KC_NO, KC_NO, KC_ACL2, - TO(4), TO(0), KC_LGUI, KC_NO, KC_NO, TO(4) - ), - - [4] = LAYOUT_split_3x6_3( - RGB_TOG, RGB_M_B, RGB_M_P, RGB_VAD, RGB_VAI, RGB_M_K, KC_DOWN, KC_RGHT, KC_PGUP, KC_HOME, KC_NO, TO(0), - KC_PSCR, RGB_M_R, RGB_M_SW, RGB_HUD, RGB_HUI, RGB_M_TW, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_LSFT, RGB_M_G, RGB_M_SN, RGB_SAD, RGB_SAI, RGB_M_X, KC_UP, KC_LEFT, KC_PGDN, KC_END, KC_NO, KC_NO, - KC_NO, TO(0), KC_LGUI, KC_LGUI, KC_ENT, TO(3) - ), -}; - diff --git a/colemak_dh_modified/rules.mk b/colemak_dh_modified/rules.mk deleted file mode 100644 index 463e784..0000000 --- a/colemak_dh_modified/rules.mk +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 2022 x123 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -RGB_MATRIX_ENABLE = no -RGBLIGHT_ENABLE = yes -MOUSEKEY_ENABLE = yes -OLED_ENABLE = no -COMBO_ENABLE = yes -LTO_ENABLE = yes -UNICODE_ENABLE = yes -DYNAMIC_TAPPING_TERM_ENABLE = yes -AUTO_SHIFT_ENABLE = yes