aboutsummaryrefslogtreecommitdiff
path: root/keyboards/sentraq/s60_x/keymaps/dbroqua/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/sentraq/s60_x/keymaps/dbroqua/keymap.c')
-rw-r--r--keyboards/sentraq/s60_x/keymaps/dbroqua/keymap.c205
1 files changed, 205 insertions, 0 deletions
diff --git a/keyboards/sentraq/s60_x/keymaps/dbroqua/keymap.c b/keyboards/sentraq/s60_x/keymaps/dbroqua/keymap.c
new file mode 100644
index 000000000..71cf93f00
--- /dev/null
+++ b/keyboards/sentraq/s60_x/keymaps/dbroqua/keymap.c
@@ -0,0 +1,205 @@
1#include QMK_KEYBOARD_H
2
3#define _DEFAULT 0
4#define _FN 1
5#define _SFX 2
6
7// Fillers to make layering more clear
8#define ______ KC_TRNS
9
10const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
11/* Qwerty gui/alt/space/alt/gui
12 * ,-----------------------------------------------------------------------------------------.
13 * | Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | \ | ` |
14 * |-----------------------------------------------------------------------------------------+
15 * | Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | Bksp |
16 * |-----------------------------------------------------------------------------------------+
17 * | Ctrl | A | S | D | F | G | H | J | K | L | ; | ' | Enter |
18 * |-----------------------------------------------------------------------------------------+
19 * | Shift | Z | X | C | V | B | N | M | , | . | / | RShift | FN |
20 * |-----------------------------------------------------------------------------------------+
21 * |LGUI | LAlt | Space | RAlt |RGUI |
22 * `-----------------------------------------------------------------'
23 */
24 [_DEFAULT] = LAYOUT( /* Basic QWERTY */
25 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_GRV, \
26 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, \
27 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, ______, KC_ENT, \
28 KC_LSFT, ______, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(_FN), \
29 ______, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, ______, ______ \
30 ),
31
32/* FN Layer
33 * ,-----------------------------------------------------------------------------------------.
34 * | SFX | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | Ins | Del |
35 * |-----------------------------------------------------------------------------------------+
36 * | CAPS | | | | | | | | Psc | Slck| Paus| Up | | |
37 * |-----------------------------------------------------------------------------------------+
38 * | | Vol-| Vol+| Mute| | | * | / | Home| PgUp| Left|Right| |
39 * |-----------------------------------------------------------------------------------------+
40 * | | Prev| Play| Next| | | + | - | End |PgDn| Down| | |
41 * |-----------------------------------------------------------------------------------------+
42 * | | | | Stop | |
43 * `-----------------------------------------------------------------'
44 */
45 [_FN] = LAYOUT( /* Layer 1 */
46 TG(_SFX),KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_INS, KC_DEL, \
47 KC_CAPS, ______, ______, ______, ______, ______, ______, ______, KC_PSCR, KC_SLCK, KC_PAUS, KC_UP, ______, ______, \
48 ______, KC_VOLD, KC_VOLU, KC_MUTE, ______, ______, KC_PAST, KC_PSLS, KC_HOME, KC_PGUP, KC_LEFT, KC_RGHT,______, ______, \
49 ______, ______, KC_MPRV, KC_MPLY, KC_MNXT,______, ______, KC_PPLS, KC_PMNS, KC_END, KC_PGDN, KC_DOWN, ______, ______, \
50 ______, ______, ______, ______, KC_MSTP, ______, ______, ______ \
51 ),
52
53
54/* SFX Layer
55 * ,-----------------------------------------------------------------------------------------.
56 * | | | | | | | | | | | | | | | |
57 * |-----------------------------------------------------------------------------------------+
58 * | | BL- | BL+ | BL | | | | | | | | | | |
59 * |-----------------------------------------------------------------------------------------+
60 * | | RGBT| RGBM| | | | | | | | | | |
61 * |-----------------------------------------------------------------------------------------+
62 * | | Hue+| Hue-| Sat+| Sat-| Val+| Val-| | | | | | |
63 * |-----------------------------------------------------------------------------------------+
64 * | | | | | |
65 * `-----------------------------------------------------------------'
66 */
67 [_SFX] = LAYOUT(
68 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, \
69 ______, BL_TOGG,BL_STEP,BL_DEC, BL_INC, ______, ______, ______, ______, ______, ______, ______, ______, ______, \
70 ______, F(0), F(1), ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, \
71 ______, ______, F(2), F(3), F(4), F(5), F(6), F(7), ______, ______, ______, ______, ______, ______, \
72 ______, ______, ______, ______, ______, ______, ______, ______ \
73 )
74};
75
76const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
77 return MACRO_NONE;
78}
79
80enum function_id {
81 RGBLED_TOGGLE,
82 RGBLED_STEP_MODE,
83 RGBLED_INCREASE_HUE,
84 RGBLED_DECREASE_HUE,
85 RGBLED_INCREASE_SAT,
86 RGBLED_DECREASE_SAT,
87 RGBLED_INCREASE_VAL,
88 RGBLED_DECREASE_VAL
89};
90
91const uint16_t PROGMEM fn_actions[] = {
92 [0] = ACTION_FUNCTION(RGBLED_TOGGLE),
93 [1] = ACTION_FUNCTION(RGBLED_STEP_MODE),
94 [2] = ACTION_FUNCTION(RGBLED_INCREASE_HUE),
95 [3] = ACTION_FUNCTION(RGBLED_DECREASE_HUE),
96 [4] = ACTION_FUNCTION(RGBLED_INCREASE_SAT),
97 [5] = ACTION_FUNCTION(RGBLED_DECREASE_SAT),
98 [6] = ACTION_FUNCTION(RGBLED_INCREASE_VAL),
99 [7] = ACTION_FUNCTION(RGBLED_DECREASE_VAL)
100};
101
102void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
103 switch (id) {
104 case RGBLED_TOGGLE:
105 if (record->event.pressed) {
106 #ifdef RGB_ENABLE
107 rgblight_toggle();
108 #endif
109 }
110 break;
111 case RGBLED_INCREASE_HUE:
112 if (record->event.pressed) {
113 #ifdef RGB_ENABLE
114 rgblight_increase_hue();
115 #endif
116 }
117 break;
118 case RGBLED_DECREASE_HUE:
119 if (record->event.pressed) {
120 #ifdef RGB_ENABLE
121 rgblight_decrease_hue();
122 #endif
123 }
124 break;
125 case RGBLED_INCREASE_SAT:
126 if (record->event.pressed) {
127 #ifdef RGB_ENABLE
128 rgblight_increase_sat();
129 #endif
130 }
131 break;
132 case RGBLED_DECREASE_SAT:
133 if (record->event.pressed) {
134 #ifdef RGB_ENABLE
135 rgblight_decrease_sat();
136 #endif
137 }
138 break;
139 case RGBLED_INCREASE_VAL:
140 if (record->event.pressed) {
141 #ifdef RGB_ENABLE
142 rgblight_increase_val();
143 #endif
144 }
145 break;
146 case RGBLED_DECREASE_VAL:
147 if (record->event.pressed) {
148 #ifdef RGB_ENABLE
149 rgblight_decrease_val();
150 #endif
151 }
152 break;
153 case RGBLED_STEP_MODE:
154 if (record->event.pressed) {
155 #ifdef RGB_ENABLE
156 rgblight_step();
157 #endif
158 }
159 break;
160 }
161}
162
163void matrix_init_user(void) {
164}
165
166void matrix_scan_user(void) {
167}
168
169bool process_record_user(uint16_t keycode, keyrecord_t *record) {
170 return true;
171}
172
173void led_set_user(uint8_t usb_led) {
174
175 if (usb_led & (1 << USB_LED_NUM_LOCK)) {
176
177 } else {
178
179 }
180
181 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
182
183 } else {
184
185 }
186
187 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
188
189 } else {
190
191 }
192
193 if (usb_led & (1 << USB_LED_COMPOSE)) {
194
195 } else {
196
197 }
198
199 if (usb_led & (1 << USB_LED_KANA)) {
200
201 } else {
202
203 }
204
205}