qmk-firmware/keyboards/kc60/keymaps/noroadsleft/readme_ch4.md

4.5 KiB

@noroadsleft's KC60 keymap


Layer 8: Numpad layer - _NP

Accessed by holding either Fn key and tapping Space, from any of the Base Layers

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.

Numpad layer


Layer 9: Macro layer - _MA

Accessed by holding the right-side Win key

Has some macros that I use in Git, some frequently-typed strings, and keys for use with the Dynamic Macros feature.

Tapping Esc exits the Macro layer, if the macro used doesn't do it automatically.

Macro layer

Macros

G_PUSH

Output: git push origin

Everything from here down is related to Git or GitHub.

G_FTCH

Condition Output
If Shift is active git pull upstream
Otherwise git fetch upstream

G_BRCH

Condition Output
If Shift is active master
Otherwise $(git branch-name)

$(git branch-name) is a git alias that returns the name of the current branch.

SIGNA

Output: \- @noroadsleft Enter

Sometimes on GitHub, I sign my comments. Types my GitHub name in Markdown syntax, and then taps the Enter key.

"Macro Mode" Macros and Customized Keycodes

Some of my macros and keycodes do different things depending on the value of the macroMode variable, which is toggled between 0 and 1 by the M_MDSWP custom keycode. This is mainly at attempt to make various shortcuts the same key combinations between Windows/Linux and MacOS (which I use at home and work, respectively).

Keycode macroMode == 0 macroMode == 1 macroMode == 1 with Shift
M_SALL Ctrl+A Cmd+A Cmd+A
M_UNDO Ctrl+Z Cmd+Z Cmd+Shift+Z
M_CUT Ctrl+X Cmd+X Cmd+X
M_COPY Ctrl+C Cmd+C Cmd+C
M_PASTE Ctrl+V Cmd+V Cmd+Shift+Opt+V
KC_HOME KC_HOME Cmd+Left Cmd+Left
KC_END KC_END Cmd+Right Cmd+Right
KC_PSCR KC_PSCR Cmd+Shift+3 Cmd+Shift+3

Emulated Non-US Backslash

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.

VRSN

Outputs a string that tells me the Git commit from which my flashed firmware was built. Looks something like:

kc60/noroadsleft @ 0.6.326-6-gae6d7b-dirty

Emulated Numeric Keypad

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 °.

Emulated Extended Function Keys

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.


Layer 10: System layer - _SY

Accessed by holding either Fn key and tapping the /? key

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).

System layer


Back to the index.