summaryrefslogtreecommitdiff
path: root/keyboards/xd002/keymaps
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/xd002/keymaps')
-rw-r--r--keyboards/xd002/keymaps/default/keymap.c7
-rw-r--r--keyboards/xd002/keymaps/multilayer_rgb/config.h22
-rw-r--r--keyboards/xd002/keymaps/multilayer_rgb/keymap.c173
-rw-r--r--keyboards/xd002/keymaps/multilayer_rgb/rgblite.h9
-rw-r--r--keyboards/xd002/keymaps/multilayer_rgb/rules.mk2
-rw-r--r--keyboards/xd002/keymaps/rgb/keymap.c46
-rw-r--r--keyboards/xd002/keymaps/rgb/rules.mk1
-rw-r--r--keyboards/xd002/keymaps/rgb_lite/keymap.c31
-rw-r--r--keyboards/xd002/keymaps/rgb_lite/rgblite.h26
-rw-r--r--keyboards/xd002/keymaps/rgb_lite/rules.mk1
-rw-r--r--keyboards/xd002/keymaps/tap_dance/config.h3
-rw-r--r--keyboards/xd002/keymaps/tap_dance/keymap.c19
-rw-r--r--keyboards/xd002/keymaps/tap_dance/rules.mk1
-rw-r--r--keyboards/xd002/keymaps/volume/keymap.c7
-rw-r--r--keyboards/xd002/keymaps/volume/rules.mk1
15 files changed, 0 insertions, 349 deletions
diff --git a/keyboards/xd002/keymaps/default/keymap.c b/keyboards/xd002/keymaps/default/keymap.c
deleted file mode 100644
index ae53d396d1..0000000000
--- a/keyboards/xd002/keymaps/default/keymap.c
+++ /dev/null
@@ -1,7 +0,0 @@
-#include QMK_KEYBOARD_H
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- [0] = LAYOUT(
- KC_A, KC_B
- )
-};
diff --git a/keyboards/xd002/keymaps/multilayer_rgb/config.h b/keyboards/xd002/keymaps/multilayer_rgb/config.h
deleted file mode 100644
index f478baf3b3..0000000000
--- a/keyboards/xd002/keymaps/multilayer_rgb/config.h
+++ /dev/null
@@ -1,22 +0,0 @@
-/* Copyright 2020 elmo-space<mail@elmo.space>
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-#pragma once
-
-/*enable layers*/
-#undef NO_ACTION_LAYER
-
-/* increase tap duration (spotify doesn't like very short taps)*/
-#define TAP_CODE_DELAY 100
diff --git a/keyboards/xd002/keymaps/multilayer_rgb/keymap.c b/keyboards/xd002/keymaps/multilayer_rgb/keymap.c
deleted file mode 100644
index 01a96119e5..0000000000
--- a/keyboards/xd002/keymaps/multilayer_rgb/keymap.c
+++ /dev/null
@@ -1,173 +0,0 @@
-/* Copyright 2020 elmo-space<mail@elmo.space>
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include QMK_KEYBOARD_H
-#include "rgblite.h"
-
-// Defines names for use in layer keycodes and the keymap
-enum layer_names {
- _BASE,
- _FUNC,
-};
-
-// set your keycodes here
-#define layer1_left KC_PAUS
-#define layer1_right KC_MPLY
-#define layer2_left KC_MPRV
-#define layer2_right KC_MNXT
-
-
-enum custom_keycodes {
- LEFT1 = SAFE_RANGE,
- RIGHT1,
- LEFT2,
- RIGHT2
-};
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- [_BASE] = LAYOUT(
- LEFT1, RIGHT1
- ),
- [_FUNC] = LAYOUT(
- LEFT2, RIGHT2
- )
-};
-
-static bool key1_down = false;
-static bool key2_down = false;
-static char layer_switched = 0; // this prevents the individual keys getting triggered after a layerchange
-
-bool process_record_user(uint16_t keycode, keyrecord_t *record)
-{
- switch (keycode)
- {
- case LEFT1:
- if (record->event.pressed)
- {
- if (key2_down)
- {
- layer_on(1);
- layer_switched = 2;
- return false;
- break;
- }
- key1_down = true;
- }
- else {
- if (layer_switched > 0) {
- --layer_switched;
- key1_down = false;
- }
- else {
- tap_code(layer1_left);
- key1_down = false;
- }
- }
- return false;
- break;
- case RIGHT1:
- if (record->event.pressed)
- {
- if (key1_down)
- {
- layer_on(1);
- layer_switched = 2;
- return false;
- break;
- }
- key2_down = true;
- }
- else {
- if (layer_switched > 0) {
- --layer_switched;
- key2_down = false;
- }
- else {
- tap_code(layer1_right);
- key2_down = false;
- }
- }
- return false;
- break;
- case LEFT2:
- if (record->event.pressed)
- {
- if (key2_down)
- {
- layer_off(1);
- layer_switched = 2;
- return false;
- break;
- }
- key1_down = true;
- }
- else {
- if (layer_switched > 0) {
- --layer_switched;
- key1_down = false;
- }
- else {
- tap_code(layer2_left);
- key1_down = false;
- }
- }
- return false;
- break;
- case RIGHT2:
- if (record->event.pressed)
- {
- if (key1_down)
- {
- layer_off(1);
- layer_switched = 2;
- return false;
- break;
- }
- key2_down = true;
- }
- else {
- if (layer_switched > 0) {
- --layer_switched;
- key2_down = false;
- }
- else {
- tap_code(layer2_right);
- key2_down = false;
- }
- }
- return false;
- break;
- }
- return true;
-};
-
-// layer colors
-layer_state_t layer_state_set_user(layer_state_t state) {
- switch (get_highest_layer(state)) {
- case _FUNC:
- rgblight_setrgb_red();
- break;
- default: // for any other layers, or the default layer
- rgblight_setrgb_green();
- break;
- }
- return state;
-}
-
-// default color
-void keyboard_post_init_user(void) {
- rgblight_setrgb_green();
-}
diff --git a/keyboards/xd002/keymaps/multilayer_rgb/rgblite.h b/keyboards/xd002/keymaps/multilayer_rgb/rgblite.h
deleted file mode 100644
index ddc61d5f43..0000000000
--- a/keyboards/xd002/keymaps/multilayer_rgb/rgblite.h
+++ /dev/null
@@ -1,9 +0,0 @@
-#pragma once
-
-#include "ws2812.h"
-#include "rgblight_list.h"
-
-static inline void rgblight_setrgb(uint8_t _r, uint8_t _g, uint8_t _b) {
- LED_TYPE leds[RGBLED_NUM] = {{.r = _r, .g = _g, .b = _b}, {.r = _r, .g = _g, .b = _b}};
- ws2812_setleds(leds, RGBLED_NUM);
-}
diff --git a/keyboards/xd002/keymaps/multilayer_rgb/rules.mk b/keyboards/xd002/keymaps/multilayer_rgb/rules.mk
deleted file mode 100644
index 69d592aa4b..0000000000
--- a/keyboards/xd002/keymaps/multilayer_rgb/rules.mk
+++ /dev/null
@@ -1,2 +0,0 @@
-SRC += ws2812.c
-EXTRAKEY_ENABLE = yes
diff --git a/keyboards/xd002/keymaps/rgb/keymap.c b/keyboards/xd002/keymaps/rgb/keymap.c
deleted file mode 100644
index af04734138..0000000000
--- a/keyboards/xd002/keymaps/rgb/keymap.c
+++ /dev/null
@@ -1,46 +0,0 @@
-#include QMK_KEYBOARD_H
-
-// Defines the keycodes used by our macros in process_record_user
-enum custom_keycodes {
- QMKURL = SAFE_RANGE,
-};
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- [0] = LAYOUT(
- RGB_HUI, QMKURL
- )
-};
-
-bool process_record_user(uint16_t keycode, keyrecord_t *record) {
- if (record->event.pressed) {
- switch (keycode) {
- case QMKURL:
- // Using SEND_STRING here adds 400bytes ...
- // SEND_STRING("https://qmk.fm/" SS_TAP(X_ENTER));
- tap_code(KC_H);
- tap_code(KC_T);
- tap_code(KC_T);
- tap_code(KC_P);
- tap_code(KC_S);
- tap_code16(KC_COLON);
- tap_code(KC_SLASH);
- tap_code(KC_SLASH);
- tap_code(KC_Q);
- tap_code(KC_M);
- tap_code(KC_K);
- tap_code(KC_DOT);
- tap_code(KC_F);
- tap_code(KC_M);
- tap_code(KC_SLASH);
- tap_code(KC_ENTER);
- break;
- }
- }
- return true;
-}
-
-void keyboard_post_init_user(void) {
- rgblight_enable_noeeprom(); // enables Rgb, without saving settings
- rgblight_sethsv_noeeprom(180, 255, 255); // sets the color to teal/cyan without saving
- rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT); // sets mode to Fast breathing without saving
-}
diff --git a/keyboards/xd002/keymaps/rgb/rules.mk b/keyboards/xd002/keymaps/rgb/rules.mk
deleted file mode 100644
index 1e3cebb145..0000000000
--- a/keyboards/xd002/keymaps/rgb/rules.mk
+++ /dev/null
@@ -1 +0,0 @@
-RGBLIGHT_ENABLE = yes
diff --git a/keyboards/xd002/keymaps/rgb_lite/keymap.c b/keyboards/xd002/keymaps/rgb_lite/keymap.c
deleted file mode 100644
index ed9185e3b5..0000000000
--- a/keyboards/xd002/keymaps/rgb_lite/keymap.c
+++ /dev/null
@@ -1,31 +0,0 @@
-#include QMK_KEYBOARD_H
-#include "rgblite.h"
-
-// Defines the keycodes used by our macros in process_record_user
-enum custom_keycodes {
- QMKURL = SAFE_RANGE,
-};
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- [0] = LAYOUT(
- RGB_HUI, QMKURL
- )
-};
-
-bool process_record_user(uint16_t keycode, keyrecord_t *record) {
- if (record->event.pressed) {
- switch (keycode) {
- case RGB_HUI:
- rgblight_increase_hue();
- break;
- case QMKURL:
- SEND_STRING("https://qmk.fm/" SS_TAP(X_ENTER));
- break;
- }
- }
- return true;
-}
-
-void keyboard_post_init_user(void) {
- rgblight_increase_hue();
-}
diff --git a/keyboards/xd002/keymaps/rgb_lite/rgblite.h b/keyboards/xd002/keymaps/rgb_lite/rgblite.h
deleted file mode 100644
index ca98484b81..0000000000
--- a/keyboards/xd002/keymaps/rgb_lite/rgblite.h
+++ /dev/null
@@ -1,26 +0,0 @@
-#pragma once
-
-#include "ws2812.h"
-#include "rgblight_list.h"
-
-static inline void rgblight_setrgb(uint8_t _r, uint8_t _g, uint8_t _b) {
- LED_TYPE leds[RGBLED_NUM] = {{.r = _r, .g = _g, .b = _b}, {.r = _r, .g = _g, .b = _b}};
- ws2812_setleds(leds, RGBLED_NUM);
-}
-
-static void rgblight_increase_hue(void) {
- static uint8_t state = 0;
-
- state = (state + 1) % 3;
- switch (state) {
- case 1:
- rgblight_setrgb_red();
- break;
- case 2:
- rgblight_setrgb_blue();
- break;
- default:
- rgblight_setrgb_green();
- break;
- }
-}
diff --git a/keyboards/xd002/keymaps/rgb_lite/rules.mk b/keyboards/xd002/keymaps/rgb_lite/rules.mk
deleted file mode 100644
index 227bbcae32..0000000000
--- a/keyboards/xd002/keymaps/rgb_lite/rules.mk
+++ /dev/null
@@ -1 +0,0 @@
-SRC += ws2812.c
diff --git a/keyboards/xd002/keymaps/tap_dance/config.h b/keyboards/xd002/keymaps/tap_dance/config.h
deleted file mode 100644
index b86e862d30..0000000000
--- a/keyboards/xd002/keymaps/tap_dance/config.h
+++ /dev/null
@@ -1,3 +0,0 @@
-#pragma once
-
-#define TAPPING_TERM 500
diff --git a/keyboards/xd002/keymaps/tap_dance/keymap.c b/keyboards/xd002/keymaps/tap_dance/keymap.c
deleted file mode 100644
index 0f384ce99f..0000000000
--- a/keyboards/xd002/keymaps/tap_dance/keymap.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include QMK_KEYBOARD_H
-
-enum layers {
- _BASE = 0,
-};
-
-enum {
- TD_BC = 0
-};
-
-qk_tap_dance_action_t tap_dance_actions[] = {
- [TD_BC] = ACTION_TAP_DANCE_DOUBLE(KC_B, KC_C)
-};
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- [_BASE] = LAYOUT(
- KC_A, TD(TD_BC)
- )
-};
diff --git a/keyboards/xd002/keymaps/tap_dance/rules.mk b/keyboards/xd002/keymaps/tap_dance/rules.mk
deleted file mode 100644
index e5ddcae8d9..0000000000
--- a/keyboards/xd002/keymaps/tap_dance/rules.mk
+++ /dev/null
@@ -1 +0,0 @@
-TAP_DANCE_ENABLE = yes
diff --git a/keyboards/xd002/keymaps/volume/keymap.c b/keyboards/xd002/keymaps/volume/keymap.c
deleted file mode 100644
index 2365d7b245..0000000000
--- a/keyboards/xd002/keymaps/volume/keymap.c
+++ /dev/null
@@ -1,7 +0,0 @@
-#include QMK_KEYBOARD_H
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- [0] = LAYOUT(
- KC_VOLU, KC_VOLD
- )
-};
diff --git a/keyboards/xd002/keymaps/volume/rules.mk b/keyboards/xd002/keymaps/volume/rules.mk
deleted file mode 100644
index fcfd2225bc..0000000000
--- a/keyboards/xd002/keymaps/volume/rules.mk
+++ /dev/null
@@ -1 +0,0 @@
-EXTRAKEY_ENABLE = yes