aboutsummaryrefslogtreecommitdiff
path: root/users/yet-another-developer/process_records.h
diff options
context:
space:
mode:
authorYet Another Developer <50936645+yet-another-developer@users.noreply.github.com>2019-10-21 02:07:57 +0800
committerDrashna Jaelre <drashna@live.com>2019-10-20 11:07:56 -0700
commit3d53ea439c277e49cd4149a6caea727304f41ace (patch)
tree1d782a97be651ff911342cbec19cdb18ceeeda62 /users/yet-another-developer/process_records.h
parentf64d9b06215bb08d7f77aeba126c0804fffd0064 (diff)
downloadqmk_firmware-3d53ea439c277e49cd4149a6caea727304f41ace.tar.gz
qmk_firmware-3d53ea439c277e49cd4149a6caea727304f41ace.zip
[Keymap] Ergodash keymap for yet-another-developer (#7046)
* Initialize ergodash rev 1 keymap ./util/new_keymap.sh ergodash/rev1 yet-another-developer * Add user space configurations referenced from drashna * Start community layout for ergodash in ortho_5x14 * Remove unused layers * Add userspace layers * Add Userspace gitignore Hide Secrets * Remove userspace unused drashna features * Scrap default keymap and follow drashna's template * Add code referenced from kuchosauronad0 * Make sure that the author is named Developer * Replace middle keys del and bksp with curly brace * Reduce ONESHOT_TIMEOUT from 3sec to 2sec * Remove adjust key AG_SWAP * Disable UNICODEMAP_ENABLE, remove code causing build fail * Increase TAPPING_TERM to 240 Reason: Because Space is also LOWER, space sometimes not registering. PS: I dont want to #define RETRO_TAPPING yet * Update KC_MAKE to use :flash * Remove TAP_ONCE, use tap_code Signed-off-by: Developer <anotherdeveloper@icloud.com> * Remove redundant code implementation of keyboard_post_init_user https://github.com/qmk/qmk_firmware/pull/7046 users/yet-another-developer/leader.c ``` static bool has_ran_yet; if (!has_ran_yet) { has_ran_yet = true; startup_user(); ``` Comment for lines +11 – +14 @drashna: Not needed anymore. You can use keyboard_post_init_user now. Signed-off-by: Developer <anotherdeveloper@icloud.com>
Diffstat (limited to 'users/yet-another-developer/process_records.h')
-rw-r--r--users/yet-another-developer/process_records.h109
1 files changed, 109 insertions, 0 deletions
diff --git a/users/yet-another-developer/process_records.h b/users/yet-another-developer/process_records.h
new file mode 100644
index 000000000..d4576f541
--- /dev/null
+++ b/users/yet-another-developer/process_records.h
@@ -0,0 +1,109 @@
1#pragma once
2#include "yet-another-developer.h"
3
4#if defined(KEYMAP_SAFE_RANGE)
5# define PLACEHOLDER_SAFE_RANGE KEYMAP_SAFE_RANGE
6#else
7# define PLACEHOLDER_SAFE_RANGE SAFE_RANGE
8#endif
9
10enum userspace_custom_keycodes {
11 VRSN = PLACEHOLDER_SAFE_RANGE, // Prints QMK Firmware and board info
12 KC_QWERTY, // Sets default layer to QWERTY
13 KC_COLEMAK, // Sets default layer to COLEMAK
14 KC_DVORAK, // Sets default layer to DVORAK
15 KC_WORKMAN, // Sets default layer to WORKMAN
16 KC_UNICODE, // Sets default layer to UNICOD
17
18 KC_MAKE, // Run keyboard's customized make command
19 KC_SECRET_1, // test1
20 KC_SECRET_2, // test2
21 KC_SECRET_3, // test3
22 KC_SECRET_4, // test4
23 KC_SECRET_5, // test5
24 KC_CCCV, // Hold to copy, tap to paste
25 KC_NUKE, // NUCLEAR LAUNCH DETECTED!!!
26 UC_FLIP, // (ಠ痊ಠ)┻━┻
27 UC_TABL, // ┬─┬ノ( º _ ºノ)
28 UC_SHRG, // ¯\_(ツ)_/¯
29 UC_DISA, // ಠ_ಠ
30
31 MC_QT1, // ""
32 MC_QT2, // ''
33 MC_QT3, // `'
34 MC_PAR, // Parenthesis
35 MC_CUR, // Curly bracket
36 MC_SQR, // Square bracket
37 MC_ABR, // Angle bracket
38 MCT_NEW, // New Tmux Session
39 MCT_SH, // Tmux horizontal split
40 MCT_SV, // Tmux vertical split
41 MCT_ZM, // Tmux zoom
42 MCT_SCR, // Tmux scroll mode
43 MCT_UP, // Tmux up
44 MCT_DW, // Tmux down
45 MCT_LFT, // Tmux left
46 MCT_RGT, // Tmux right
47 MCV_B, // Vim begin of line
48 MCV_E, // Vim end of line
49 MCT_F, // Vim for loop
50 MCG_A, // Git add
51 MCG_C, // Git commit
52 MCG_P, // Git push
53 MCG_R, // Git revert
54 MCG_L, // Git log
55 MCG_S, // Git status
56
57 NEW_SAFE_RANGE // use "NEWPLACEHOLDER for keymap specific codes
58};
59
60bool process_record_secrets(uint16_t keycode, keyrecord_t *record);
61bool process_record_keymap( uint16_t keycode, keyrecord_t *record);
62
63#define LOWER MO(_LOWER)
64#define RAISE MO(_RAISE)
65#define ADJUST MO(_ADJUST)
66#define TG_MODS TG(_MODS)
67#define OS_LWR OSL(_LOWER)
68#define OS_RSE OSL(_RAISE)
69#define OS_UNI OSL(_UNICODE)
70
71#define KC_SEC1 KC_SECRET_1
72#define KC_SEC2 KC_SECRET_2
73#define KC_SEC3 KC_SECRET_3
74#define KC_SEC4 KC_SECRET_4
75#define KC_SEC5 KC_SECRET_5
76
77#define QWERTY KC_QWERTY
78#define DVORAK KC_DVORAK
79#define COLEMAK KC_COLEMAK
80#define WORKMAN KC_WORKMAN
81#define UNICODE KC_UNICODE
82
83#define KC_RESET RESET
84#define KC_RST KC_RESET
85
86#define BK_LWER LT(_LOWER, KC_BSPC)
87#define SP_LWER LT(_LOWER, KC_SPC)
88#define DL_RAIS LT(_RAISE, KC_DEL)
89#define ET_RAIS LT(_RAISE, KC_ENTER)
90
91/* OSM keycodes, to keep things clean and easy to change */
92#define KC_MLSF OSM(MOD_LSFT)
93#define KC_MRSF OSM(MOD_RSFT)
94
95#define OS_LGUI OSM(MOD_LGUI)
96#define OS_RGUI OSM(MOD_RGUI)
97#define OS_LSFT OSM(MOD_LSFT)
98#define OS_RSFT OSM(MOD_RSFT)
99#define OS_LCTL OSM(MOD_LCTL)
100#define OS_RCTL OSM(MOD_RCTL)
101#define OS_LALT OSM(MOD_LALT)
102#define OS_RALT OSM(MOD_RALT)
103#define OS_MEH OSM(MOD_MEH)
104#define OS_HYPR OSM(MOD_HYPR)
105
106#define ALT_APP ALT_T(KC_APP)
107
108#define UC_IRNY UC(0x2E2E)
109#define UC_CLUE UC(0x203D)