summaryrefslogtreecommitdiff
path: root/users/dshields
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2023-11-26 18:36:45 +0000
committerGitHub <noreply@github.com>2023-11-27 05:36:45 +1100
commit1ed03f498fa204178c2696c510ac6a2cd8524e2d (patch)
treeb97c1f983b7e4b57c007d0feedadd3ad3e39062b /users/dshields
parent4908d4b1ca260efecf3613e6517aa3a6f2034876 (diff)
Remove userspace keymaps (#22544)
Diffstat (limited to 'users/dshields')
-rw-r--r--users/dshields/config.h64
-rw-r--r--users/dshields/dshields.c57
-rw-r--r--users/dshields/dshields.h65
-rw-r--r--users/dshields/rules.mk31
4 files changed, 0 insertions, 217 deletions
diff --git a/users/dshields/config.h b/users/dshields/config.h
deleted file mode 100644
index 83ad32a591..0000000000
--- a/users/dshields/config.h
+++ /dev/null
@@ -1,64 +0,0 @@
-#pragma once
-
-#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
-#define USB_MAX_POWER_CONSUMPTION 100
-#define ONESHOT_TAP_TOGGLE 2
-#define ONESHOT_TIMEOUT 3000
-#define PERMISSIVE_HOLD_PER_KEY
-#define QUICK_TAP_TERM_PER_KEY
-#define TAPPING_TERM 200
-#define BACKLIGHT_BREATHING
-#define DYNAMIC_MACRO_NO_NESTING
-#define BOTH_SHIFTS_TURNS_ON_CAPS_WORD
-
-#define MOUSEKEY_INTERVAL 20
-#define MOUSEKEY_DELAY 0
-#ifndef MOUSEKEY_TIME_TO_MAX
-#define MOUSEKEY_TIME_TO_MAX 40
-#endif
-#define MOUSEKEY_MAX_SPEED 7
-#ifndef MOUSEKEY_WHEEL_DELAY
-#define MOUSEKEY_WHEEL_DELAY 0
-#endif
-
-#undef ENABLE_RGB_MATRIX_ALPHAS_MODS
-#undef ENABLE_RGB_MATRIX_BREATHING
-#undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
-#undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
-#undef ENABLE_RGB_MATRIX_BAND_SAT
-#undef ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
-#undef ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
-#undef ENABLE_RGB_MATRIX_BAND_VAL
-#undef ENABLE_RGB_MATRIX_CYCLE_ALL
-#undef ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
-#undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN
-#undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
-#undef ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
-#undef ENABLE_RGB_MATRIX_CYCLE_SPIRAL
-#undef ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
-#undef ENABLE_RGB_MATRIX_DUAL_BEACON
-#undef ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
-#undef ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
-#undef ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
-#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE
-#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
-#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
-#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
-#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
-#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
-#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
-#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
-#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
-#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
-#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
-#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
-#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
-#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
-#undef ENABLE_RGB_MATRIX_SOLID_SPLASH
-#undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
-#undef ENABLE_RGB_MATRIX_SOLID_SPLASH
-#undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
-#undef ENABLE_RGB_MATRIX_SPLASH
-#undef ENABLE_RGB_MATRIX_MULTISPLASH
-#undef ENABLE_RGB_MATRIX_SPLASH
-#undef ENABLE_RGB_MATRIX_MULTISPLASH
diff --git a/users/dshields/dshields.c b/users/dshields/dshields.c
deleted file mode 100644
index a8e1333104..0000000000
--- a/users/dshields/dshields.c
+++ /dev/null
@@ -1,57 +0,0 @@
-#include "quantum.h"
-#include "dshields.h"
-
-bool process_record_user(uint16_t keycode, keyrecord_t *record) {
- if ((keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX)
- || (keycode >= QK_LAYER_TAP && keycode <= QK_LAYER_TAP_MAX)
- || (keycode >= QK_MODS && keycode <= QK_MODS_MAX)) {
- keycode = keycode & 0xFF;
- }
- if (keycode == KC_ESC && record->event.pressed) {
- bool rc = true;
- uint8_t mods = 0;
- if ((mods = get_oneshot_mods()) && !has_oneshot_mods_timed_out()) {
- clear_oneshot_mods();
- unregister_mods(mods);
- rc = false;
- }
- if ((mods = get_oneshot_locked_mods())) {
- clear_oneshot_locked_mods();
- unregister_mods(mods);
- rc = false;
- }
- if (is_oneshot_layer_active()) {
- layer_clear();
- rc = false;
- }
- return rc;
- }
- return true;
-}
-
-uint16_t get_quick_tap_term(uint16_t keycode, keyrecord_t *record) {
- switch (keycode) {
- case MT_A:
- case MT_S:
- case MT_D:
- case MT_F:
- case MT_J:
- case MT_K:
- case MT_L:
- case MT_SCLN:
- return 0;
- default:
- return QUICK_TAP_TERM;
- }
-}
-
-bool get_permissive_hold(uint16_t keycode, keyrecord_t *record) {
- switch (keycode) {
- case MT_SPC:
- case MT_BSPC:
- case MT_ESC:
- return true;
- default:
- return false;
- }
-}
diff --git a/users/dshields/dshields.h b/users/dshields/dshields.h
deleted file mode 100644
index 4dd5db66bf..0000000000
--- a/users/dshields/dshields.h
+++ /dev/null
@@ -1,65 +0,0 @@
-#pragma once
-
-// one-shot layer keys
-#define OSL_RSE OSL(RSE)
-#define OSL_LWR OSL(LWR)
-#define OSL_FUN OSL(FUN)
-
-// one-shot modifier keys
-#define OSMLCTL OSM(MOD_LCTL)
-#define OSMRCTL OSM(MOD_RCTL)
-#define OSMLALT OSM(MOD_LALT)
-#define OSMRALT OSM(MOD_RALT)
-#define OSMLSFT OSM(MOD_LSFT)
-#define OSMRSFT OSM(MOD_RSFT)
-
-// mod-tap keys
-#define MT_SPC SFT_T(KC_SPC)
-#define MT_BSPC SFT_T(KC_BSPC)
-#define MT_ESC LGUI_T(KC_ESC)
-#define MT_A LGUI_T(KC_A)
-#define MT_S LALT_T(KC_S)
-#define MT_D LSFT_T(KC_D)
-#define MT_F LCTL_T(KC_F)
-#define MT_J RCTL_T(KC_J)
-#define MT_K RSFT_T(KC_K)
-#define MT_L RALT_T(KC_L)
-#define MT_SCLN RGUI_T(KC_SCLN)
-
-// layer-tap keys
-#if defined KEYBOARD_planck_light \
- || defined KEYBOARD_planck_rev3 \
- || defined KEYBOARD_planck_rev6 \
- || defined KEYBOARD_keyboardio_atreus
- #define LT_G LT(LWR, KC_G)
- #define LT_H LT(RSE, KC_H)
-#elif defined KEYBOARD_keyboardio_model01
- #define LT_G LT(FUN, KC_G)
- #define LT_H LT(FUN, KC_H)
-#else
- #define LT_G KC_G
- #define LT_H KC_H
-#endif
-
-// LED/RGB controls
-#if defined KEYBOARD_planck_light
- #define LGT_TOG RGB_TOG
- #define LGT_MOD RGB_MOD
- #define LGT_BRT _______
- #define LGT_INC RGB_HUI
- #define LGT_DEC RGB_HUD
-#elif defined KEYBOARD_planck_rev3
- #define LGT_TOG BL_TOGG
- #define LGT_MOD BL_STEP
- #define LGT_BRT BL_BRTG
- #define LGT_INC BL_UP
- #define LGT_DEC BL_DOWN
-#else
- #define LGT_TOG _______
- #define LGT_MOD _______
- #define LGT_BRT _______
- #define LGT_INC _______
- #define LGT_DEC _______
-#endif
-
-enum layers { DEF, LWR, RSE, FUN };
diff --git a/users/dshields/rules.mk b/users/dshields/rules.mk
deleted file mode 100644
index 6cf8de48f7..0000000000
--- a/users/dshields/rules.mk
+++ /dev/null
@@ -1,31 +0,0 @@
-SRC += dshields.c
-
-MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
-COMMAND_ENABLE = no # Commands for debug and configuration
-CONSOLE_ENABLE = no # Console for debug(+400)
-EXTRAKEY_ENABLE = no
-SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
-SPACE_CADET_ENABLE = no
-LEADER_ENABLE = no
-DYNAMIC_MACRO_ENABLE = yes
-
-LTO_ENABLE = yes
-CAPS_WORD_ENABLE = yes
-
-ifeq ($(strip $(KEYBOARD)), planck/rev3)
- AUDIO_ENABLE = no
- BACKLIGHT_ENABLE = yes
- RGB_MATRIX_ENABLE = no
-endif
-ifeq ($(strip $(KEYBOARD)), planck/rev6)
- CFLAGS += -Wno-error=deprecated
- EXTRALDFLAGS = -Wl,--build-id=none
- AUDIO_ENABLE = no
- BACKLIGHT_ENABLE = no
- RGB_MATRIX_ENABLE = no
-endif
-ifeq ($(strip $(KEYBOARD)), planck/light)
- AUDIO_ENABLE = yes
- BACKLIGHT_ENABLE = no
- RGB_MATRIX_ENABLE = yes
-endif