aboutsummaryrefslogtreecommitdiff
path: root/users/tominabox1/wrappers.h
diff options
context:
space:
mode:
authortominabox1 <tom.campie@gmail.com>2019-10-18 20:15:57 -0500
committerDrashna Jaelre <drashna@live.com>2019-10-18 18:15:57 -0700
commitc26faed2b60e59293f631e041619567f23a93406 (patch)
tree4c51f318dafe4e2345adcebf2ce4c94ba8f8a6be /users/tominabox1/wrappers.h
parentb23f6011c34dcb471c312655f7af37c0a0f5f779 (diff)
downloadqmk_firmware-c26faed2b60e59293f631e041619567f23a93406.tar.gz
qmk_firmware-c26faed2b60e59293f631e041619567f23a93406.zip
[Keymap] Tominabox1 userspace creation (#7014)
* rebaselined the whole fork and added cool matrix animations * Updated dfu bootloader rules, oleds working on test map * Moving test branch into main moving my _test branch files into the main since the repo is now in the dev branch, don't see any reason to keep separate folders. * Update keymap.c Adding DOT to number layer * added LED sleeping * working on getting matrix rgb to sleep upon usb suspend uploading to github for qmk staff help * Added master sleep on usb suspend Unfortunately the sleep function does not work on the slave side so will probably revert this change later * bringing hhkb config up to current with other tominabox1 configs * Update config.h since master side is the only one that sleeps, going to disable this for now. * testing oled stuff * Update rules.mk * tinkering with oled still * Finally fixed custom image with corne doug * Adding keymap to dimple instead of screwing up the upstream references. * Changed oled image to peepo ggers * working on oled sleep * Update keymap.c * fixes oled wake/sleep issues * Adding :b: and BEPIS macros * Update .gitignore * Cleaning up and improving documentation * Update keymap.c * Adding my minivan keymap * Fixed error on keymap * fixed OLEDs not turning on and moved tapping term to the keymap file * Changed tapping term from 200 to 250 * Revised Fkey layers, arrows, question mark locations * Update keymap.c * tweaked tapping term and types on CRKBD, revised layout on HHKB * Update keymap.c * general code cleanup, keymap displays * Set up userspace for common keymap elements * tapping term stuff for shift * testing * Fixed new tapdance for accessing number and fkey layers * Update tominabox1.h * stuff * fixing function calls for userspace * cleaning up crkbd config and moving stuff to userspace * finally fixed oled lightup issues * cleaning up a few maps and rules * Removing permissive hold and returning spacefn to all boards. * Settting up wrapper keymaps for Dimple, Minivan, and Corne Wrappers * small tweaks * Update wrappers.h * finishing wrappers on Minivan and Dimple * Revised tapping term definition Providing additional tapping term config for CRKBD only. * Code cleanup and documentation * Update readme.md * Update readme.md * Wrapers and continued code cleanup and documentation * moved oled py scripts to user folder * completed wrapper implementation of CRKBD * added matrix startup mode - not working yet pending upstream changes * removed unused code in tominabox1.c * Fixing custom keycodes and tap dance indices fixed custom keycodes and tap dance indices Adding beginning of dimple RGB matrix definition changed oled on corne to scrolling matrix thing Added copy pasta * Secondary layer tweaks Swapping hands of numbers and symbols as well as tweaking tapping terms accordingly * Update tominabox1.c Continued refinement of tapping term to support better right hand symbol access. * Fixes from pr 7014 Removed gitignore data from qmk master Reverted changes to Drashna's crkbd keymap Accepted changes to crkbd keymap Added ignore to hhkb keymap - I think I need this because Teensy. Will revisit another time * Removing hhkb keymap for rework * Adding back hhkb keymap Re-adding hhkb folder with ignores * Reverting changes to Dimple default totally did not intend to modify these * Update keymap.c Reverting changes to Drashna's corne map * Accepting recommended changes * Reduced tap hold caps delay moved bootmagic enable to general usage Revised tapping terms Removed unused keycode defs * bootmagic * Update rules.mk * Fixed permissions (support 7014) and bootmagic addition Fixed permissions on Drashna's keymap and Dimple default keymap files. Adding bootmagic to my crkbd config. * Fixing permissions
Diffstat (limited to 'users/tominabox1/wrappers.h')
-rw-r--r--users/tominabox1/wrappers.h142
1 files changed, 142 insertions, 0 deletions
diff --git a/users/tominabox1/wrappers.h b/users/tominabox1/wrappers.h
new file mode 100644
index 000000000..032fad273
--- /dev/null
+++ b/users/tominabox1/wrappers.h
@@ -0,0 +1,142 @@
1#pragma once
2#include "tominabox1.h"
3/*
4Since our quirky block definitions are basically a list of comma separated
5arguments, we need a wrapper in order for these definitions to be
6expanded before being used as arguments to the LAYOUT_xxx macro.
7*/
8#if (!defined(LAYOUT) && defined(KEYMAP))
9# define LAYOUT KEYMAP
10#endif
11
12// clang-format off
13#define LAYOUT_wrapper(...) LAYOUT(__VA_ARGS__)
14#define LAYOUT_arrow_wrapper(...) LAYOUT_arrow(__VA_ARGS__)
15
16/*
17 _____ _ _
18 | __ \(_) | |
19 | | | |_ _ __ ___ _ __ | | ___
20 | | | | | '_ ` _ \| '_ \| |/ _ \
21 | |__| | | | | | | | |_) | | __/
22 |_____/|_|_| |_| |_| .__/|_|\___|
23 | |
24 |_|
25*/
26// Dimple Base layer
27#define __________________DIMPLE1__________________ KC_GESC, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC
28#define __________________DIMPLE2__________________ LCTL_T(KC_TAB), KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT
29#define __________________DIMPLE3L_________________ KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B
30#define __________________DIMPLE3R_________________ KC_K, KC_M, KC_COMM, KC_UP, LT(_FKEY,KC_DOT)
31#define __________________DIMPLE4__________________ KC_LCTL, KC_LGUI, KC_LALT, KC_ENT_LOW, KC_SPC_RSE, KC_LEFT, KC_DOWN, KC_RGHT
32
33// Dimple Symbol Layer
34#define _________________LOWER_1___________________ KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC
35#define _________________LOWER_2___________________ KC_DEL, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE
36#define _________________LOWER_3___________________ KC_CAPS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_PGUP, KC_QUES
37#define _________________LOWER_4___________________ LCA(KC_DEL), KC_NO, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_PGDN, KC_END
38
39// Dimple Number layer
40#define ___________________RAISE1__________________ KC_TILD, KC_EXLM, TD(KC_EMAIL), KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL
41#define ___________________RAISE2__________________ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS
42#define ___________________RAISE3__________________ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_DOT, KC_SLSH
43#define ___________________RAISE4__________________ KC_VOLD, KC_MUTE, KC_VOLU, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO
44
45// Dimple F-key layer
46#define ___________________FKEY1___________________ KC_PASTA, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_NO
47#define ___________________FKEY2___________________ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_F11, KC_F12, KC_NO
48#define ___________________FKEY3___________________ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
49#define ___________________FKEY4___________________ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_NO, KC_NO
50
51// Dimple Adjust layer
52#define ___________________ADJST1__________________ RESET,RGBRST, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
53#define ___________________ADJST2__________________ RGB_M_P, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
54#define ___________________ADJST3__________________ RGB_MOD, RGB_HUI, RGB_HUD, RGB_M_SN, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
55#define ___________________ADJST4__________________ RGB_VAD, RGB_TOG, RGB_VAI, KC_NO, KC_NO, KC_TRNS, KC_NO, KC_NO
56
57/*
58__ __ _ _
59| \/ (_) (_)
60| \ / |_ _ __ ___ ____ _ _ __
61| |\/| | | '_ \| \ \ / / _` | '_ \
62| | | | | | | | |\ V / (_| | | | |
63|_| |_|_|_| |_|_| \_/ \__,_|_| |_|
64*/
65
66
67// Minivan Base Layer
68#define __________________MINIVAN1_________________ __________________DIMPLE1__________________
69#define __________________MINIVAN2_________________ __________________DIMPLE2__________________
70#define __________________MINIVAN3_________________ __________________DIMPLE3L_________________, __________________DIMPLE3R_________________, KC_RSFT
71#define __________________MINIVAN4_________________ KC_LCTL, KC_LGUI, KC_LALT, KC_ENT_LOW, KC_SPC_RSE, KC_LEFT, KC_DOWN, KC_RGHT, MO(_FKEY)
72
73/* Minivan Symbol Layer
74#define _________________LOWER_1___________________
75#define _________________LOWER_2___________________ */
76#define __________________MININUM3_________________ _________________LOWER_3___________________, KC_SLSH
77#define __________________MININUM4_________________ _________________LOWER_4___________________, KC_END
78
79/* Minvian Number Layer
80#define ___________________RAISE1__________________
81#define ___________________RAISE2__________________ */
82#define ___________________RVAN_3__________________ ___________________RAISE3__________________, KC_NO
83#define ___________________RVAN_4__________________ ___________________RAISE4__________________, KC_NO
84
85/* Minvian F-key layer
86#define ___________________FKEY1___________________
87#define ___________________FKEY2___________________ */
88#define ___________________FVAN_3__________________ ___________________FKEY3___________________, KC_NO
89#define ___________________FVAN_4__________________ ___________________FKEY4___________________, KC_TRNS
90
91/* Minivan Adjust Layer
92#define ___________________ADJST1__________________
93#define ___________________ADJST2__________________ */
94#define ___________________ADJVAN3_________________ ___________________ADJST3__________________, KC_NO
95#define ___________________ADJVAN4_________________ ___________________ADJST4__________________, KC_TRNS
96
97/*
98 _____ _____ _ ______ _____
99 / ____| __ \| |/ / _ \| __ \
100| | | |__) | ' /| |_) | | | |
101| | | _ /| < | _ <| | | |
102| |____| | \ \| . \| |_) | |__| |
103 \_____|_| \_\_|\_\____/|_____/
104*/
105
106// CRKBD Base Layer
107#define ___________________CRKBD1__________________ __________________DIMPLE1__________________
108#define ___________________CRKBD2__________________ __________________DIMPLE2__________________
109#define ___________________CRKBD3__________________ __________________DIMPLE3L_________________, KC_K, KC_M,KC_COMM, KC_DOT, KC_SLSH, KC_BBB
110#define ___________________CRKBD4__________________ KC_LGUI, KC_LALT,KC_ENT_LOW, KC_SPC_RSE, KC_ARROW, KC_FKEY
111
112/* CRKBD Number layer
113#define ___________________RAISE1__________________
114#define ___________________RAISE1__________________ */
115#define ___________________CRKBD_RAISE3____________ ___________________RVAN_3__________________
116#define ___________________CRKBD_RAISE4____________ ___________________CRKBD4__________________
117
118/* CRKBD Symbol Layer
119#define _________________LOWER_1___________________
120#define _________________LOWER_2___________________ */
121#define ___________________CRKBD_LOW3______________ __________________MININUM3_________________
122#define ___________________CRKBD_LOW4______________ ___________________CRKBD4__________________
123
124/* CRKBD F-key layer
125#define ___________________FKEY1___________________
126#define ___________________FKEY2___________________ */
127#define ___________________CRKBD_FKEY3_____________ ___________________FVAN_3__________________
128#define ___________________CRKBD_FKEY4_____________ ___________________CRKBD4__________________
129
130/* CRKBD adjust layer
131#define ___________________ADJST1__________________ */
132#define ___________________CRKBD_ADJST2____________ KC_LTOG,KC_LHUI,KC_LSAI,KC_LVAI,KC_NO,KC_NO,KC_NO,KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
133#define ___________________CRKBD_ADJST3____________ KC_LMOD, KC_LHUD, KC_LSAD, KC_LVAD, KC_NO, KC_NO,KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
134#define ___________________CRKBD_ADJST4____________ ___________________CRKBD4__________________
135
136// CRKBD arrow layer
137#define ___________________ARROW1__________________ KC_NO, KC_NO, KC_UP, KC_NO, KC_NO, KC_NO, KC_NO, KC_PGDN, KC_UP, KC_PGUP, KC_NO, KC_NO
138#define ___________________ARROW2__________________ KC_NO, KC_LEFT, KC_DOWN, KC_RIGHT, KC_NO, KC_NO,KC_NO, KC_LEFT, KC_DOWN, KC_RGHT, KC_NO, KC_NO
139#define ___________________ARROW3__________________ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
140#define ___________________ARROW4__________________ ___________________CRKBD4__________________
141
142// clang-format on