summaryrefslogtreecommitdiff
path: root/keyboards/planck/keymaps/tong92
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/planck/keymaps/tong92')
-rw-r--r--keyboards/planck/keymaps/tong92/keymap.c189
-rw-r--r--keyboards/planck/keymaps/tong92/readme.md66
-rw-r--r--keyboards/planck/keymaps/tong92/rules.mk59
3 files changed, 0 insertions, 314 deletions
diff --git a/keyboards/planck/keymaps/tong92/keymap.c b/keyboards/planck/keymaps/tong92/keymap.c
deleted file mode 100644
index de43024c40..0000000000
--- a/keyboards/planck/keymaps/tong92/keymap.c
+++ /dev/null
@@ -1,189 +0,0 @@
-//Author: tong92 <tong92power@gmail.com>
-
-#include QMK_KEYBOARD_H
-
-enum planck_layers {
- _WINDOW,
- _MAC,
- _LOWER,
- _RAISE,
- _WINDOW_SHORTCUT,
- _MAC_SHORTCUT,
- _MOUSE
-};
-
-enum planck_keycodes {
- WINDOW = SAFE_RANGE,
- MAC,
- MOUSE,
- BACKLIT,
- EXT_MOUSE
-};
-
-#define LOWER M(1)
-#define RAISE M(2)
-#define WINDOW_SHORTCUT MO(_WINDOW_SHORTCUT)
-#define MAC_SHORTCUT MO(_MAC_SHORTCUT)
-
-//MIT Layout
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
-/* Window - Qwerty
-* ,-----------------------------------------------------------------------.
-* |Tab | q | w | e | r | t | y | u | i | o | p | BS |
-* |-----------------------------------------------------------------------|
-* |Ctrl | a | s | d | f | g | h | j | k | l | ; |enter|
-* |-----------------------------------------------------------------------|
-* |Shift| z | x | c | v | b | n | m | , | . | / |Shift|
-* |-----------------------------------------------------------------------|
-* | Fn |Ctrl | Win | Alt |Lower| Space |Upper| ' | [ | ] | Alt |
-* `-----------------------------------------------------------------------'
-*/
-[_WINDOW] = LAYOUT_planck_grid(
-KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
-KC_LCTL,KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,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,
-WINDOW_SHORTCUT, KC_RCTL,KC_LGUI,KC_LALT,LOWER,KC_SPC,KC_SPC,RAISE,KC_QUOT,KC_LBRC,KC_RBRC,KC_RALT
-),
-/* Mac - Qwerty
-* ,-----------------------------------------------------------------------.
-* |Tab | q | w | e | r | t | y | u | i | o | p | BS |
-* |-----------------------------------------------------------------------|
-* |LComd| a | s | d | f | g | h | j | k | l | ; |enter|
-* |-----------------------------------------------------------------------|
-* |Shift| z | x | c | v | b | n | m | , | . | / |Shift|
-* |-----------------------------------------------------------------------|
-* | Fn |Lang |Ctrl | Alt |Lower| Space |Upper| ' | [ | ] |SPOT |
-* `-----------------------------------------------------------------------'
-*/
-[_MAC] = LAYOUT_planck_grid(
-KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
-KC_LGUI,KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,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,
-MAC_SHORTCUT, LCTL(KC_SPC),KC_LCTL,KC_LALT,LOWER,KC_SPC,KC_SPC,RAISE,KC_QUOT,KC_LBRC,KC_RBRC,LGUI(KC_SPC)
-),
-/* LOWER
-* ,-----------------------------------------------------------------------.
-* | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | BS |
-* |-----------------------------------------------------------------------|
-* | | F1 | F2 | F3 | F4 | F5 | F6 | - | + | [ | ] | \ |
-* |-----------------------------------------------------------------------|
-* | | F7 | F8 | F9 | F10 | F11 | F12 | | HOME| PgUp| UP | PgDo|
-* |-----------------------------------------------------------------------|
-* | | | | | | SPACE | | END | LEFT| DOWN|RIGHT|
-* `-----------------------------------------------------------------------'
-*/
-[_LOWER] = LAYOUT_planck_grid(
-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_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS,KC_PLUS,KC_LBRC,KC_RBRC,KC_BSLS ,
-_______,KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,KC_F12,_______,KC_HOME,KC_PGUP,KC_UP ,KC_PGDN ,
-XXXXXXX,_______,_______,_______,_______,KC_SPC,KC_SPC,_______,KC_END, KC_LEFT,KC_DOWN,KC_RIGHT
-),
-/* RAISE
-* ,-----------------------------------------------------------------------.
-* | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | BS |
-* |-----------------------------------------------------------------------|
-* | | F1 | F2 | F3 | F4 | F5 | F6 | _ | = | { | } | | |
-* |-----------------------------------------------------------------------|
-* | | F7 | F8 | F9 | F10 | F11 | F12 | | HOME| PgUp| UP | PgDo|
-* |-----------------------------------------------------------------------|
-* | | | | | | SPACE | | END | LEFT| DOWN|RIGHT|
-* `-----------------------------------------------------------------------'
-*/
-[_RAISE] = LAYOUT_planck_grid(
-KC_TILD,KC_EXLM,KC_AT, KC_HASH,KC_DLR, KC_PERC,KC_CIRC,KC_AMPR,KC_ASTR,KC_LPRN,KC_RPRN,KC_BSPC ,
-_______,KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS,KC_EQL, KC_LCBR,KC_RCBR,KC_PIPE ,
-_______,KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______,KC_HOME,KC_PGUP,KC_UP ,KC_PGDN ,
-XXXXXXX,_______,_______,_______,_______,KC_SPC, KC_SPC, _______,KC_END, KC_LEFT,KC_DOWN,KC_RIGHT
-),
-/* Window Shortcut
-* ,-----------------------------------------------------------------------.
-* | ESC |WinOf|WinUp| | |Sh+Ca| | PgUp| UP | PgDo|PrtSc| DEL |
-* |-----------------------------------------------------------------------|
-* | |WinLe|WinDo|WinRi| |Al+Ca|CapsL| LEFT| DOWN|RIGHT| | |
-* |-----------------------------------------------------------------------|
-* | |WinLW|WinRW| | |Ct+Ca|ScroL| HOME| | END | | |
-* |-----------------------------------------------------------------------|
-* | |DeskL|DeskR|DeskX|Task | ChangeLang| | | | | LED |
-* `-----------------------------------------------------------------------'
-*/
-[_WINDOW_SHORTCUT] = LAYOUT_planck_grid(
-KC_ESC ,LALT(KC_F4) ,LGUI(KC_UP) ,XXXXXXX ,XXXXXXX ,S(KC_CAPS) ,XXXXXXX,KC_PGUP,KC_UP,KC_PGDN,KC_PSCR,KC_DEL,
-_______,LGUI(KC_LEFT) ,LGUI(KC_DOWN) ,LGUI(KC_RIGHT) ,XXXXXXX ,LALT(KC_CAPS),KC_CAPS,KC_LEFT,KC_DOWN,KC_RIGHT,XXXXXXX,XXXXXXX,
-_______,LGUI(LSFT(KC_LEFT)),LGUI(LSFT(KC_RIGHT)),XXXXXXX ,XXXXXXX ,LCTL(KC_CAPS),KC_SLCK,KC_HOME,XXXXXXX,KC_END,XXXXXXX,XXXXXXX,
-KC_TRNS,LGUI(LCTL(KC_LEFT)),LGUI(LCTL(KC_RIGHT)),LGUI(LCTL(KC_F4)),LCTL(LALT(KC_DEL)),LGUI(KC_SPC),LGUI(KC_SPC),XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,BACKLIT
-),
-/* Mac Shortcut
-* ,-----------------------------------------------------------------------.
-* | ESC |CmdUp|CmdDo| | | | | PgUp| UP | PgDo|PrtSc| DEL |
-* |-----------------------------------------------------------------------|
-* | |WBlkL|WBlkR| |ScrF | |CapsL| LEFT| DOWN|RIGHT| | |
-* |-----------------------------------------------------------------------|
-* | |BlckL|BlckR| | | | | HOME| | END | | |
-* |-----------------------------------------------------------------------|
-* | | | | | | MOUSE | | | | | LED |
-* `-----------------------------------------------------------------------'
-*/
-[_MAC_SHORTCUT] = LAYOUT_planck_grid(
-KC_ESC ,LGUI(KC_UP) ,LGUI(KC_DOWN) ,XXXXXXX,XXXXXXX ,XXXXXXX,XXXXXXX,KC_PGUP,KC_UP,KC_PGDN,KC_PSCR,KC_DEL,
-_______,LALT(LSFT(KC_LEFT)),LALT(LSFT(KC_RIGHT)),XXXXXXX,LGUI(LCTL(KC_F)),XXXXXXX,KC_CAPS,KC_LEFT,KC_DOWN,KC_RIGHT,XXXXXXX,XXXXXXX,
-_______,LGUI(LSFT(KC_LEFT)),LGUI(LSFT(KC_RIGHT)),XXXXXXX,XXXXXXX ,XXXXXXX,XXXXXXX,KC_HOME,XXXXXXX,KC_END,XXXXXXX,XXXXXXX,
-KC_TRNS,_______ ,_______ ,MOUSE ,MOUSE ,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,BACKLIT
-),
-/* 10: mouse layer
-* ,-----------------------------------------------------------------------.
-* | | | |Mo_Up| | | |M_WhL|M_WhU|M_WhR| |RESET|
-* |-----------------------------------------------------------------------|
-* | | |Mo_Le|Mo_Do|Mo_Ri| | |M_Bt1|M_WhD|M_Bt2| | |
-* |-----------------------------------------------------------------------|
-* | | | | | | | |M_AC0|M_AC1|M_AC2| |WINDO|
-* |-----------------------------------------------------------------------|
-* | | | | | | GO_DEFT | | | | | MAC |
-* `-----------------------------------------------------------------------'
-*/
-[_MOUSE] = LAYOUT_planck_grid(
-XXXXXXX,XXXXXXX,XXXXXXX,KC_MS_U,XXXXXXX,XXXXXXX,XXXXXXX,KC_WH_L,KC_WH_U,KC_WH_R,XXXXXXX,RESET,
-XXXXXXX,XXXXXXX,KC_MS_L,KC_MS_D,KC_MS_R,XXXXXXX,XXXXXXX,KC_BTN1,KC_WH_D,KC_BTN2,XXXXXXX,XXXXXXX,
-XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,KC_ACL0,KC_ACL1,KC_ACL2,XXXXXXX,WINDOW,
-XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,EXT_MOUSE,EXT_MOUSE,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,MAC
-)
-};
-
-bool process_record_user(uint16_t keycode, keyrecord_t *record) {
- switch(keycode) {
- case WINDOW:
- if (record->event.pressed) {
- set_single_persistent_default_layer(_WINDOW);
- }
- return false;
- break;
- case MAC:
- if (record->event.pressed) {
- set_single_persistent_default_layer(_MAC);
- }
- return false;
- break;
- case BACKLIT:
- if (record->event.pressed) {
- #ifdef BACKLIGHT_ENABLE
- backlight_step();
- #endif
- }
- return false;
- break;
- case MOUSE:
- if (record->event.pressed) {
- layer_on(_MOUSE);
- }
- return false;
- break;
- case EXT_MOUSE:
- if (record->event.pressed) {
- layer_off(_MOUSE);
- layer_off(_WINDOW_SHORTCUT);
- layer_off(_MAC_SHORTCUT);
- }
- return false;
- break;
- }
- return true;
-};
diff --git a/keyboards/planck/keymaps/tong92/readme.md b/keyboards/planck/keymaps/tong92/readme.md
deleted file mode 100644
index 328d005f6f..0000000000
--- a/keyboards/planck/keymaps/tong92/readme.md
+++ /dev/null
@@ -1,66 +0,0 @@
-# The Tong92 Layout
-- MIT Layout
-- my keymap for WIndow User
-- Lower && Upper Hold -> Mouse Layer
-- Mouse Layer : space -> Default Layer
-- No Audio
-
-## 1. Default Layer - Qwerty
-
- ,-----------------------------------------------------------------------.
- |Tab | q | w | e | r | t | y | u | i | o | p | BS |
- |-----------------------------------------------------------------------|
- |Ctrl | a | s | d | f | g | h | j | k | l | ; |enter|
- |-----------------------------------------------------------------------|
- |Shift| z | x | c | v | b | n | m | , | . | / |Shift|
- |-----------------------------------------------------------------------|
- | Fn |Ctrl | Win | Alt |Lower| Space |Upper| ' | [ | ] | Alt |
- `-----------------------------------------------------------------------'
-
-## 2. Lower Layer
-
- ,-----------------------------------------------------------------------.
- | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | BS |
- |-----------------------------------------------------------------------|
- | | F1 | F2 | F3 | F4 | F5 | F6 | - | + | [ | ] | \ |
- |-----------------------------------------------------------------------|
- | | F7 | F8 | F9 | F10 | F11 | F12 | | HOME| PgUp| UP | PgDo|
- |-----------------------------------------------------------------------|
- | | | | | | SPACE |mouse| END | LEFT| DOWN|RIGHT|
- `-----------------------------------------------------------------------'
-
-## 3. Upper Layer
-
- ,-----------------------------------------------------------------------.
- | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | BS |
- |-----------------------------------------------------------------------|
- | | F1 | F2 | F3 | F4 | F5 | F6 | _ | = | { | } | | |
- |-----------------------------------------------------------------------|
- | | F7 | F8 | F9 | F10 | F11 | F12 | | HOME| PgUp| UP | PgDo|
- |-----------------------------------------------------------------------|
- | | | | |mouse| SPACE | | END | LEFT| DOWN|RIGHT|
- `-----------------------------------------------------------------------'
-
-## 4. Fn Layer - Window Shortcuts
-
- ,-----------------------------------------------------------------------.
- | ESC |WinOf|WinUp| | |Sh+Ca| | PgUp| UP | PgDo|PrtSc| DEL |
- |-----------------------------------------------------------------------|
- | |WinLe|WinDo|WinRi| |Al+Ca|CapsL| LEFT| DOWN|RIGHT| | |
- |-----------------------------------------------------------------------|
- | |WinLW|WinRW| | |Ct+Ca|ScroL| HOME| | END | | |
- |-----------------------------------------------------------------------|
- | |DeskL|DeskR|DeskX|Task | ChangeLang| | | | | LED |
- `-----------------------------------------------------------------------'
-
-## 5. Mouse Layer
-
- ,-----------------------------------------------------------------------.
- | | | |Mo_Up| | | |M_WhL|M_WhU|M_WhR| |RESET|
- |-----------------------------------------------------------------------|
- | | |Mo_Le|Mo_Do|Mo_Ri| | |M_Bt1|M_WhD|M_Bt2| | |
- |-----------------------------------------------------------------------|
- | | | | | | | |M_AC0|M_AC1|M_AC2| | |
- |-----------------------------------------------------------------------|
- | | | | | |GO_DEFAULT | | | | | |
- `-----------------------------------------------------------------------' \ No newline at end of file
diff --git a/keyboards/planck/keymaps/tong92/rules.mk b/keyboards/planck/keymaps/tong92/rules.mk
deleted file mode 100644
index f836e54d5e..0000000000
--- a/keyboards/planck/keymaps/tong92/rules.mk
+++ /dev/null
@@ -1,59 +0,0 @@
-#----------------------------------------------------------------------------
-# On command line:
-#
-# make all = Make software.
-#
-# make clean = Clean out built project files.
-#
-# make coff = Convert ELF to AVR COFF.
-#
-# make extcoff = Convert ELF to AVR Extended COFF.
-#
-# make program = Download the hex file to the device.
-# Please customize your programmer settings(PROGRAM_CMD)
-#
-# make teensy = Download the hex file to the device, using teensy_loader_cli.
-# (must have teensy_loader_cli installed).
-#
-# make dfu = Download the hex file to the device, using dfu-programmer (must
-# have dfu-programmer installed).
-#
-# make flip = Download the hex file to the device, using Atmel FLIP (must
-# have Atmel FLIP installed).
-#
-# make dfu-ee = Download the eeprom file to the device, using dfu-programmer
-# (must have dfu-programmer installed).
-#
-# make flip-ee = Download the eeprom file to the device, using Atmel FLIP
-# (must have Atmel FLIP installed).
-#
-# make debug = Start either simulavr or avarice as specified for debugging,
-# with avr-gdb or avr-insight as the front end for debugging.
-#
-# make filename.s = Just compile filename.c into the assembler code only.
-#
-# make filename.i = Create a preprocessed source file for use in submitting
-# bug reports to the GCC project.
-#
-# To rebuild project do "make clean" then "make all".
-#----------------------------------------------------------------------------
-# Build Options
-# change to "no" to disable the options, or define them in the makefile.mk in
-# the appropriate keymap folder that will get included automatically
-#
-BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
-MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
-EXTRAKEY_ENABLE = no # Audio control and System control(+450)
-CONSOLE_ENABLE = no # Console for debug(+400)
-COMMAND_ENABLE = yes # Commands for debug and configuration
-NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
-BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
-MIDI_ENABLE = no # MIDI controls
-AUDIO_ENABLE = no # Audio output on port C6
-UNICODE_ENABLE = no # Unicode
-BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
-RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
-
-# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
-SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
-