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.

125 lines
4.4 KiB

  1. # @noroadsleft's KC60 keymap
  2. - [Table of Contents](./readme.md)
  3. 1. [Base Layers](./readme_ch1.md)
  4. 2. [OS Overlays](./readme_ch2.md)
  5. 3. [Quake 2 Overlays](./readme_ch3.md)
  6. 4. [Function Layers](./readme_ch4.md)
  7. 5. **Other Layers**
  8. ----
  9. ## Layer 10: Numpad layer - `_NP`
  10. ### Accessed by holding either `Fn` key and tapping `Space`, from any of the Base Layers
  11. Puts a Numpad on the right-hand side of the keyboard. A through F included for hexadecimal input. Tapping `Space` returns to the previous Base Layer.
  12. ![Numpad layer](https://raw.githubusercontent.com/noroadsleft/qmk_images/master/keyboards/kc60/keymaps/noroadsleft/layer_10.png)
  13. ----
  14. ## Layer 11: Macro layer - `_MA`
  15. ### Accessed by holding the `Fn` key and tapping the right-side `Win` key
  16. Has some macros that I use in Git, some frequently-typed strings, and keys for use with the [Dynamic Macros feature](https://docs.qmk.fm/#/feature_dynamic_macros).
  17. Tapping `Esc` exits the Macro layer, if the macro used doesn't do it automatically.
  18. ![Macro layer](https://raw.githubusercontent.com/noroadsleft/qmk_images/master/keyboards/kc60/keymaps/noroadsleft/layer_11.png)
  19. ### Macros
  20. #### [G_PUSH](./keymap.c#L126-L130)
  21. Output: `git push origin `
  22. Everything from here down is related to Git or GitHub.
  23. #### [G_FTCH](./keymap.c#L131-L140)
  24. | Condition | Output |
  25. | :-------- | :----- |
  26. | If <kbd>Shift</kbd> is active | `git pull upstream ` |
  27. | Otherwise | `git fetch upstream ` |
  28. #### [G_COMM](./keymap.c#L141-L146)
  29. Output: `git commit -m ""` <kbd>Left</kbd>
  30. Readies a `git commit` command, moves the cursor between the quotation marks, then disables the Macro layer.
  31. #### [G_BRCH](./keymap.c#L147-L157)
  32. | Condition | Output |
  33. | :-------- | :----- |
  34. | If <kbd>Shift</kbd> is active | `master` |
  35. | Otherwise | `$(git branch-name)` |
  36. `$(git branch-name)` is a [git alias](./readme_git.md) that returns the name of the current branch. This macro disables the Macro layer when finished.
  37. #### [SIGNA](./keymap.c#L158-L163)
  38. Output: `\- @noroadsleft` <kbd>Enter</kbd>
  39. Sometimes on GitHub, I sign my comments. Types my GitHub name in Markdown syntax, and then taps the `Enter` key. Disables the Macro layer when finished.
  40. #### [MC_UNDO](./keymap.c#L201-L209)
  41. | Condition | Output |
  42. | :-------- | :----- |
  43. | If <kbd>Shift</kbd> is active | <kbd>Shift</kbd> + <kbd>Command</kbd> + <kbd>Z</kbd> |
  44. | Otherwise | <kbd>Command</kbd> + <kbd>Z</kbd> |
  45. An Undo shortcut that turns to Redo if <kbd>Shift</kbd> is being held. I'm not sure that part is required to get that behavior, but it works as desired, so I'm not messing with it.
  46. #### [MC_PSTE](./keymap.c#L210-L218)
  47. | Condition | Output |
  48. | :-------- | :----- |
  49. | If <kbd>Shift</kbd> is active | <kbd>Shift</kbd> + <kbd>Command</kbd> + <kbd>Option</kbd> + <kbd>V</kbd> |
  50. | Otherwise | <kbd>Command</kbd> + <kbd>V</kbd> |
  51. The program I use this in uses <kbd>Shift</kbd> + <kbd>Command</kbd> + <kbd>Option</kbd> + <kbd>V</kbd> to paste while maintaining formatting (typeface, text size, etc.). Sometimes I want this and sometimes I don't. Using <kbd>Shift</kbd> changes the behavior.
  52. #### [NUBS_Z](./keymap.c#L219-L233)
  53. | Condition | Output |
  54. | :-------- | :----- |
  55. | If Right <kbd>Alt</kbd> is active | `KC_NUBS` |
  56. | Otherwise | `KC_Z` |
  57. Sometimes I type in languages from countries that use ISO layout, but my keyboard is ANSI, so I have one key fewer. This macro simulates the Non-US Backslash key if I use Right Alt + Z.
  58. #### [VRSN](./keymap.c#L234-L238)
  59. Outputs a string that tells me the Git commit from which my flashed firmware was built. Looks something like:
  60. kc60/noroadsleft @ 0.6.326-6-gae6d7b-dirty
  61. #### [Emulated Numeric Keypad](./keymap.c#L239-L253)
  62. If I hold the Right Alt key, the number row (`KC_1` through `KC_0`) will output numpad keycodes instead of number row keycodes, enabling quicker access to characters like ™ and °.
  63. #### [Emulated Extended Function Keys](./keymap.c#L254-L268)
  64. Similar to the emulated numpad, if I hold the Right Alt key with the Fn key, the function row (`KC_F1` through `KC_F12`) will output keycodes `KC_F13` throught `KC_F24`.
  65. ----
  66. ### Layer 12: System layer - `_SY`
  67. #### Accessed by holding either `Fn` key and tapping the `/?` key
  68. This is where I change my keyboard function. Base layer select on `1` through `3`, Backlight controls on `C` through `N`, Reset on `8*`, Debug on `0)`.
  69. ![System layer](https://raw.githubusercontent.com/noroadsleft/qmk_images/master/keyboards/kc60/keymaps/noroadsleft/layer_12.png)
  70. ----
  71. [Back to the index.](./)