Initial commit
Move previous keymaps to one repo
This commit is contained in:
commit
0b7c87fd5b
15 changed files with 288 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
*.bin
|
||||||
|
*.uf2
|
16
Makefile
Normal file
16
Makefile
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
.SILENT:
|
||||||
|
|
||||||
|
MAKEFLAGS += --no-print-directory
|
||||||
|
|
||||||
|
QMK_USERSPACE := $(patsubst %/,%,$(dir $(shell realpath "$(lastword $(MAKEFILE_LIST))")))
|
||||||
|
ifeq ($(QMK_USERSPACE),)
|
||||||
|
QMK_USERSPACE := $(shell pwd)
|
||||||
|
endif
|
||||||
|
|
||||||
|
QMK_FIRMWARE_ROOT = $(shell qmk config -ro user.qmk_home | cut -d= -f2 | sed -e 's@^None$$@@g')
|
||||||
|
ifeq ($(QMK_FIRMWARE_ROOT),)
|
||||||
|
$(error Cannot determine qmk_firmware location. `qmk config -ro user.qmk_home` is not set)
|
||||||
|
endif
|
||||||
|
|
||||||
|
%:
|
||||||
|
+$(MAKE) -C $(QMK_FIRMWARE_ROOT) $(MAKECMDGOALS) QMK_USERSPACE=$(QMK_USERSPACE)
|
3
README.md
Normal file
3
README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# QMK Userspace
|
||||||
|
|
||||||
|
All my qmk keymaps.
|
0
keyboards/.keep
Normal file
0
keyboards/.keep
Normal file
50
keyboards/crkbd/keymaps/hadeed/keymap.c
Normal file
50
keyboards/crkbd/keymaps/hadeed/keymap.c
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
enum LAYERS {
|
||||||
|
BASE,
|
||||||
|
NUM,
|
||||||
|
SYM,
|
||||||
|
};
|
||||||
|
|
||||||
|
#define HRM_A LALT_T(KC_A)
|
||||||
|
#define HRM_R LGUI_T(KC_R)
|
||||||
|
#define HRM_S LCTL_T(KC_S)
|
||||||
|
#define HRM_T LSFT_T(KC_T)
|
||||||
|
#define HRM_N RSFT_T(KC_N)
|
||||||
|
#define HRM_E RCTL_T(KC_E)
|
||||||
|
#define HRM_I RGUI_T(KC_I)
|
||||||
|
#define HRM_O LALT_T(KC_O)
|
||||||
|
|
||||||
|
#define _KC_TAB LT(NUM, KC_TAB)
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/*
|
||||||
|
[] = LAYOUT_split_3x5_3(
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
*/
|
||||||
|
|
||||||
|
[BASE] = LAYOUT_split_3x5_3(
|
||||||
|
KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_SCLN,
|
||||||
|
HRM_A, HRM_R, HRM_S, HRM_T, KC_G, KC_M, HRM_N, HRM_E, HRM_I, HRM_O,
|
||||||
|
KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH,
|
||||||
|
_KC_TAB, KC_ENT, KC_ESC, KC_BSPC, KC_SPC, MO(SYM)
|
||||||
|
),
|
||||||
|
|
||||||
|
[NUM] = LAYOUT_split_3x5_3(
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
KC_9, KC_5, KC_0, KC_3, KC_7, KC_6, KC_2, KC_1, KC_4, KC_8,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
|
||||||
|
[SYM] = LAYOUT_split_3x5_3(
|
||||||
|
KC_GRV, KC_DQUO, KC_LBRC, KC_RBRC, KC_AT, KC_PERC, KC_HASH, KC_ASTR, KC_SLSH, KC_COLN,
|
||||||
|
KC_BSLS, KC_QUOT, KC_LPRN, KC_RPRN, KC_AMPR, KC_PIPE, KC_EQL, KC_MINS, KC_PLUS, KC_EXLM,
|
||||||
|
QK_BOOT, KC_TILD, KC_LCBR, KC_RCBR, KC_CIRC, KC_DLR, KC_UNDS, KC_LABK, KC_RABK, KC_QUES,
|
||||||
|
_______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
};
|
1
keyboards/crkbd/keymaps/hadeed/rules.mk
Normal file
1
keyboards/crkbd/keymaps/hadeed/rules.mk
Normal file
|
@ -0,0 +1 @@
|
||||||
|
CONVERT_TO=kb2040
|
|
@ -0,0 +1,5 @@
|
||||||
|
#define TAPPING_TERM 150
|
||||||
|
#define QUICK_TAP_TERM 150
|
||||||
|
|
||||||
|
#undef HOLD_ON_OTHER_KEY_PRESS
|
||||||
|
#define PERMISSIVE_HOLD
|
|
@ -0,0 +1,23 @@
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
#include "layers.h"
|
||||||
|
|
||||||
|
static void encoder_brightness(bool clockwise) {
|
||||||
|
if (clockwise)
|
||||||
|
rgb_matrix_increase_val_noeeprom();
|
||||||
|
else
|
||||||
|
rgb_matrix_decrease_val_noeeprom();
|
||||||
|
}
|
||||||
|
|
||||||
|
static void encoder_volume(bool clockwise) {
|
||||||
|
tap_code_delay(clockwise ? KC_VOLU : KC_VOLD, 10);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||||
|
if (IS_LAYER_ON(FN))
|
||||||
|
encoder_brightness(clockwise);
|
||||||
|
else
|
||||||
|
encoder_volume(clockwise);
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
103
keyboards/keychron/q1v2/ansi_encoder/keymaps/hadeed/keymap.c
Normal file
103
keyboards/keychron/q1v2/ansi_encoder/keymaps/hadeed/keymap.c
Normal file
|
@ -0,0 +1,103 @@
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
#include "layers.h"
|
||||||
|
|
||||||
|
void set_backlight(void);
|
||||||
|
void change_default_layer(bool);
|
||||||
|
|
||||||
|
enum custom_keycodes {
|
||||||
|
CK_LRUP = SAFE_RANGE,
|
||||||
|
CK_LRDN
|
||||||
|
};
|
||||||
|
|
||||||
|
#define KC_TASK G(KC_TAB)
|
||||||
|
#define KC_FLXP G(KC_E)
|
||||||
|
|
||||||
|
#define HRM_A LALT_T(KC_A)
|
||||||
|
#define HRM_S LGUI_T(KC_S)
|
||||||
|
#define HRM_D LCTL_T(KC_D)
|
||||||
|
#define HRM_F LSFT_T(KC_F)
|
||||||
|
|
||||||
|
#define HRM_J RSFT_T(KC_J)
|
||||||
|
#define HRM_K RCTL_T(KC_K)
|
||||||
|
#define HRM_L RGUI_T(KC_L)
|
||||||
|
#define HRM_SLN RALT_T(KC_SCLN)
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[LINUX] = LAYOUT_ansi_82(
|
||||||
|
_______, 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_DEL, KC_MUTE,
|
||||||
|
KC_GRV, 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_BSPC, KC_PGUP,
|
||||||
|
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_BSLS, KC_PGDN,
|
||||||
|
KC_ESC, HRM_A, HRM_S, HRM_D, HRM_F, KC_G, KC_H, HRM_J, HRM_K, HRM_L, HRM_SLN, KC_QUOT, KC_ENT, KC_HOME,
|
||||||
|
_______, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, _______, KC_UP,
|
||||||
|
MO(NAV), _______, _______, KC_SPC, _______, MO(FN), _______, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
[NAV] = LAYOUT_ansi_82(
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
|
||||||
|
|
||||||
|
/* ----------------------------------------------------------------------------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
[DOTA] = LAYOUT_ansi_82(
|
||||||
|
KC_ESC, 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_DEL, KC_MUTE,
|
||||||
|
KC_GRV, 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_BSPC, KC_PGUP,
|
||||||
|
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_BSLS, KC_PGDN,
|
||||||
|
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, KC_HOME,
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(FN), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
|
||||||
|
/* ----------------------------------------------------------------------------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
[FN] = LAYOUT_ansi_82(
|
||||||
|
QK_RBT, KC_BRID, KC_BRIU, KC_TASK, KC_FLXP, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, CK_LRUP,
|
||||||
|
RGB_TOG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, CK_LRDN,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, QK_BOOT, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch (keycode) {
|
||||||
|
case CK_LRUP:
|
||||||
|
case CK_LRDN:
|
||||||
|
if (record->event.pressed)
|
||||||
|
change_default_layer(keycode == CK_LRUP);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// The boring stuff
|
||||||
|
|
||||||
|
void set_backlight(void) {
|
||||||
|
uint8_t v = rgb_matrix_get_val();
|
||||||
|
|
||||||
|
if (IS_LAYER_ON_STATE(default_layer_state, LINUX))
|
||||||
|
rgb_matrix_sethsv_noeeprom(HSV_WHITE);
|
||||||
|
else if (IS_LAYER_ON_STATE(default_layer_state, DOTA))
|
||||||
|
rgb_matrix_sethsv_noeeprom(HSV_RED);
|
||||||
|
|
||||||
|
rgb_matrix_sethsv_noeeprom(rgb_matrix_get_hue(), rgb_matrix_get_sat(), v);
|
||||||
|
}
|
||||||
|
|
||||||
|
void change_default_layer(bool layer_up) {
|
||||||
|
layer_state_t x = (layer_up ? default_layer_state<<1 : default_layer_state>>1) & ((1 << BASE_LAYERS) - 1);
|
||||||
|
default_layer_set(x != 0 ? x : (layer_up ? 1U : (1 << (BASE_LAYERS-1))));
|
||||||
|
|
||||||
|
set_backlight();
|
||||||
|
}
|
||||||
|
|
||||||
|
void keyboard_post_init_user(void) {
|
||||||
|
rgb_matrix_mode_noeeprom(RGB_MATRIX_SOLID_COLOR);
|
||||||
|
rgb_matrix_sethsv_noeeprom(rgb_matrix_get_hue(), rgb_matrix_get_sat(), 128);
|
||||||
|
|
||||||
|
set_backlight();
|
||||||
|
}
|
15
keyboards/keychron/q1v2/ansi_encoder/keymaps/hadeed/layers.h
Normal file
15
keyboards/keychron/q1v2/ansi_encoder/keymaps/hadeed/layers.h
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
#ifndef LAYERS_H
|
||||||
|
#define LAYERS_H
|
||||||
|
|
||||||
|
enum base_layers {
|
||||||
|
LINUX,
|
||||||
|
DOTA,
|
||||||
|
BASE_LAYERS
|
||||||
|
};
|
||||||
|
|
||||||
|
enum other_layers {
|
||||||
|
NAV = BASE_LAYERS,
|
||||||
|
FN,
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
|
@ -0,0 +1,3 @@
|
||||||
|
SRC += encoder.c
|
||||||
|
|
||||||
|
ENCODER_MAP_ENABLE = no
|
5
keyboards/moonlander/keymaps/hadeed/config.h
Normal file
5
keyboards/moonlander/keymaps/hadeed/config.h
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#define TAPPING_TERM 200
|
||||||
|
#define ORYX_CONFIGURATOR
|
||||||
|
#define BOTH_SHIFTS_TURNS_ON_CAPS_WORD
|
56
keyboards/moonlander/keymaps/hadeed/keymap.c
Normal file
56
keyboards/moonlander/keymaps/hadeed/keymap.c
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
#define HRM_A LALT_T(KC_A)
|
||||||
|
#define HRM_R LGUI_T(KC_R)
|
||||||
|
#define HRM_S LCTL_T(KC_S)
|
||||||
|
#define HRM_T LSFT_T(KC_T)
|
||||||
|
#define HRM_N RSFT_T(KC_N)
|
||||||
|
#define HRM_E RCTL_T(KC_E)
|
||||||
|
#define HRM_I RGUI_T(KC_I)
|
||||||
|
#define HRM_O LALT_T(KC_O)
|
||||||
|
|
||||||
|
enum layers {
|
||||||
|
BASE,
|
||||||
|
SYM,
|
||||||
|
SYS,
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/*
|
||||||
|
[] = LAYOUT_moonlander(
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
*/
|
||||||
|
|
||||||
|
[0] = LAYOUT_moonlander(
|
||||||
|
KC_GRV, KC_9, KC_5, KC_0, KC_3, KC_7, _______, _______, KC_6, KC_2, KC_1, KC_4, KC_8, _______,
|
||||||
|
KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_B, KC_PGDN, KC_PGUP, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC,
|
||||||
|
OSL(SYM),HRM_A, HRM_R, HRM_S, HRM_T, KC_G, KC_HOME, KC_END, KC_M, HRM_N, HRM_E, HRM_I, HRM_O, OSL(SYM),
|
||||||
|
KC_ESC, KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, KC_QUOT,
|
||||||
|
MO(SYS), _______, _______, _______, _______, _______, _______, KC_DOWN, KC_UP, KC_LEFT, KC_RGHT, MO(SYS),
|
||||||
|
KC_ENT, OSM(MOD_RSFT),_______, _______, CW_TOGG, KC_SPC
|
||||||
|
),
|
||||||
|
|
||||||
|
[SYM] = LAYOUT_moonlander(
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, KC_PERC, KC_LBRC, KC_RBRC, _______, _______, _______, _______, KC_AT, KC_ASTR, KC_HASH, KC_COLN, _______,
|
||||||
|
_______, _______, KC_BSLS, KC_LPRN, KC_RPRN, KC_CIRC, _______, _______, KC_DLR, KC_EQL, KC_MINS, KC_PLUS, KC_EXLM, _______,
|
||||||
|
_______, _______, KC_TILD, KC_LCBR, KC_RCBR, KC_AMPR, KC_PIPE, KC_UNDS, KC_LABK, KC_RABK, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
|
||||||
|
[SYS] = LAYOUT_moonlander(
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
EE_CLR, _______, _______, _______, _______, _______, RGB_TOG, _______, _______, _______, _______, QK_BOOT,
|
||||||
|
_______, _______, _______, _______, _______, _______
|
||||||
|
)
|
||||||
|
};
|
2
keyboards/moonlander/keymaps/hadeed/rules.mk
Normal file
2
keyboards/moonlander/keymaps/hadeed/rules.mk
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
CAPS_WORD_ENABLE = yes
|
||||||
|
COMMAND_ENABLE = no
|
4
qmk.json
Normal file
4
qmk.json
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"userspace_version": "1.0",
|
||||||
|
"build_targets": []
|
||||||
|
}
|
Loading…
Reference in a new issue