You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
4.1 KiB

[Keymap] ninjonas keymap for crkbd & ninjonas userspace updates (#6797) * [keymap(crkbd)] introducing crkbd keymap on ninjonas profile * [keymap(crkbd)] introducing crkbd keymap on ninjonas profile * [refactor(crkbd)] reducing file size by selecting RGB animations * [refactor(crkbd)] added shiftit key * [refactor(crkbd)] added shiftit key * [chore(crkbd)] adding SLEEP_LED_ENABLE on rules.mk * [refactor(crkbd)] added keylog & removed static rainbow RGB * [feat(crkbd)] introduced em-dash '—' keymap * [feat(crkbd)] added screenshot functionality * [refactor(lily58,pinky3)] moving media keys * [refactor(lily58)] Added emdash key * [chore] removing NUMBERS & FUNCTIONS layers as they're useless * [chore] removing NUMBERS & FUNCTIONS layers as they're useless * [chore(crkbd,lily48)] Updating README.md * [feat] added K_LAPP & K_RAPP to mimic command + tab * [feat] added K_LAPP & K_RAPP to mimic command + tab * [fix(#6797)] resolving changes requested by @drashna * [fix(#6797)] first cut on using QMK OLED Driver * [fix(#6797)] cleaning up rules.mk * [fix(#6797)] making scrolling logo work * [fix(#6797)] Using OLED Driver for Lily58 * [fix(#6797)] Moved OLED driver implementation to ninjonas userspace * [fix(#6797)] Bringing back crkbd & lily58 logos * [fix(#6797)] Turning off OLED based off @drashna's workaround in #5982 * [fix(#6797)] whoops! forgot to checkin crkbd/config.h * [fix(#6797)] fixing issue with OLED randomly turning on * [fix(#6797)] using default glcdfont.c for lily58 & crkbd * [fix(#6797)] Using LINK_TIME_OPTIMIZATION_ENABLE rather than EXTRAFLAGS as per code review * [fix(#6797)] updating M_MALL macro as per code review by @fauxpark
4 years ago
[Keymap] ninjonas keymap for crkbd & ninjonas userspace updates (#6797) * [keymap(crkbd)] introducing crkbd keymap on ninjonas profile * [keymap(crkbd)] introducing crkbd keymap on ninjonas profile * [refactor(crkbd)] reducing file size by selecting RGB animations * [refactor(crkbd)] added shiftit key * [refactor(crkbd)] added shiftit key * [chore(crkbd)] adding SLEEP_LED_ENABLE on rules.mk * [refactor(crkbd)] added keylog & removed static rainbow RGB * [feat(crkbd)] introduced em-dash '—' keymap * [feat(crkbd)] added screenshot functionality * [refactor(lily58,pinky3)] moving media keys * [refactor(lily58)] Added emdash key * [chore] removing NUMBERS & FUNCTIONS layers as they're useless * [chore] removing NUMBERS & FUNCTIONS layers as they're useless * [chore(crkbd,lily48)] Updating README.md * [feat] added K_LAPP & K_RAPP to mimic command + tab * [feat] added K_LAPP & K_RAPP to mimic command + tab * [fix(#6797)] resolving changes requested by @drashna * [fix(#6797)] first cut on using QMK OLED Driver * [fix(#6797)] cleaning up rules.mk * [fix(#6797)] making scrolling logo work * [fix(#6797)] Using OLED Driver for Lily58 * [fix(#6797)] Moved OLED driver implementation to ninjonas userspace * [fix(#6797)] Bringing back crkbd & lily58 logos * [fix(#6797)] Turning off OLED based off @drashna's workaround in #5982 * [fix(#6797)] whoops! forgot to checkin crkbd/config.h * [fix(#6797)] fixing issue with OLED randomly turning on * [fix(#6797)] using default glcdfont.c for lily58 & crkbd * [fix(#6797)] Using LINK_TIME_OPTIMIZATION_ENABLE rather than EXTRAFLAGS as per code review * [fix(#6797)] updating M_MALL macro as per code review by @fauxpark
4 years ago
[Keymap] ninjonas keymap for crkbd & ninjonas userspace updates (#6797) * [keymap(crkbd)] introducing crkbd keymap on ninjonas profile * [keymap(crkbd)] introducing crkbd keymap on ninjonas profile * [refactor(crkbd)] reducing file size by selecting RGB animations * [refactor(crkbd)] added shiftit key * [refactor(crkbd)] added shiftit key * [chore(crkbd)] adding SLEEP_LED_ENABLE on rules.mk * [refactor(crkbd)] added keylog & removed static rainbow RGB * [feat(crkbd)] introduced em-dash '—' keymap * [feat(crkbd)] added screenshot functionality * [refactor(lily58,pinky3)] moving media keys * [refactor(lily58)] Added emdash key * [chore] removing NUMBERS & FUNCTIONS layers as they're useless * [chore] removing NUMBERS & FUNCTIONS layers as they're useless * [chore(crkbd,lily48)] Updating README.md * [feat] added K_LAPP & K_RAPP to mimic command + tab * [feat] added K_LAPP & K_RAPP to mimic command + tab * [fix(#6797)] resolving changes requested by @drashna * [fix(#6797)] first cut on using QMK OLED Driver * [fix(#6797)] cleaning up rules.mk * [fix(#6797)] making scrolling logo work * [fix(#6797)] Using OLED Driver for Lily58 * [fix(#6797)] Moved OLED driver implementation to ninjonas userspace * [fix(#6797)] Bringing back crkbd & lily58 logos * [fix(#6797)] Turning off OLED based off @drashna's workaround in #5982 * [fix(#6797)] whoops! forgot to checkin crkbd/config.h * [fix(#6797)] fixing issue with OLED randomly turning on * [fix(#6797)] using default glcdfont.c for lily58 & crkbd * [fix(#6797)] Using LINK_TIME_OPTIMIZATION_ENABLE rather than EXTRAFLAGS as per code review * [fix(#6797)] updating M_MALL macro as per code review by @fauxpark
4 years ago
[Keymap] ninjonas keymap for crkbd & ninjonas userspace updates (#6797) * [keymap(crkbd)] introducing crkbd keymap on ninjonas profile * [keymap(crkbd)] introducing crkbd keymap on ninjonas profile * [refactor(crkbd)] reducing file size by selecting RGB animations * [refactor(crkbd)] added shiftit key * [refactor(crkbd)] added shiftit key * [chore(crkbd)] adding SLEEP_LED_ENABLE on rules.mk * [refactor(crkbd)] added keylog & removed static rainbow RGB * [feat(crkbd)] introduced em-dash '—' keymap * [feat(crkbd)] added screenshot functionality * [refactor(lily58,pinky3)] moving media keys * [refactor(lily58)] Added emdash key * [chore] removing NUMBERS & FUNCTIONS layers as they're useless * [chore] removing NUMBERS & FUNCTIONS layers as they're useless * [chore(crkbd,lily48)] Updating README.md * [feat] added K_LAPP & K_RAPP to mimic command + tab * [feat] added K_LAPP & K_RAPP to mimic command + tab * [fix(#6797)] resolving changes requested by @drashna * [fix(#6797)] first cut on using QMK OLED Driver * [fix(#6797)] cleaning up rules.mk * [fix(#6797)] making scrolling logo work * [fix(#6797)] Using OLED Driver for Lily58 * [fix(#6797)] Moved OLED driver implementation to ninjonas userspace * [fix(#6797)] Bringing back crkbd & lily58 logos * [fix(#6797)] Turning off OLED based off @drashna's workaround in #5982 * [fix(#6797)] whoops! forgot to checkin crkbd/config.h * [fix(#6797)] fixing issue with OLED randomly turning on * [fix(#6797)] using default glcdfont.c for lily58 & crkbd * [fix(#6797)] Using LINK_TIME_OPTIMIZATION_ENABLE rather than EXTRAFLAGS as per code review * [fix(#6797)] updating M_MALL macro as per code review by @fauxpark
4 years ago
  1. # QMK User Configuration for [ninjonas](https://github.com/ninjonas/qmk-yonas)
  2. Tired of copying and pasting the same macros and tap dances for all my keymaps. Utilizing user keymaps functionality.
  3. See: https://docs.qmk.fm/#/feature_userspace
  4. ## [ninjonas.c](ninjonas.c)
  5. - ninjonas [QMK user configuration](https://github.com/qmk/qmk_firmware/blob/master/docs/feature_userspace.md)
  6. - On `keymap.c` include `ninjonas.h`
  7. ```c
  8. #include "ninjonas.h"
  9. ```
  10. ## Supported Keyboards
  11. - [Crkbd ](../../keyboards/crkbd/keymaps/ninjonas)
  12. - [Hotdox](../../keyboards/hotdox/keymaps/ninjonas)
  13. - [Pinky3](../../keyboards/pinky/3/keymaps/ninjonas)
  14. - [Lily58](../../keyboards/lily58/keymaps/ninjonas)
  15. - [Kyria](../../keyboards/kyria/keymaps/ninjonas)
  16. ## Features
  17. ### [Keys](ninjonas.h)
  18. |Code | Description |
  19. |---|---|
  20. |K_LOCK | MacOS shortcut to execute lock command Cmd + CTRL + Q |
  21. |K_CSCN | MacOS shortcut to copy a portion of the screen to the clipboard |
  22. |K_MDSH | MacOS shortcut to get em-dash `–` |
  23. |K_CPRF | Cmd + Shift + M. Used for switching Google Chrome profiles |
  24. ### [Layers](ninjonas.h)
  25. |Code | Description |
  26. |---|---|
  27. |LT_LOW | Tap for ENTER, hold for RAISE |
  28. |LT_RAI | Tap for SPACE, hold for LOWER |
  29. ### [Mod-Taps](ninjonas.h)
  30. |Code | Description |
  31. |---|---|
  32. |MT_DEL | Tap for Delete, hold for ALT + SHIFT |
  33. |MT_EQL | Tap for =, SHIFT |
  34. ### [Layout Blocks](ninjonas.h)
  35. Predefined keyboard layout templates to speed up configuring split keyboards
  36. |Code | Description |
  37. |---|---|
  38. |QWERTY | Qwerty Layout |
  39. |DVORAK | Dvorak Layout |
  40. |COLEMAK | Colemak Layout |
  41. |NUM | Number Rows |
  42. |FUNC | Function Rows |
  43. |SYM | Symbol Rows \(When holding shift on numbers\) |
  44. |NAV | Navigation Cluster |
  45. |MOUSE | Mouse Cluster |
  46. |MEDIA | Media Cluster |
  47. |MOD | Modifier Cluster |
  48. |NUMPAD | Numpad Cluster |
  49. ### [Macros](process_records.c)
  50. |Code | Description |
  51. |---|---|
  52. |M_PYNV | Macro to activate pyenv with the name `jira` |
  53. |M_MAKE | Macro to send QMK make command to compile keyboard |
  54. |M_MALL | Macro to send QMK make command to all [ninjonas](#Supported%20Keyboards) keyboards |
  55. |M_FLSH | Macro to send QMK make command to compile keyboard with the correct bootloader |
  56. |M_VRSN | Macro to send QMK version |
  57. |M_SHFT | Sends Cmd + alt + shift to a keycode to activate [ShiftIt](https://github.com/fikovnik/ShiftIt) |
  58. |M_CODE | Opens [Visual Studio Code](https://code.visualstudio.com/) on current directory |
  59. |M_TERM | Launches Spotlight and calls Terminal |
  60. |M_XXX1 to M_XXX5 | Reserved for secret macros see [Secrets](#secrets) |
  61. ### [Tap-Dance](tap_dances.h)
  62. |Code | Description |
  63. |---|---|
  64. |T_ESC | Tap once for ESC, double tap for CAPS_LOCK |
  65. |T_LBRC | Tap once for [, double for back browser |
  66. |T_RBRC | Tap once for ], double for forward browser |
  67. |T_TAB | Tap once for TAB, double for CTRL + TAB |
  68. |T_GRV | Tap once for GRV, double for Cmd + GRV |
  69. |T_GUI | Tap once for Cmd, double to open spotlight |
  70. |T_CPAP | Tap for Cmd + V, hold for Cmd + C, double tap to open [Line](https://line.me/en/) app, triple tap for itunes. |
  71. |T_Y | Tap for Y, double tap for NUMPAD layer |
  72. ### [Combos](combos.h)
  73. |Code | Description |
  74. |---|---|
  75. |EQ_QUIT | Press E + Q will trigger Cmd + Q |
  76. |RW_CLOSE | Press R + W will trigger Cmd + W|
  77. |ET_TAB | Press E + T will trigger Cmd + T|
  78. |ZC_COPY | Press Z + C will trigger Cmd + C|
  79. |XV_PASTE | Press X + V will trigger Cmd + V|
  80. ### Secrets
  81. There's times where you have macros you don't want to share like emails, an address you need but you always forget, passwords 😱, & and private strings. Based off [drashna's secret macros](https://github.com/qmk/qmk_firmware/blob/master/users/drashna/readme_secrets.md), it's now possible to do this. All you need to do is create a `secrets.c` file. Below is an example of how this is used.
  82. ```c
  83. // secrets.c
  84. #include "ninjonas.h"
  85. static const char * const secret[] = {
  86. "BLANK1",
  87. "BLANK2",
  88. "BLANK3",
  89. "BLANK4",
  90. "BLANK5"
  91. };
  92. bool process_record_secrets(uint16_t keycode, keyrecord_t *record) {
  93. switch (keycode) {
  94. case M_XXX1...M_XXX5:
  95. if (record->event.pressed) {
  96. send_string(secret[keycode - M_XXX1]);
  97. }
  98. break;
  99. }
  100. return true;
  101. }
  102. ```