Browse Source

total clean up based on current keyboard setups

master
kemonine 4 months ago
parent
commit
568624be19
  1. 0
      attic/layouts/7skb/blank.json
  2. 0
      attic/layouts/7skb/blank.png
  3. 0
      attic/layouts/7skb/layer-1.json
  4. 0
      attic/layouts/7skb/layer-1.png
  5. 0
      attic/layouts/7skb/layer-2-and-3.json
  6. 0
      attic/layouts/7skb/layer-2-and-3.png
  7. 0
      attic/layouts/7skb/layout-misc.json
  8. 0
      attic/layouts/7skb/layout-misc.png
  9. 0
      attic/layouts/corne/6 column/layer-1---default.json
  10. 0
      attic/layouts/corne/6 column/layer-1---default.png
  11. 0
      attic/layouts/corne/6 column/layer-2---function.json
  12. 0
      attic/layouts/corne/6 column/layer-2---function.png
  13. 0
      attic/layouts/kbdfans/kbd67/rev2/README.md
  14. 0
      attic/layouts/kbdfans/kbd67/rev2/config.h
  15. 0
      attic/layouts/kbdfans/kbd67/rev2/kbdfans_kbd67_rev2_kemonine.hex
  16. 0
      attic/layouts/kbdfans/kbd67/rev2/keymap.c
  17. 0
      attic/layouts/kbdfans/kbd67/rev2/layer-1.json
  18. 0
      attic/layouts/kbdfans/kbd67/rev2/layer-1.png
  19. 0
      attic/layouts/kbdfans/kbd67/rev2/layer-2.json
  20. 0
      attic/layouts/kbdfans/kbd67/rev2/layer-2.png
  21. 0
      attic/layouts/kbdfans/kbd67/rev2/layer-3.json
  22. 0
      attic/layouts/kbdfans/kbd67/rev2/layer-3.png
  23. 0
      attic/layouts/kbdfans/kbd67/rev2/rules.mk
  24. 0
      attic/layouts/lily58pro/layer-1---default.json
  25. 0
      attic/layouts/lily58pro/layer-1---default.png
  26. 0
      attic/layouts/lily58pro/layer-2---function.json
  27. 0
      attic/layouts/lily58pro/layer-2---function.png
  28. 0
      attic/layouts/makerdiary/m60/layer-1---default.json
  29. 0
      attic/layouts/makerdiary/m60/layer-1---default.png
  30. 0
      attic/layouts/makerdiary/m60/layer-2---function.json
  31. 0
      attic/layouts/makerdiary/m60/layer-2---function.png
  32. 0
      attic/layouts/massdrop/alt/README.md
  33. 0
      attic/layouts/massdrop/alt/config.h
  34. 0
      attic/layouts/massdrop/alt/keymap.c
  35. 0
      attic/layouts/massdrop/alt/layer-1.json
  36. 0
      attic/layouts/massdrop/alt/layer-1.png
  37. 0
      attic/layouts/massdrop/alt/layer-2.json
  38. 0
      attic/layouts/massdrop/alt/layer-2.png
  39. 0
      attic/layouts/massdrop/alt/layer-3.json
  40. 0
      attic/layouts/massdrop/alt/layer-3.png
  41. 0
      attic/layouts/massdrop/alt/massdrop_alt_kemonine.bin
  42. 0
      attic/layouts/massdrop/alt/rules.mk
  43. 0
      attic/layouts/nullbitsco/tidbit/layer-1---navigation.json
  44. 0
      attic/layouts/nullbitsco/tidbit/layer-1---navigation.png
  45. 0
      attic/layouts/nullbitsco/tidbit/layer-2---mouse.json
  46. 0
      attic/layouts/nullbitsco/tidbit/layer-2---mouse.png
  47. 0
      attic/layouts/nullbitsco/tidbit/layer-3---number-pad.json
  48. 0
      attic/layouts/nullbitsco/tidbit/layer-3---number-pad.png
  49. 0
      attic/layouts/nullbitsco/tidbit/layer-4---zmk.json
  50. 0
      attic/layouts/nullbitsco/tidbit/layer-4---zmk.png
  51. 0
      attic/layouts/qvex/lynepad/README.md
  52. 0
      attic/layouts/qvex/lynepad/config.h
  53. 0
      attic/layouts/qvex/lynepad/keymap.c
  54. 0
      attic/layouts/qvex/lynepad/layer-1.json
  55. 0
      attic/layouts/qvex/lynepad/layer-1.png
  56. 0
      attic/layouts/qvex/lynepad/layer-2---lr-library.json
  57. 0
      attic/layouts/qvex/lynepad/layer-2---lr-library.png
  58. 0
      attic/layouts/qvex/lynepad/layer-3---lr-develop.json
  59. 0
      attic/layouts/qvex/lynepad/layer-3---lr-develop.png
  60. 0
      attic/layouts/qvex/lynepad/qvex_lynepad_kemonine.hex
  61. 0
      attic/layouts/qvex/lynepad/rules.mk
  62. 0
      attic/layouts/tg4x/layer-1---default.json
  63. 0
      attic/layouts/tg4x/layer-1---default.png
  64. 0
      attic/layouts/tg4x/layer-2---function.json
  65. 0
      attic/layouts/tg4x/layer-2---function.png
  66. 0
      attic/layouts/tg4x/layer-2---other.json
  67. 0
      attic/layouts/tg4x/layer-2---other.png
  68. 5
      attic/qmk/kbdfans/kbd67/rev2/README.md
  69. 15
      attic/qmk/kbdfans/kbd67/rev2/config.h
  70. 202
      attic/qmk/kbdfans/kbd67/rev2/keymap.c
  71. 2
      attic/qmk/kbdfans/kbd67/rev2/rules.mk
  72. 5
      attic/qmk/massdrop/alt/README.md
  73. 13
      attic/qmk/massdrop/alt/config.h
  74. 266
      attic/qmk/massdrop/alt/keymap.c
  75. 2
      attic/qmk/massdrop/alt/rules.mk
  76. 5
      attic/qmk/qvex/lynepad/README.md
  77. 33
      attic/qmk/qvex/lynepad/config.h
  78. 333
      attic/qmk/qvex/lynepad/keymap.c
  79. 1
      attic/qmk/qvex/lynepad/rules.mk
  80. 0
      attic/zmk-config/config/boards/arm/itsybitsy_nrf52840/CMakeLists.txt
  81. 0
      attic/zmk-config/config/boards/arm/itsybitsy_nrf52840/Kconfig
  82. 0
      attic/zmk-config/config/boards/arm/itsybitsy_nrf52840/Kconfig.board
  83. 0
      attic/zmk-config/config/boards/arm/itsybitsy_nrf52840/Kconfig.defconfig
  84. 0
      attic/zmk-config/config/boards/arm/itsybitsy_nrf52840/README.md
  85. 0
      attic/zmk-config/config/boards/arm/itsybitsy_nrf52840/board.cmake
  86. 0
      attic/zmk-config/config/boards/arm/itsybitsy_nrf52840/itsybitsy_nrf52840.dts
  87. 0
      attic/zmk-config/config/boards/arm/itsybitsy_nrf52840/itsybitsy_nrf52840.yaml
  88. 0
      attic/zmk-config/config/boards/arm/itsybitsy_nrf52840/itsybitsy_nrf52840_defconfig
  89. 0
      attic/zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/CMakeLists.txt
  90. 0
      attic/zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/Kconfig
  91. 0
      attic/zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/Kconfig.board
  92. 0
      attic/zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/Kconfig.defconfig
  93. 0
      attic/zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/README.md
  94. 0
      attic/zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/arduino_pro_micro_pins.dtsi
  95. 0
      attic/zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/board.cmake
  96. 0
      attic/zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/sparkfun_pro_nrf52840_mini.dts
  97. 0
      attic/zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/sparkfun_pro_nrf52840_mini.yaml
  98. 0
      attic/zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/sparkfun_pro_nrf52840_mini_defconfig
  99. 0
      attic/zmk-config/config/boards/shields/7skb/7skb.conf
  100. 0
      attic/zmk-config/config/boards/shields/7skb/7skb.dtsi
  101. Some files were not shown because too many files have changed in this diff Show More

0
7skb/blank.json → attic/layouts/7skb/blank.json

0
7skb/blank.png → attic/layouts/7skb/blank.png

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

0
7skb/layer-1.json → attic/layouts/7skb/layer-1.json

0
7skb/layer-1.png → attic/layouts/7skb/layer-1.png

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

0
7skb/layer-2-and-3.json → attic/layouts/7skb/layer-2-and-3.json

0
7skb/layer-2-and-3.png → attic/layouts/7skb/layer-2-and-3.png

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

0
7skb/layout-misc.json → attic/layouts/7skb/layout-misc.json

0
7skb/layout-misc.png → attic/layouts/7skb/layout-misc.png

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

0
corne/6 column/layer-1---default.json → attic/layouts/corne/6 column/layer-1---default.json

0
corne/6 column/layer-1---default.png → attic/layouts/corne/6 column/layer-1---default.png

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

0
corne/6 column/layer-2---function.json → attic/layouts/corne/6 column/layer-2---function.json

0
corne/6 column/layer-2---function.png → attic/layouts/corne/6 column/layer-2---function.png

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

0
kbdfans/kbd67/rev2/README.md → attic/layouts/kbdfans/kbd67/rev2/README.md

0
kbdfans/kbd67/rev2/config.h → attic/layouts/kbdfans/kbd67/rev2/config.h

0
kbdfans/kbd67/rev2/kbdfans_kbd67_rev2_kemonine.hex → attic/layouts/kbdfans/kbd67/rev2/kbdfans_kbd67_rev2_kemonine.hex

0
kbdfans/kbd67/rev2/keymap.c → attic/layouts/kbdfans/kbd67/rev2/keymap.c

0
kbdfans/kbd67/rev2/layer-1.json → attic/layouts/kbdfans/kbd67/rev2/layer-1.json

0
kbdfans/kbd67/rev2/layer-1.png → attic/layouts/kbdfans/kbd67/rev2/layer-1.png

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

0
kbdfans/kbd67/rev2/layer-2.json → attic/layouts/kbdfans/kbd67/rev2/layer-2.json

0
kbdfans/kbd67/rev2/layer-2.png → attic/layouts/kbdfans/kbd67/rev2/layer-2.png

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

0
kbdfans/kbd67/rev2/layer-3.json → attic/layouts/kbdfans/kbd67/rev2/layer-3.json

0
kbdfans/kbd67/rev2/layer-3.png → attic/layouts/kbdfans/kbd67/rev2/layer-3.png

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

0
kbdfans/kbd67/rev2/rules.mk → attic/layouts/kbdfans/kbd67/rev2/rules.mk

0
lily58pro/layer-1---default.json → attic/layouts/lily58pro/layer-1---default.json

0
lily58pro/layer-1---default.png → attic/layouts/lily58pro/layer-1---default.png

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

0
lily58pro/layer-2---function.json → attic/layouts/lily58pro/layer-2---function.json

0
lily58pro/layer-2---function.png → attic/layouts/lily58pro/layer-2---function.png

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

0
makerdiary/m60/layer-1---default.json → attic/layouts/makerdiary/m60/layer-1---default.json

0
makerdiary/m60/layer-1---default.png → attic/layouts/makerdiary/m60/layer-1---default.png

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

0
makerdiary/m60/layer-2---function.json → attic/layouts/makerdiary/m60/layer-2---function.json

0
makerdiary/m60/layer-2---function.png → attic/layouts/makerdiary/m60/layer-2---function.png

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

0
massdrop/alt/README.md → attic/layouts/massdrop/alt/README.md

0
massdrop/alt/config.h → attic/layouts/massdrop/alt/config.h

0
massdrop/alt/keymap.c → attic/layouts/massdrop/alt/keymap.c

0
massdrop/alt/layer-1.json → attic/layouts/massdrop/alt/layer-1.json

0
massdrop/alt/layer-1.png → attic/layouts/massdrop/alt/layer-1.png

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

0
massdrop/alt/layer-2.json → attic/layouts/massdrop/alt/layer-2.json

0
massdrop/alt/layer-2.png → attic/layouts/massdrop/alt/layer-2.png

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

0
massdrop/alt/layer-3.json → attic/layouts/massdrop/alt/layer-3.json

0
massdrop/alt/layer-3.png → attic/layouts/massdrop/alt/layer-3.png

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

0
massdrop/alt/massdrop_alt_kemonine.bin → attic/layouts/massdrop/alt/massdrop_alt_kemonine.bin

0
massdrop/alt/rules.mk → attic/layouts/massdrop/alt/rules.mk

0
nullbitsco/tidbit/layer-1---navigation.json → attic/layouts/nullbitsco/tidbit/layer-1---navigation.json

0
nullbitsco/tidbit/layer-1---navigation.png → attic/layouts/nullbitsco/tidbit/layer-1---navigation.png

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

0
nullbitsco/tidbit/layer-2---mouse.json → attic/layouts/nullbitsco/tidbit/layer-2---mouse.json

0
nullbitsco/tidbit/layer-2---mouse.png → attic/layouts/nullbitsco/tidbit/layer-2---mouse.png

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

0
nullbitsco/tidbit/layer-3---number-pad.json → attic/layouts/nullbitsco/tidbit/layer-3---number-pad.json

0
nullbitsco/tidbit/layer-3---number-pad.png → attic/layouts/nullbitsco/tidbit/layer-3---number-pad.png

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

0
nullbitsco/tidbit/layer-4---zmk.json → attic/layouts/nullbitsco/tidbit/layer-4---zmk.json

0
nullbitsco/tidbit/layer-4---zmk.png → attic/layouts/nullbitsco/tidbit/layer-4---zmk.png

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

0
qvex/lynepad/README.md → attic/layouts/qvex/lynepad/README.md

0
qvex/lynepad/config.h → attic/layouts/qvex/lynepad/config.h

0
qvex/lynepad/keymap.c → attic/layouts/qvex/lynepad/keymap.c

0
qvex/lynepad/layer-1.json → attic/layouts/qvex/lynepad/layer-1.json

0
qvex/lynepad/layer-1.png → attic/layouts/qvex/lynepad/layer-1.png

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

0
qvex/lynepad/layer-2---lr-library.json → attic/layouts/qvex/lynepad/layer-2---lr-library.json

0
qvex/lynepad/layer-2---lr-library.png → attic/layouts/qvex/lynepad/layer-2---lr-library.png

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 47 KiB

0
qvex/lynepad/layer-3---lr-develop.json → attic/layouts/qvex/lynepad/layer-3---lr-develop.json

0
qvex/lynepad/layer-3---lr-develop.png → attic/layouts/qvex/lynepad/layer-3---lr-develop.png

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

0
qvex/lynepad/qvex_lynepad_kemonine.hex → attic/layouts/qvex/lynepad/qvex_lynepad_kemonine.hex

0
qvex/lynepad/rules.mk → attic/layouts/qvex/lynepad/rules.mk

0
tg4x/layer-1---default.json → attic/layouts/tg4x/layer-1---default.json

0
tg4x/layer-1---default.png → attic/layouts/tg4x/layer-1---default.png

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

0
tg4x/layer-2---function.json → attic/layouts/tg4x/layer-2---function.json

0
tg4x/layer-2---function.png → attic/layouts/tg4x/layer-2---function.png

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

0
tg4x/layer-2---other.json → attic/layouts/tg4x/layer-2---other.json

0
tg4x/layer-2---other.png → attic/layouts/tg4x/layer-2---other.png

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

5
attic/qmk/kbdfans/kbd67/rev2/README.md

@ -0,0 +1,5 @@
# kbd67 rev2
The information, keymaps, firmware and keyboard layout for KemoNine's setup on the kbdfans kbd67 rev2 keyboard.
Layout files were generated by [www.keyboard-layout-editor.com](http://www.keyboard-layout-editor.com/)

15
attic/qmk/kbdfans/kbd67/rev2/config.h

@ -0,0 +1,15 @@
#define TAPPING_TERM 200
#undef RGBLIGHT_ANIMATIONS
#define RGBLIGHT_LAYERS
#define GRAVE_ESC_CTRL_OVERRIDE
// Mouse settings
#define MOUSEKEY_DELAY 175
#define MOUSEKEY_WHEEL_DELAY 175
#define MOUSEKEY_INTERVAL 20
#define MOUSEKEY_TIME_TO_MAX 15
#define MOUSEKEY_MAX_SPEED 5
#define MOUSEKEY_WHEEL_INTERVAL 50
#define MOUSEKEY_WHEEL_TIME_TO_MAX 20
#define MOUSEKEY_WHEEL_MAX_SPEED 10
#define MK_COMBINED

202
attic/qmk/kbdfans/kbd67/rev2/keymap.c

@ -0,0 +1,202 @@
#include "debug.h"
#include "action_layer.h"
#include "version.h"
#include QMK_KEYBOARD_H
keymap_config_t keymap_config;
uint8_t cur_dance(qk_tap_dance_state_t *state);
void al_finished(qk_tap_dance_state_t *state, void *user_data);
void al_reset(qk_tap_dance_state_t *state, void *user_data);
typedef struct {
bool is_press_action;
uint8_t state;
} tap;
enum {
SINGLE_TAP = 1,
SINGLE_HOLD,
DOUBLE_TAP
};
enum {
ACCEL_0 = 0,
ACCEL_1 = 1,
ACCEL_2 = 2,
};
enum {
ACCEL = SAFE_RANGE,
ACCEL_ADJ,
PROG,
};
static uint8_t acceleration_level = ACCEL_0;
void change_accel(void) {
acceleration_level++;
if (acceleration_level > ACCEL_2) {
acceleration_level = ACCEL_0;
}
}
enum td_keycodes {
LAYERS // Our example key: `MOD(1)` when held, `TG(2)` when tapped. Add additional keycodes for each tapdance.
};
qk_tap_dance_action_t tap_dance_actions[] = {
[LAYERS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, al_finished, al_reset)
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_65_ansi(KC_GESC, 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_HOME,
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_PGUP,
LM(1, MOD_LALT), 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_PGDN,
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_UP, KC_END,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, TD(LAYERS), KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
[1] = LAYOUT_65_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_DEL, KC_DEL,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, PROG, KC_INS,
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_MEDIA_PLAY_PAUSE, KC_RSFT, KC_VOLU, KC_MUTE,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_VAD, KC_VOLD, RGB_VAI),
[2] = LAYOUT_65_ansi(KC_ESC, KC_ESC, 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, LCTL(LALT(KC_TAB)), KC_MS_BTN2, KC_MS_UP, KC_MS_BTN1, KC_NO, KC_NO, KC_MS_WH_UP, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
KC_NO, LGUI(KC_DOWN), KC_MS_LEFT, KC_MS_DOWN, KC_MS_RIGHT, KC_NO, KC_NO, KC_MS_WH_LEFT, KC_MS_WH_RIGHT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
ACCEL, KC_NO, KC_ESC, KC_NO, KC_NO, KC_NO, KC_NO, KC_MS_WH_DOWN, KC_NO, KC_NO, KC_NO, KC_RSFT, KC_NO, KC_NO,
KC_LCTL, KC_NO, KC_LALT, ACCEL_ADJ, TG(2), KC_RALT, KC_RCTL, KC_NO, KC_NO, KC_NO),
};
// Customized HSV values for layer highlights
#define HSV_KMN_ORANGE 10,255, RGBLIGHT_LIMIT_VAL
#define HSV_KMN_CYAN 128, 255, RGBLIGHT_LIMIT_VAL
#define HSV_KMN_PURPLE 191, 255, RGBLIGHT_LIMIT_VAL
// Standard layout == Layer 0 == Orange
const rgblight_segment_t PROGMEM led_underglow_orange[] = RGBLIGHT_LAYER_SEGMENTS(
{0, RGBLED_NUM, HSV_KMN_ORANGE}
);
// Modifiers == Layer 1 == Cyan
const rgblight_segment_t PROGMEM led_underglow_cyan[] = RGBLIGHT_LAYER_SEGMENTS(
{0, RGBLED_NUM, HSV_KMN_CYAN}
);
// Mouse keys == Layer 3 == Purple
const rgblight_segment_t PROGMEM led_underglow_purple[] = RGBLIGHT_LAYER_SEGMENTS(
{0, RGBLED_NUM, HSV_KMN_PURPLE}
);
// Array of layers for management
const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
led_underglow_orange,
led_underglow_cyan,
led_underglow_purple
);
// Layer color init
void keyboard_post_init_user(void) {
rgblight_layers = my_rgb_layers;
}
// Adjust layers based on which is active
layer_state_t layer_state_set_user(layer_state_t state) {
rgblight_set_layer_state(0, layer_state_cmp(state, 0));
rgblight_set_layer_state(1, layer_state_cmp(state, 1));
rgblight_set_layer_state(2, layer_state_cmp(state, 2));
return state;
}
// Runs just one time when the keyboard initializes.
void matrix_init_user(void) {
};
// Runs constantly in the background, in a loop.
void matrix_scan_user(void) {
};
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case ACCEL:
if (record->event.pressed) {
switch(acceleration_level) {
case ACCEL_0:
register_code16(KC_ACL0);
break;
case ACCEL_1:
register_code16(KC_ACL1);
break;
case ACCEL_2:
register_code16(KC_ACL2);
break;
}
} else {
switch(acceleration_level) {
case ACCEL_0:
unregister_code16(KC_ACL0);
break;
case ACCEL_1:
unregister_code16(KC_ACL1);
break;
case ACCEL_2:
unregister_code16(KC_ACL2);
break;
}
}
return false; // Skip all further processing of this key
case ACCEL_ADJ:
if (record->event.pressed) {
}
else {
change_accel();
}
case PROG:
if (record->event.pressed) {
rgblight_disable_noeeprom();
reset_keyboard();
}
default:
return true; // Process all other keycodes normally
}
}
uint8_t cur_dance(qk_tap_dance_state_t *state) {
if (state->count == 1) {
if (!state->pressed) return SINGLE_TAP;
else return SINGLE_HOLD;
} else if (state->count == 2) return DOUBLE_TAP;
else return 8;
}
// Initialize tap structure associated with example tap dance key
static tap al_tap_state = {
.is_press_action = true,
.state = 0
};
// Functions that control what our tap dance key does
void al_finished(qk_tap_dance_state_t *state, void *user_data) {
al_tap_state.state = cur_dance(state);
switch (al_tap_state.state) {
case SINGLE_TAP:
layer_on(1); // Activate layer 1 immediately since we probably are holding this down ; if released it'll go away fast and shouldn't be an issue
break;
case SINGLE_HOLD:
layer_on(1); // Activate layer 1 since that's what the intent is
break;
case DOUBLE_TAP:
// Check to see if the layer is already set
if (layer_state_is(2)) {
// If already set, then switch it off
layer_off(2);
} else {
// If not already set, then switch the layer on
layer_on(2);
}
break;
}
}
void al_reset(qk_tap_dance_state_t *state, void *user_data) {
// If the key was held down and now is released then switch off the layer
if (al_tap_state.state == SINGLE_HOLD) {
layer_off(1); // Reset state appropriately
}
al_tap_state.state = 0;
}

2
attic/qmk/kbdfans/kbd67/rev2/rules.mk

@ -0,0 +1,2 @@
MOUSEKEY_ENABLE = yes
TAP_DANCE_ENABLE = yes

5
attic/qmk/massdrop/alt/README.md

@ -0,0 +1,5 @@
# ALT
The information, keymaps, firmware and keyboard layout for KemoNine's setup on the massdrop ALT keyboard.
Layout files were generated by [www.keyboard-layout-editor.com](http://www.keyboard-layout-editor.com/)

13
attic/qmk/massdrop/alt/config.h

@ -0,0 +1,13 @@
#define TAPPING_TERM 200
#define GRAVE_ESC_CTRL_OVERRIDE
// Mouse settings
#define MOUSEKEY_DELAY 175
#define MOUSEKEY_WHEEL_DELAY 175
#define MOUSEKEY_INTERVAL 20
#define MOUSEKEY_TIME_TO_MAX 15
#define MOUSEKEY_MAX_SPEED 5
#define MOUSEKEY_WHEEL_INTERVAL 50
#define MOUSEKEY_WHEEL_TIME_TO_MAX 20
#define MOUSEKEY_WHEEL_MAX_SPEED 10
#define MK_COMBINED

266
attic/qmk/massdrop/alt/keymap.c

@ -0,0 +1,266 @@
#include "debug.h"
#include "action_layer.h"
#include "version.h"
#include QMK_KEYBOARD_H
#define TAPPING_TERM 200
#define CAPS_LED 30
#define LALT_LED 60
#define RGB_KMN_NO_COLOR 0, 0, 0
#define RGB_KMN_CYAN 128, 255, 255
#define RGB_KMN_PRPL 215, 195, 42
#define RGB_KMN_CYAN_HILIGHT 0, 191, 255
#define HS_KMN_ORANGE 10,255
#define HS_KMN_CYAN 128, 255
keymap_config_t keymap_config;
rgb_config_t rgb_matrix_config;
uint8_t cur_dance(qk_tap_dance_state_t *state);
void al_finished(qk_tap_dance_state_t *state, void *user_data);
void al_reset(qk_tap_dance_state_t *state, void *user_data);
enum alt_keycodes {
U_T_AUTO = SAFE_RANGE, //USB Extra Port Toggle Auto Detect / Always Active
U_T_AGCR, //USB Toggle Automatic GCR control
DBG_TOG, //DEBUG Toggle On / Off
DBG_MTRX, //DEBUG Toggle Matrix Prints
DBG_KBD, //DEBUG Toggle Keyboard Prints
DBG_MOU, //DEBUG Toggle Mouse Prints
MD_BOOT, //Restart into bootloader after hold timeout
};
typedef struct {
bool is_press_action;
uint8_t state;
} tap;
enum {
SINGLE_TAP = 1,
SINGLE_HOLD,
DOUBLE_TAP
};
enum {
ACCEL_0 = 0,
ACCEL_1 = 1,
ACCEL_2 = 2,
};
enum {
ACCEL = SAFE_RANGE,
ACCEL_ADJ,
};
static uint8_t acceleration_level = ACCEL_0;
void change_accel(void) {
acceleration_level++;
if (acceleration_level > ACCEL_2) {
acceleration_level = ACCEL_0;
}
}
enum td_keycodes {
LAYERS // Our example key: `MOD(1)` when held, `TG(2)` when tapped. Add additional keycodes for each tapdance.
};
qk_tap_dance_action_t tap_dance_actions[] = {
[LAYERS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, al_finished, al_reset)
};
const uint8_t PROGMEM layercolors[][2] = {
[0] = {HS_KMN_ORANGE},
[1] = {HS_KMN_CYAN},
[2] = {HS_KMN_CYAN}
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_65_ansi_blocker(KC_GESC, 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_HOME,
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_PGUP,
LM(1, MOD_LALT), 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_PGDN,
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_UP, KC_END,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, TD(LAYERS), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
[1] = LAYOUT_65_ansi_blocker(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_DEL, KC_DEL,
KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_INS,
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_MEDIA_PLAY_PAUSE, KC_RSFT, KC_VOLU, KC_MUTE,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_RALT, RGB_VAD, KC_VOLD, RGB_VAI),
[2] = LAYOUT_65_ansi_blocker(KC_ESC, KC_ESC, 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, LCTL(LALT(KC_TAB)), KC_MS_BTN2, KC_MS_UP, KC_MS_BTN1, KC_NO, KC_NO, KC_MS_WH_UP, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
KC_NO, LGUI(KC_DOWN), KC_MS_LEFT, KC_MS_DOWN, KC_MS_RIGHT, KC_NO, KC_NO, KC_MS_WH_LEFT, KC_MS_WH_RIGHT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
ACCEL, KC_NO, KC_ESC, KC_NO, KC_NO, KC_NO, KC_NO, KC_MS_WH_DOWN, KC_NO, KC_NO, KC_NO, KC_RSFT, KC_NO, KC_NO,
KC_LCTL, KC_NO, KC_LALT, ACCEL_ADJ, TG(2), KC_NO, KC_NO, KC_NO, KC_NO),
};
const uint8_t PROGMEM ledcolors[][DRIVER_LED_TOTAL][3] = {
[1] = {
{RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN},
{RGB_KMN_CYAN}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN},
{RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_CYAN},
{RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_CYAN}, {RGB_KMN_NO_COLOR}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN},
{RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN},
// Underglow == 38 LEDS
{RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN},
{RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN},
{RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN},
{RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}, {RGB_KMN_CYAN}
},
[2] = {
{RGB_KMN_PRPL}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR},
{RGB_KMN_NO_COLOR}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_PRPL}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR},
{RGB_KMN_NO_COLOR}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR},
{RGB_KMN_PRPL}, {RGB_KMN_NO_COLOR}, {RGB_KMN_PRPL}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_PRPL}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR},
{RGB_KMN_PRPL}, {RGB_KMN_NO_COLOR}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR}, {RGB_KMN_NO_COLOR},
// Underglow == 38 LEDS
{RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL},
{RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL},
{RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL},
{RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}, {RGB_KMN_PRPL}
},
};
// Runs just one time when the keyboard initializes.
void matrix_init_user(void) {
rgb_matrix_config.raw = pgm_read_dword(EECONFIG_RGB_MATRIX);
rgb_matrix_enable();
rgb_matrix_sethsv(10, 255, 95);
rgb_matrix_mode(RGB_MATRIX_SOLID_COLOR);
};
// Runs constantly in the background, in a loop.
void matrix_scan_user(void) {
};
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case ACCEL:
if (record->event.pressed) {
switch(acceleration_level) {
case ACCEL_0:
register_code16(KC_ACL0);
break;
case ACCEL_1:
register_code16(KC_ACL1);
break;
case ACCEL_2:
register_code16(KC_ACL2);
break;
}
} else {
switch(acceleration_level) {
case ACCEL_0:
unregister_code16(KC_ACL0);
break;
case ACCEL_1:
unregister_code16(KC_ACL1);
break;
case ACCEL_2:
unregister_code16(KC_ACL2);
break;
}
}
return false; // Skip all further processing of this key
case ACCEL_ADJ:
if (record->event.pressed) {
}
else {
change_accel();
}
default:
return true; // Process all other keycodes normally
}
}
uint8_t cur_dance(qk_tap_dance_state_t *state) {
if (state->count == 1) {
if (!state->pressed) return SINGLE_TAP;
else return SINGLE_HOLD;
} else if (state->count == 2) return DOUBLE_TAP;
else return 8;
}
// Initialize tap structure associated with example tap dance key
static tap al_tap_state = {
.is_press_action = true,
.state = 0
};
// Functions that control what our tap dance key does
void al_finished(qk_tap_dance_state_t *state, void *user_data) {
al_tap_state.state = cur_dance(state);
switch (al_tap_state.state) {
case SINGLE_TAP:
layer_on(1); // Activate layer 1 immediately since we probably are holding this down ; if released it'll go away fast and shouldn't be an issue
break;
case SINGLE_HOLD:
layer_on(1); // Activate layer 1 since that's what the intent is
break;
case DOUBLE_TAP:
// Check to see if the layer is already set
if (layer_state_is(2)) {
// If already set, then switch it off
layer_off(2);
} else {
// If not already set, then switch the layer on
layer_on(2);
}
break;
}
}
void al_reset(qk_tap_dance_state_t *state, void *user_data) {
// If the key was held down and now is released then switch off the layer
if (al_tap_state.state == SINGLE_HOLD) {
layer_off(1); // Reset state appropriately
}
al_tap_state.state = 0;
}
// Set the colors for individual LEDs for a given layer
void set_leds_color( int layer) {
for (int i = 0; i < DRIVER_LED_TOTAL; i++) {
uint8_t val = pgm_read_byte(&ledcolors[layer][i][2]);
// if the brightness of the led is set to 0 in the map,
// the value is not overriden with global controls, allowing the led
// to appear turned off
HSV hsv = { .h = pgm_read_byte(&ledcolors[layer][i][0]), .s = pgm_read_byte(&ledcolors[layer][i][1]), .v = val == 0 ? 0 : rgb_matrix_config.hsv.v};
RGB rgb = hsv_to_rgb( hsv );
rgb_matrix_set_color( i, rgb.r, rgb.g, rgb.b );
}
}
// Set the colors for ALL LEDs for a given layer
void set_layer_color( uint8_t layer ) {
HSV hsv = { .h = pgm_read_byte(&layercolors[layer][0]), .s = pgm_read_byte(&layercolors[layer][1]), .v = rgb_matrix_config.hsv.v};
RGB rgb = hsv_to_rgb( hsv );
for (int i = 0; i < DRIVER_LED_TOTAL; i++) {
rgb_matrix_set_color( i, rgb.r, rgb.g, rgb.b );
}
}
// Override standard rgb colorization stuff
void rgb_matrix_indicators_user(void) {
uint32_t mode = rgblight_get_mode();
// assign colors if the matrix is on and the current mode
// is SOLID COLORS => No animations running
if(rgb_matrix_config.enable == 1 && mode == RGB_MATRIX_SOLID_COLOR) {
uint8_t layer = biton32(layer_state);
switch (layer) {
case 0:
set_layer_color(0);
break;
case 1:
set_leds_color(1);
break;
case 2:
set_leds_color(2);
break;
}
}
if (host_keyboard_leds() & (1<<USB_LED_CAPS_LOCK)) {
rgb_matrix_set_color(CAPS_LED, RGB_KMN_CYAN_HILIGHT);
}
}

2
attic/qmk/massdrop/alt/rules.mk

@ -0,0 +1,2 @@
MOUSEKEY_ENABLE = yes
TAP_DANCE_ENABLE = yes

5
attic/qmk/qvex/lynepad/README.md

@ -0,0 +1,5 @@
# QVEX Lynepad
The information, keymaps, firmware and keyboard layout for KemoNine's setup on the [QVEX Lynepad](https://www.tindie.com/products/qvex_tech/qvex-lynepad-macro-keypad/) macro board.
Layout files were generated by [www.keyboard-layout-editor.com](http://www.keyboard-layout-editor.com/)

33
attic/qmk/qvex/lynepad/config.h

@ -0,0 +1,33 @@
/* Copyright 2020 KemoNine
*
* 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 <http://www.gnu.org/licenses/>.
*/
#pragma once
#define TAPPING_TERM 200
#undef RGBLIGHT_ANIMATIONS
#define RGBLIGHT_LAYERS
// Mouse settings
#define MOUSEKEY_DELAY 175
#define MOUSEKEY_WHEEL_DELAY 175
#define MOUSEKEY_INTERVAL 20
#define MOUSEKEY_TIME_TO_MAX 15
#define MOUSEKEY_MAX_SPEED 5
#define MOUSEKEY_WHEEL_INTERVAL 50
#define MOUSEKEY_WHEEL_TIME_TO_MAX 20
#define MOUSEKEY_WHEEL_MAX_SPEED 10
#define MK_COMBINED

333
attic/qmk/qvex/lynepad/keymap.c

@ -0,0 +1,333 @@
/* Copyright 2020 KemoNine
*
* 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 <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
enum {
ACCEL_0 = 0,
ACCEL_1 = 1,
ACCEL_2 = 2,
};
static uint8_t acceleration_level = ACCEL_0;
void change_accel(void) {
acceleration_level++;
if (acceleration_level > ACCEL_2) {
acceleration_level = ACCEL_0;
}
}
// Custom key codes
enum {
ACCEL = SAFE_RANGE,
};
// Tap Dance declarations
enum {
TD_LAYER_BOOT,
};
void dance_layer_boot_finished(qk_tap_dance_state_t *state, void *user_data) {
if (state->count == 1) {
layer_on(1);
} else {
rgblight_disable_noeeprom();
reset_keyboard();
}
}
// Tap Dance definitions
qk_tap_dance_action_t tap_dance_actions[] = {
// Tap once for Escape, twice for Caps Lock
[TD_LAYER_BOOT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_layer_boot_finished, NULL),
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Keymap (Base Layer) Default Layer
* |----------------------------|
* | 1 | 2 | 3 | 4 | |
* | 5 | 6 | 7 | 8 | |
* | 9 | 10 | 11 | |
* |----------------------------|
*/
[0] = LAYOUT_Lynepad(
LCTL(LALT(KC_TAB)), KC_MS_BTN2, KC_MS_UP, KC_MS_BTN1,
LGUI(KC_DOWN), KC_MS_LEFT, KC_MS_DOWN, KC_MS_RIGHT,
ACCEL, TD(TD_LAYER_BOOT), KC_ESC
),
[1] = LAYOUT_Lynepad(
LCTL(LALT(KC_2)), LCTL(KC_BSPACE), LSFT(KC_X), LSFT(KC_P),
LSFT(KC_TAB), KC_G, KC_E, KC_C,
TO(0), TO(1), TO(2)
),
[2] = LAYOUT_Lynepad(
LCTL(LALT(KC_1)), LCTL(KC_LBRACKET), LCTL(KC_RBRACKET), KC_W,
LSFT(KC_TAB), KC_Q, LCTL(LALT(KC_R)), KC_R,
TO(0), TO(1), TO(2)
)
};
// Customized HSV values for layer highlights
#define HSV_KMN_PURPLE 191, 255, 120
#define HSV_KMN_GREEN 85, 255, 120
#define HSV_KMN_YELLOW 43, 255, 120
const rgblight_segment_t PROGMEM led_underglow_purple[] = RGBLIGHT_LAYER_SEGMENTS(
{0, RGBLED_NUM, HSV_KMN_PURPLE}
);
const rgblight_segment_t PROGMEM led_underglow_green[] = RGBLIGHT_LAYER_SEGMENTS(
{0, RGBLED_NUM, HSV_KMN_GREEN}
);
const rgblight_segment_t PROGMEM led_underglow_yellow[] = RGBLIGHT_LAYER_SEGMENTS(
{0, RGBLED_NUM, HSV_KMN_YELLOW}
);
// Array of layers for management
const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
led_underglow_purple,
led_underglow_green,
led_underglow_yellow
);
// Layer color init
void keyboard_post_init_user(void) {
rgblight_layers = my_rgb_layers;
layer_clear();
layer_on(0);
rgblight_enable();
rgblight_sethsv_noeeprom(HSV_KMN_PURPLE);
}
// Adjust layers based on which is active
layer_state_t layer_state_set_user(layer_state_t state) {
rgblight_set_layer_state(0, layer_state_cmp(state, 0));
rgblight_set_layer_state(1, layer_state_cmp(state, 1));
rgblight_set_layer_state(2, layer_state_cmp(state, 2));
return state;
}
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case ACCEL:
if (record->event.pressed) {
switch(acceleration_level) {
case ACCEL_0:
register_code16(KC_ACL0);
break;
case ACCEL_1:
register_code16(KC_ACL1);
break;
case ACCEL_2:
register_code16(KC_ACL2);
break;
}
} else {
switch(acceleration_level) {
case ACCEL_0:
unregister_code16(KC_ACL0);
break;
case ACCEL_1:
unregister_code16(KC_ACL1);
break;
case ACCEL_2:
unregister_code16(KC_ACL2);
break;
}
}
return false; // Skip all further processing of this key
default:
return true; // Process all other keycodes normally
}
}
// Standard encoder functionality
void encoder_update_user(uint8_t index, bool clockwise) {
// Process encoder rotational movements
if (index == 0) { /* First encoder */
if (clockwise) {
if (layer_state_is(0)) {
tap_code(KC_MS_WH_UP);
}
else if (layer_state_is(1)) {
tap_code(KC_LBRACKET);
}
else if (layer_state_is(2)) {
register_code16(KC_LCTRL);
register_code16(KC_MINUS);
unregister_code16(KC_MINUS);
unregister_code16(KC_LCTRL);
}
} else {
if (layer_state_is(0)) {
tap_code(KC_MS_WH_DOWN);
}
else if (layer_state_is(1)) {
tap_code(KC_RBRACKET);
}
else if (layer_state_is(2)) {
register_code16(KC_LCTRL);
register_code16(KC_EQUAL);
unregister_code16(KC_EQUAL);
unregister_code16(KC_LCTRL);
}
}
} else if (index == 1) { /* Second encoder */
if (clockwise) {
if (layer_state_is(0)) {
tap_code(KC_AUDIO_VOL_DOWN);
}
else if (layer_state_is(1)) {
register_code16(KC_LCTRL);
register_code16(KC_MINUS);
unregister_code16(KC_MINUS);
unregister_code16(KC_LCTRL);
}
else if (layer_state_is(2)) {
register_code16(KC_LSFT);
register_code16(KC_UP);
unregister_code16(KC_UP);
unregister_code16(KC_LSFT);
}
} else {
if (layer_state_is(0)) {
tap_code(KC_AUDIO_VOL_UP);
}
else if (layer_state_is(1)) {
register_code16(KC_LCTRL);
register_code16(KC_EQUAL);
unregister_code16(KC_EQUAL);
unregister_code16(KC_LCTRL);
}
else if (layer_state_is(2)) {
register_code16(KC_LSFT);
register_code16(KC_DOWN);
unregister_code16(KC_DOWN);
unregister_code16(KC_LSFT);
}
}
}
}
// Encoder press / tilt event handling
// the core lynepad implementation will update the below variables on each matrix scan
// Update the various codes below for customizing the tilt / push config
extern int16_t enc1Center;
extern int16_t enc1CenterPrev;
extern int16_t enc2Center;
extern int16_t enc2CenterPrev;
extern int16_t enc2Up;
extern int16_t enc2UpPrev;
extern int16_t enc2Down;
extern int16_t enc2DownPrev;
extern int16_t enc2Left;
extern int16_t enc2LeftPrev;
extern int16_t enc2Right;
extern int16_t enc2RightPrev;
void matrix_scan_user(void) {
if (enc1Center != enc1CenterPrev) {
if (enc1Center < ENC_TILT_THRESHOLD) {
if (layer_state_is(0)) {
change_accel();
}
}
}
if (enc2Center != enc2CenterPrev) {
if (enc2Center < ENC_TILT_THRESHOLD) {
}
else {
}
/*
* Encoder sets ALL values when center is pressed so bail out at this point\
* to avoid the rest of the encoder buttons registering events
*/
return;
}
if (enc2Up != enc2UpPrev) {
if (enc2Up < ENC_TILT_THRESHOLD) {
if (layer_state_is(0)) {
register_code16(KC_MS_WH_UP);
}
else if (layer_state_is(1)) {
register_code16(KC_UP);
}
}
else {
if (layer_state_is(0)) {
unregister_code16(KC_MS_WH_UP);
}
else if (layer_state_is(1)) {
unregister_code16(KC_UP);
}
}
}
if (enc2Down != enc2DownPrev) {
if (enc2Down < ENC_TILT_THRESHOLD) {
if (layer_state_is(0)) {
register_code16(KC_MS_WH_DOWN);
}
else if (layer_state_is(1)) {
register_code16(KC_DOWN);
}
}
else {
if (layer_state_is(0)) {
unregister_code16(KC_MS_WH_DOWN);
}
else if (layer_state_is(1)) {
unregister_code16(KC_DOWN);
}
}
}
if (enc2Left != enc2LeftPrev) {
if (enc2Left < ENC_TILT_THRESHOLD) {
if (layer_state_is(0)) {
register_code16(KC_MS_WH_LEFT);
}
else if (layer_state_is(1) || layer_state_is(2)) {
register_code16(KC_LEFT);
}
}
else {
if (layer_state_is(0)) {
unregister_code16(KC_MS_WH_LEFT);
}
else if (layer_state_is(1) || layer_state_is(2)) {
unregister_code16(KC_LEFT);
}
}
}
if (enc2Right != enc2RightPrev) {
if (enc2Right < ENC_TILT_THRESHOLD) {
if (layer_state_is(0)) {
register_code16(KC_MS_WH_RIGHT);
}
else if (layer_state_is(1) || layer_state_is(2)) {
register_code16(KC_RIGHT);
}
}
else {
if (layer_state_is(0)) {
unregister_code16(KC_MS_WH_RIGHT);
}
else if (layer_state_is(1) || layer_state_is(2)) {
unregister_code16(KC_RIGHT);
}
}
}
}

1
attic/qmk/qvex/lynepad/rules.mk

@ -0,0 +1 @@
TAP_DANCE_ENABLE = yes

0
zmk-config/config/boards/arm/itsybitsy_nrf52840/CMakeLists.txt → attic/zmk-config/config/boards/arm/itsybitsy_nrf52840/CMakeLists.txt

0
zmk-config/config/boards/arm/itsybitsy_nrf52840/Kconfig → attic/zmk-config/config/boards/arm/itsybitsy_nrf52840/Kconfig

0
zmk-config/config/boards/arm/itsybitsy_nrf52840/Kconfig.board → attic/zmk-config/config/boards/arm/itsybitsy_nrf52840/Kconfig.board

0
zmk-config/config/boards/arm/itsybitsy_nrf52840/Kconfig.defconfig → attic/zmk-config/config/boards/arm/itsybitsy_nrf52840/Kconfig.defconfig

0
zmk-config/config/boards/arm/itsybitsy_nrf52840/README.md → attic/zmk-config/config/boards/arm/itsybitsy_nrf52840/README.md

0
zmk-config/config/boards/arm/itsybitsy_nrf52840/board.cmake → attic/zmk-config/config/boards/arm/itsybitsy_nrf52840/board.cmake

0
zmk-config/config/boards/arm/itsybitsy_nrf52840/itsybitsy_nrf52840.dts → attic/zmk-config/config/boards/arm/itsybitsy_nrf52840/itsybitsy_nrf52840.dts

0
zmk-config/config/boards/arm/itsybitsy_nrf52840/itsybitsy_nrf52840.yaml → attic/zmk-config/config/boards/arm/itsybitsy_nrf52840/itsybitsy_nrf52840.yaml

0
zmk-config/config/boards/arm/itsybitsy_nrf52840/itsybitsy_nrf52840_defconfig → attic/zmk-config/config/boards/arm/itsybitsy_nrf52840/itsybitsy_nrf52840_defconfig

0
zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/CMakeLists.txt → attic/zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/CMakeLists.txt

0
zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/Kconfig → attic/zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/Kconfig

0
zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/Kconfig.board → attic/zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/Kconfig.board

0
zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/Kconfig.defconfig → attic/zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/Kconfig.defconfig

0
zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/README.md → attic/zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/README.md

0
zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/arduino_pro_micro_pins.dtsi → attic/zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/arduino_pro_micro_pins.dtsi

0
zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/board.cmake → attic/zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/board.cmake

0
zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/sparkfun_pro_nrf52840_mini.dts → attic/zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/sparkfun_pro_nrf52840_mini.dts

0
zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/sparkfun_pro_nrf52840_mini.yaml → attic/zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/sparkfun_pro_nrf52840_mini.yaml

0
zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/sparkfun_pro_nrf52840_mini_defconfig → attic/zmk-config/config/boards/arm/sparkfun_pro_nrf52840_mini/sparkfun_pro_nrf52840_mini_defconfig

0
zmk-config/config/boards/shields/7skb/7skb.conf → attic/zmk-config/config/boards/shields/7skb/7skb.conf

0
zmk-config/config/boards/shields/7skb/7skb.dtsi → attic/zmk-config/config/boards/shields/7skb/7skb.dtsi

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save