diff options
Diffstat (limited to 'keyboards/gh60')
-rw-r--r-- | keyboards/gh60/revc/keymaps/danbee/keymap.c | 67 | ||||
-rw-r--r-- | keyboards/gh60/revc/keymaps/danbee/rules.mk | 1 | ||||
-rw-r--r-- | keyboards/gh60/satan/keymaps/gipsy-king/config.h | 21 | ||||
-rw-r--r-- | keyboards/gh60/satan/keymaps/gipsy-king/keymap.c | 161 | ||||
-rw-r--r-- | keyboards/gh60/satan/keymaps/gipsy-king/readme.md | 1 | ||||
-rw-r--r-- | keyboards/gh60/satan/keymaps/gipsy-king/rules.mk | 7 |
6 files changed, 0 insertions, 258 deletions
diff --git a/keyboards/gh60/revc/keymaps/danbee/keymap.c b/keyboards/gh60/revc/keymaps/danbee/keymap.c deleted file mode 100644 index 0dabb8b07f..0000000000 --- a/keyboards/gh60/revc/keymaps/danbee/keymap.c +++ /dev/null @@ -1,67 +0,0 @@ -#include QMK_KEYBOARD_H - -enum layer_names { - _QW, - _L1, - _L2, -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - /* 0: qwerty */ - /*┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ - │Esc│ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ Bcksp │ - ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ - │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ Ent │ - ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │ - │ Ctrl │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ \ │ │ - ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤ - │Shft│ ` │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ Shift │ - ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤ - │ Fn │Alt │Cmd │ Space │Cmd │Hypr│Ctrl│Fn 2│ - └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘*/ - [_QW] = LAYOUT_60_iso( /* Layer 0: Qwerty */ - KC_ESC, 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_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_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_BSLS, KC_ENT , - KC_LSFT, KC_GRV, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, - MO(_L1), KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_HYPR, KC_RCTL, MO(_L2) - ), - /* 1: fn */ - /*┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ - │ § │Br-│Br+│ │ │BL-│BL+│Pre│Pau│Nxt│Mut│Vo-│Vo+│ Del │ - ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ - │ │ │ │ │ │ │ │ │ │ │ │ │ │ Ins │ - ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │ - │ │ │ │ │ │ │ ◀ │ ▼ │ ▲ │ ▶ │ │ │ │ │ - ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤ - │ │ │ │ │ │ │BL~│ │ │ │ │ │ │ - ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤ - │ │ │ │ │ │ │ │ │ - └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘*/ - [_L1] = LAYOUT_60_iso( /* Layer 1: Functions */ - KC_NUBS, KC_BRID, KC_BRIU, _______, _______, BL_DOWN, BL_UP, KC_MRWD, KC_MPLY, KC_MFFD, KC_MUTE, KC_VOLD, KC_VOLU, KC_DEL , - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______, _______, KC_INS , - _______, _______, _______, _______, _______, _______, BL_TOGG, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______ - ), - /* 2: fn 2 */ - /*┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ - │Pwr│F1 │F2 │F3 │F4 │F5 │F6 │F7 │F8 │F9 │F10│F11│F12│ Eject │ - ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ - │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ - ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │ - │ Caps │ │ │ │ │ │Hom│PgD│PgU│End│ │ │ │ │ - ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤ - │ │ │ │ │ │ │ │ │ │ │ │ │ │ - ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤ - │ │ │ │ │ │ │ │ │ - └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘*/ - [_L2] = LAYOUT_60_iso( /* Layer 2: Functions */ - KC_PWR, 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_EJCT, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - KC_CAPS, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______ - ), -}; diff --git a/keyboards/gh60/revc/keymaps/danbee/rules.mk b/keyboards/gh60/revc/keymaps/danbee/rules.mk deleted file mode 100644 index 0a5b666e85..0000000000 --- a/keyboards/gh60/revc/keymaps/danbee/rules.mk +++ /dev/null @@ -1 +0,0 @@ -MOUSEKEY_ENABLE = no diff --git a/keyboards/gh60/satan/keymaps/gipsy-king/config.h b/keyboards/gh60/satan/keymaps/gipsy-king/config.h deleted file mode 100644 index 62deb0dc5a..0000000000 --- a/keyboards/gh60/satan/keymaps/gipsy-king/config.h +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once - -#undef RGBLED_NUM -#define RGBLED_NUM 17 -#undef RGBLIGHT_HUE_STEP -#define RGBLIGHT_HUE_STEP 5 -#undef RGBLIGHT_SAT_STEP -#define RGBLIGHT_SAT_STEP 5 -#undef RGBLIGHT_VAL_STEP -#define RGBLIGHT_VAL_STEP 5 - -#undef RGBLIGHT_EFFECT_BREATHING -#undef RGBLIGHT_EFFECT_RAINBOW_MOOD -#undef RGBLIGHT_EFFECT_RAINBOW_SWIRL -#undef RGBLIGHT_EFFECT_SNAKE -#undef RGBLIGHT_EFFECT_KNIGHT -#undef RGBLIGHT_EFFECT_CHRISTMAS -#undef RGBLIGHT_EFFECT_STATIC_GRADIENT -#undef RGBLIGHT_EFFECT_RGB_TEST -#undef RGBLIGHT_EFFECT_ALTERNATING -#undef RGBLIGHT_EFFECT_TWINKLE diff --git a/keyboards/gh60/satan/keymaps/gipsy-king/keymap.c b/keyboards/gh60/satan/keymaps/gipsy-king/keymap.c deleted file mode 100644 index 8de03bf80c..0000000000 --- a/keyboards/gh60/satan/keymaps/gipsy-king/keymap.c +++ /dev/null @@ -1,161 +0,0 @@ -#include QMK_KEYBOARD_H -#include "rgblight.h" - -enum layer_names { - _BL, - _FL -}; - -/** - * HHKB style. - * Esc on capslock, space-hold is fn. - * Fn layer has hjkl arrows, home on backspace, rgb stuff. - */ -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [_BL] = LAYOUT_60_ansi( - 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_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_ESC, 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_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, - _______, KC_LCTL, KC_LALT, LT(_FL,KC_SPC), KC_LGUI, KC_RALT, KC_RCTL, _______ - ), - - [_FL] = LAYOUT_60_ansi( - QK_BOOT, 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_HOME, - RGB_MOD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, BL_DOWN, BL_UP, BL_TOGG, - _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______, _______, - _______, RGB_TOG, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______ - ) -}; - -/** - * Terminal Prompt - * Mimicks a terminal prompt. On keystrokes, the led bar is filled. Backspace - * removes from bar. Enter clears bar. After some timeout, the bar is also cleared. - * A blinking cursor is displayed at the right of the bar. - * This can't be defined as an animation, because animations only are called on an - * interval, not on keypress. In the future all animations could be enhanced to - * react to keystrokes in QMK. - */ - -uint8_t cursor_pos; - -uint16_t interval_time = 10; // maybe too short... -uint16_t reset_time = 10000; -uint16_t last_timer = 0; -uint16_t timer_pos = 0; -uint16_t reset_timer = 0; - -void reset_chars(void); -void add_char(bool space); -void remove_char(void); -void animate_cursor(uint16_t); - -// animate, like the built-in animations, with timer_* functions -void matrix_scan_user(void) { - if (timer_elapsed(reset_timer) > reset_time) { - reset_chars(); - reset_timer = timer_read(); - return; - } - if (timer_elapsed(last_timer) < interval_time) { - return; - } - last_timer += interval_time; - timer_pos += 4; - if (timer_pos >= 255) { - timer_pos = 0; - last_timer = timer_read(); - } - animate_cursor(timer_pos); -} - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - if ((keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX) || (keycode >= QK_LAYER_TAP && keycode <= QK_LAYER_TAP_MAX)) { - keycode = keycode & 0xFF; - } - switch (keycode) { - case KC_A ... KC_Z: - case KC_1 ... KC_0: - case KC_LBRC: - case KC_RBRC: - case KC_SCLN: - case KC_QUOT: - case KC_COMM: - case KC_DOT: - case KC_SLSH: - case KC_BSLS: - if (record->event.pressed) { - add_char(false); - } - break; - case KC_ENTER: - case KC_ESC: - if (record->event.pressed) { - reset_chars(); - } - break; - case KC_BSPC: - if (record->event.pressed) { - remove_char(); - } - break; - case KC_SPACE: - if (!record->event.pressed) { - add_char(true); - } - break; - } - reset_timer = timer_read(); - return true; -} - -void keyboard_post_init_user(void) { - // reset the bar and animation - rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); - cursor_pos = 0; - reset_chars(); - reset_timer = last_timer = timer_read(); -} - - -void reset_chars(void) { - // flush the whole thing, gets rid of previous animations - for (uint8_t i = 0; i < RGBLED_NUM; i++) { - // don't flicker the cursor if bar was empty on reset_timer - if (i == 0 && cursor_pos == 0) { - continue; - } - rgblight_sethsv_at(0, 0, 0, i); - } - cursor_pos = 0; -} - -void add_char(bool space) { - if (cursor_pos == RGBLED_NUM - 1) { - cursor_pos = 0; - reset_chars(); - return; - } - - if (space) { - rgblight_sethsv_at(0, 0, 0, cursor_pos); - } else { - rgblight_sethsv_at(rgblight_get_hue(), rgblight_get_sat(), rgblight_get_val(), cursor_pos); - } - cursor_pos += 1; -} - -void remove_char(void) { - if (cursor_pos == 0) return; - - rgblight_sethsv_at(0, 0, 0, cursor_pos); - rgblight_sethsv_at(0, 0, 0, cursor_pos - 1); - cursor_pos -= 1; -} - -void animate_cursor(uint16_t pos) { - uint16_t value = pos < 196 ? fmin(255, pos * 16) : (255 - (pos * 2)); - rgblight_sethsv_at(rgblight_get_hue(), rgblight_get_sat(), value, cursor_pos); -} diff --git a/keyboards/gh60/satan/keymaps/gipsy-king/readme.md b/keyboards/gh60/satan/keymaps/gipsy-king/readme.md deleted file mode 100644 index c366147df3..0000000000 --- a/keyboards/gh60/satan/keymaps/gipsy-king/readme.md +++ /dev/null @@ -1 +0,0 @@ -# default Satan GH60 layout diff --git a/keyboards/gh60/satan/keymaps/gipsy-king/rules.mk b/keyboards/gh60/satan/keymaps/gipsy-king/rules.mk deleted file mode 100644 index 935d3544ac..0000000000 --- a/keyboards/gh60/satan/keymaps/gipsy-king/rules.mk +++ /dev/null @@ -1,7 +0,0 @@ -BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite -EXTRAKEY_ENABLE = no -CONSOLE_ENABLE = no -COMMAND_ENABLE = no -NKRO_ENABLE = no -UNICODE_ENABLE = yes -SLEEP_LED_ENABLE = yes |