qmk-dactyl-manuform-a/users/ninjonas
..
.gitignore
README.md
config.h
ninjonas.c
ninjonas.h
process_records.c
process_records.h
rules.mk
tap_dances.c
tap_dances.h

README.md

QMK User Configuration for ninjonas

Tired of copying and pasting the same macros and tap dances for all my keymaps. Utilizing user keymaps functionality. See: https://docs.qmk.fm/#/feature_userspace

ninjonas.c

Features

Keys

Code Description
K_LOCK MacOS shortcut to execute lock command  + ctrl + Q
K_CSCN MacOS shortcut to copy a portion of the screen to the clipboard

Layers

Code Description
LT_LOW Tap for ENTER, hold for RAISE
LT_FUNC Tap for ENTER, hold for FUNCTIONS
LT_RAI Tap for SPACE, hold for LOWER
LT_NUM Tap for SPACE, hold for NUMBERS
LT_LOW + LT_RAI Hold for ADJUST
L_LOWER Dedicated key to momentarily toggle to use LOWER layer

Layout Blocks

Predefined keyboard layout templates to speed up configuring split keyboards

Code Description
QWERTY Qwerty Layout
DVORAK Dvorak Layout
COLEMAK Colemak Layout
NUM Number Rows
FUNC Function Rows
SYM Symbol Rows When holding shift on numbers
NAV Navigation Cluster
MOUSE Mouse Cluster
MEDIA Media Cluster
MOD Modifier Cluster

Macros

Code Description
M_PYNV macro to activate pyenv with the name jira
M_MAKE macro to send QMK make command to compile keyboard
M_FLSH macro to send QMK make command to compile keyboard with the correct bootloader
M_VRSN macro to send QMK version
M_SHFT Sends  + alt + shift to a keycode to activate ShiftIt
M_CODE Opens Visual Studio Code on current directory

Tap-Dance

Code Description
T_ESC Tap once for ESC, double tap for CAPS_LOCK
T_LBRC Tap once for [, double for back browser
T_RBRC Tap once for ], double for forward browser
T_TAB Tap once for TAB, double for CTRL + TAB
T_GRV Tap once for GRV, double for  + GRV
T_GUI Tap once for , double to open spotlight
T_W Tap for W, double tap for  + W
T_Q Tap for Q, double tap for  + Q

Secrets

There's times where you have macros you don't want to share like emails, passwords 😱, & and private strings. Based off drashna's secret macros, 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.

// secrets.c
#include "ninjonas.h" 

bool process_record_secrets(uint16_t keycode, keyrecord_t *record) {
  switch (keycode) {
    // Sends zoom URL
    case M_ZOOM:
      if (record->event.pressed) {
        SEND_STRING("SECRET_STRING_HERE" SS_TAP(X_ENTER));
      }
      break;
  }
  return true;
}