aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/satan/keymaps/dbroqua/Makefile20
-rw-r--r--keyboards/satan/keymaps/dbroqua/keymap.c44
2 files changed, 24 insertions, 40 deletions
diff --git a/keyboards/satan/keymaps/dbroqua/Makefile b/keyboards/satan/keymaps/dbroqua/Makefile
deleted file mode 100644
index fa2608aa2..000000000
--- a/keyboards/satan/keymaps/dbroqua/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
1
2# Build Options
3# comment out to disable the options.
4#
5BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000)
6MOUSEKEY_ENABLE ?= no # Mouse keys(+4700)
7EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450)
8CONSOLE_ENABLE ?= yes # Console for debug(+400)
9COMMAND_ENABLE ?= yes # Commands for debug and configuration
10NKRO_ENABLE ?= yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
11RGBLIGHT_ENABLE ?= yes # Enable keyboard underlight functionality (+4870)
12BACKLIGHT_ENABLE ?= yes # Enable keyboard backlight functionality (+1150)
13MIDI_ENABLE ?= no # MIDI controls
14AUDIO_ENABLE ?= no
15UNICODE_ENABLE ?= no # Unicode
16BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID
17
18ifndef QUANTUM_DIR
19 include ../../../../Makefile
20endif
diff --git a/keyboards/satan/keymaps/dbroqua/keymap.c b/keyboards/satan/keymaps/dbroqua/keymap.c
index 3171b75b1..d3c3dc679 100644
--- a/keyboards/satan/keymaps/dbroqua/keymap.c
+++ b/keyboards/satan/keymaps/dbroqua/keymap.c
@@ -1,4 +1,5 @@
1#include "satan.h" 1#include "satan.h"
2#include "action_layer.h"
2#include "rgblight.h" 3#include "rgblight.h"
3 4
4#define _DEFAULT 0 5#define _DEFAULT 0
@@ -52,7 +53,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
52 KC_CAPS, ______, ______, ______, ______, ______, ______, ______, KC_PSCR, KC_SLCK, KC_PAUS, KC_UP, ______, ______, \ 53 KC_CAPS, ______, ______, ______, ______, ______, ______, ______, KC_PSCR, KC_SLCK, KC_PAUS, KC_UP, ______, ______, \
53 ______, KC_VOLD,KC_VOLU,KC_MUTE,______, ______, KC_PAST,KC_PSLS,KC_HOME, KC_PGUP, KC_LEFT, KC_RGHT, ______, \ 54 ______, KC_VOLD,KC_VOLU,KC_MUTE,______, ______, KC_PAST,KC_PSLS,KC_HOME, KC_PGUP, KC_LEFT, KC_RGHT, ______, \
54 ______, KC_MPRV,KC_MPLY,KC_MNXT,______, ______, KC_PPLS,KC_PMNS,KC_END, KC_PGDN, KC_DOWN, ______, ______, \ 55 ______, KC_MPRV,KC_MPLY,KC_MNXT,______, ______, KC_PPLS,KC_PMNS,KC_END, KC_PGDN, KC_DOWN, ______, ______, \
55 ______, ______, ______, TO(_SFX), KC_MSTP, ______, ______, ______ \ 56 ______, ______, ______, TG(_SFX), KC_MSTP, ______, ______, ______ \
56 ), 57 ),
57 58
58/* SFX Layer 59/* SFX Layer
@@ -68,15 +69,21 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
68 * | | | | | | 69 * | | | | | |
69 * `-----------------------------------------------------------------' 70 * `-----------------------------------------------------------------'
70 */ 71 */
71 [_SFX] = KEYMAP_HHKB( /* Layer 2 */ 72 [_SFX] = KEYMAP_HHKB(
72 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, \ 73 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, \
73 ______, BL_DEC, BL_INC, BL_TOGG, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, \ 74 ______, BL_DEC, BL_INC, BL_TOGG,______, ______, ______, ______, ______, ______, ______, ______, ______, ______, \
74 ______, F(0), F(1), ______, ______, ______, ______, ______,______, ______, ______, ______, ______, \ 75 ______, F(2), F(3), ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, \
75 ______, F(2), F(3), F(4),F(5),F(6),F(7),______,______, ______, ______, ______,______, \ 76 ______, F(4), F(5), F(6), F(7), F(8), F(9), ______, ______, ______, ______, ______, ______, \
76 ______, ______, ______, TO(_DEFAULT), ______, ______, ______, ______ \ 77 ______, ______, ______, ______, ______, ______, ______, ______ \
77 ) 78 )
78}; 79};
79 80
81const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
82{
83 // MACRODOWN only works in this function
84 return MACRO_NONE;
85};
86
80enum function_id { 87enum function_id {
81 RGBLED_TOGGLE, 88 RGBLED_TOGGLE,
82 RGBLED_STEP_MODE, 89 RGBLED_STEP_MODE,
@@ -89,14 +96,16 @@ enum function_id {
89}; 96};
90 97
91const uint16_t PROGMEM fn_actions[] = { 98const uint16_t PROGMEM fn_actions[] = {
92 [0] = ACTION_FUNCTION(RGBLED_TOGGLE), 99 [0] = ACTION_LAYER_MOMENTARY(1), // to Fn overlay
93 [1] = ACTION_FUNCTION(RGBLED_STEP_MODE), 100 [1] = ACTION_LAYER_TOGGLE(2), // toggle wasd overlay
94 [2] = ACTION_FUNCTION(RGBLED_INCREASE_HUE), 101 [2] = ACTION_FUNCTION(RGBLED_TOGGLE),
95 [3] = ACTION_FUNCTION(RGBLED_DECREASE_HUE), 102 [3] = ACTION_FUNCTION(RGBLED_STEP_MODE),
96 [4] = ACTION_FUNCTION(RGBLED_INCREASE_SAT), 103 [4] = ACTION_FUNCTION(RGBLED_INCREASE_HUE),
97 [5] = ACTION_FUNCTION(RGBLED_DECREASE_SAT), 104 [5] = ACTION_FUNCTION(RGBLED_DECREASE_HUE),
98 [6] = ACTION_FUNCTION(RGBLED_INCREASE_VAL), 105 [6] = ACTION_FUNCTION(RGBLED_INCREASE_SAT),
99 [7] = ACTION_FUNCTION(RGBLED_DECREASE_VAL) 106 [7] = ACTION_FUNCTION(RGBLED_DECREASE_SAT),
107 [8] = ACTION_FUNCTION(RGBLED_INCREASE_VAL),
108 [9] = ACTION_FUNCTION(RGBLED_DECREASE_VAL)
100}; 109};
101 110
102void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) { 111void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
@@ -142,9 +151,4 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
142 } 151 }
143 break; 152 break;
144 } 153 }
145}
146
147void persistant_default_layer_set(uint16_t default_layer) {
148 eeconfig_update_default_layer(default_layer);
149 default_layer_set(default_layer);
150} \ No newline at end of file 154} \ No newline at end of file