Skip to content

Commit

Permalink
[Keymap] Update personal userspace and keymaps (#9082)
Browse files Browse the repository at this point in the history
* Replace custom RCTRL implementation with built-in LM

Caveat: sends LCtrl instead of RCtrl

* Enable VIA support in KBD6X keymap

* Disable LTO on ChibiOS boards

* Disable locking support and Magic keycodes for all keymaps

* Organize and annotate rules.mk and config.h files

* Enable Console for Melody96 keymap

* L_RANGE_KEYMAP → LAYERS_KEYMAP

* Revert "Replace custom RCTRL implementation with built-in LM"

This reverts commit 17d706a82d7e31b53cd84efeb9b2ddb9922a2368.

* Set DYNAMIC_KEYMAP_LAYER_COUNT to 3 in Doro67 and Wasdat keymaps

* Enable Bootmagic Lite for all VIA keymaps
  • Loading branch information
vomindoraan authored May 16, 2020
1 parent c6cf1ae commit 9cf69a1
Show file tree
Hide file tree
Showing 12 changed files with 75 additions and 29 deletions.
2 changes: 2 additions & 0 deletions keyboards/doro67/multi/keymaps/konstantin/config.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#pragma once

#define DYNAMIC_KEYMAP_LAYER_COUNT 3

#define LAYER_FN
#define LAYER_NUMPAD
15 changes: 11 additions & 4 deletions keyboards/doro67/multi/keymaps/konstantin/rules.mk
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
BACKLIGHT_ENABLE = no
BOOTMAGIC_ENABLE = no
# Generic features
BOOTMAGIC_ENABLE = lite
COMMAND_ENABLE = yes
CONSOLE_ENABLE = yes
EXTRAKEY_ENABLE = yes
GRAVE_ESC_ENABLE = no
MOUSEKEY_ENABLE = yes
NKRO_ENABLE = yes
SPACE_CADET_ENABLE = no
TAP_DANCE_ENABLE = yes
UNICODEMAP_ENABLE = yes

# Keyboard-specific features
BACKLIGHT_ENABLE = no
VIA_ENABLE = yes

# Firmware size reduction
GRAVE_ESC_ENABLE = no
MAGIC_ENABLE = no
SPACE_CADET_ENABLE = no
2 changes: 2 additions & 0 deletions keyboards/kbdfans/kbd6x/keymaps/konstantin/config.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#define DYNAMIC_KEYMAP_LAYER_COUNT 3

#define LAYER_FN
2 changes: 1 addition & 1 deletion keyboards/kbdfans/kbd6x/keymaps/konstantin/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ enum keycodes_keymap {
};

enum layers_keymap {
L_RCTRL = L_RANGE_KEYMAP,
L_RCTRL = LAYERS_KEYMAP,
};

void eeconfig_init_keymap(void) {
Expand Down
17 changes: 12 additions & 5 deletions keyboards/kbdfans/kbd6x/keymaps/konstantin/rules.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
BACKLIGHT_ENABLE = no
BOOTMAGIC_ENABLE = no
# Generic features
BOOTMAGIC_ENABLE = lite
COMMAND_ENABLE = yes
CONSOLE_ENABLE = no
EXTRAKEY_ENABLE = yes
GRAVE_ESC_ENABLE = no
MOUSEKEY_ENABLE = yes
NKRO_ENABLE = yes
RGBLIGHT_ENABLE = yes
SPACE_CADET_ENABLE = no
TAP_DANCE_ENABLE = yes
UNICODEMAP_ENABLE = no

# Keyboard-specific features
BACKLIGHT_ENABLE = no
RGBLIGHT_ENABLE = yes
VIA_ENABLE = yes

# Firmware size reduction
GRAVE_ESC_ENABLE = no
MAGIC_ENABLE = no
SPACE_CADET_ENABLE = no
2 changes: 2 additions & 0 deletions keyboards/maartenwut/wasdat/keymaps/konstantin/config.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#pragma once

#define DYNAMIC_KEYMAP_LAYER_COUNT 3

#define LAYER_FN
#define LAYER_NUMPAD
14 changes: 10 additions & 4 deletions keyboards/maartenwut/wasdat/keymaps/konstantin/rules.mk
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
BACKLIGHT_ENABLE = no
BOOTMAGIC_ENABLE = no
# Generic features
BOOTMAGIC_ENABLE = lite
COMMAND_ENABLE = yes
CONSOLE_ENABLE = yes
EXTRAKEY_ENABLE = yes
GRAVE_ESC_ENABLE = no
MOUSEKEY_ENABLE = yes
NKRO_ENABLE = yes
SPACE_CADET_ENABLE = no
TAP_DANCE_ENABLE = yes
UNICODEMAP_ENABLE = yes

# Keyboard-specific features
VIA_ENABLE = yes

# Firmware size reduction
GRAVE_ESC_ENABLE = no
MAGIC_ENABLE = no
SPACE_CADET_ENABLE = no
16 changes: 11 additions & 5 deletions keyboards/melody96/keymaps/konstantin/rules.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
BACKLIGHT_ENABLE = no
# Generic features
BOOTMAGIC_ENABLE = no
COMMAND_ENABLE = yes
CONSOLE_ENABLE = no
CONSOLE_ENABLE = yes
EXTRAKEY_ENABLE = yes
GRAVE_ESC_ENABLE = no
MOUSEKEY_ENABLE = yes
NKRO_ENABLE = yes
RGBLIGHT_ENABLE = yes
SPACE_CADET_ENABLE = no
TAP_DANCE_ENABLE = yes
UNICODEMAP_ENABLE = yes

# Keyboard-specific features
BACKLIGHT_ENABLE = no
RGBLIGHT_ENABLE = yes

# Firmware size reduction
GRAVE_ESC_ENABLE = no
MAGIC_ENABLE = no
SPACE_CADET_ENABLE = no
12 changes: 9 additions & 3 deletions keyboards/whitefox/keymaps/konstantin/rules.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
BACKLIGHT_ENABLE = no
# Generic features
BOOTMAGIC_ENABLE = no
COMMAND_ENABLE = yes
CONSOLE_ENABLE = yes
EXTRAKEY_ENABLE = yes
GRAVE_ESC_ENABLE = no
MOUSEKEY_ENABLE = yes
NKRO_ENABLE = yes
SPACE_CADET_ENABLE = no
TAP_DANCE_ENABLE = yes
UNICODEMAP_ENABLE = yes

# Keyboard-specific features
BACKLIGHT_ENABLE = no
VISUALIZER_ENABLE = no

# Firmware size reduction
GRAVE_ESC_ENABLE = no
MAGIC_ENABLE = no
SPACE_CADET_ENABLE = no
16 changes: 11 additions & 5 deletions users/konstantin/config.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#pragma once

// Keyboard reports
#define FORCE_NKRO
#define USB_POLLING_INTERVAL_MS 1

// Mouse keys
#define MOUSEKEY_DELAY 0
#define MOUSEKEY_INTERVAL 10
#define MOUSEKEY_MAX_SPEED 4
Expand All @@ -11,22 +14,25 @@
#define MOUSEKEY_WHEEL_MAX_SPEED 4
#define MOUSEKEY_WHEEL_TIME_TO_MAX 50

#define NO_ACTION_FUNCTION
#define NO_ACTION_MACRO
#define NO_ACTION_ONESHOT

// RGB lighting
#undef RGBLIGHT_ANIMATIONS
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
#define RGBLIGHT_EFFECT_SNAKE

// Tapping
#define PERMISSIVE_HOLD
#define TAPPING_TERM 200
#define TAPPING_TOGGLE 3

// Unicode
#define UNICODE_CYCLE_PERSIST false
#define UNICODE_SELECTED_MODES UC_WINC, UC_WIN, UC_LNX
#define UNICODE_KEY_WINC KC_RGUI

#define USB_POLLING_INTERVAL_MS 1
// Firmware size reduction
#undef LOCKING_SUPPORT_ENABLE
#define NO_ACTION_FUNCTION
#define NO_ACTION_MACRO
#define NO_ACTION_ONESHOT
2 changes: 1 addition & 1 deletion users/konstantin/konstantin.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ enum layers_user {
L_NUMPAD,
#endif

L_RANGE_KEYMAP,
LAYERS_KEYMAP,
};

void keyboard_pre_init_keymap(void);
Expand Down
4 changes: 3 additions & 1 deletion users/konstantin/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ ifneq (,$(filter yes,$(UNICODE_ENABLE) $(UNICODEMAP_ENABLE)))
SRC += unicode.c
endif

LTO_ENABLE = yes
ifneq ($(PLATFORM),CHIBIOS)
LTO_ENABLE = yes
endif

0 comments on commit 9cf69a1

Please sign in to comment.