Remove obvious user keymaps, keyboards/{v,x,y,z}* edition. (#23083)
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
#include "../../config.h"
|
||||
|
||||
// Backlight configuration
|
||||
#undef BACKLIGHT_LEVELS
|
||||
#define BACKLIGHT_LEVELS 3
|
||||
|
||||
// Underlight configuration
|
||||
#undef RGBLED_NUM
|
||||
#define RGBLED_NUM 6 // Number of LEDs
|
||||
#undef RGBLIGHT_HUE_STEP
|
||||
#define RGBLIGHT_HUE_STEP 8
|
||||
#undef RGBLIGHT_SAT_STEP
|
||||
#define RGBLIGHT_SAT_STEP 8
|
||||
#undef RGBLIGHT_VAL_STEP
|
||||
#define RGBLIGHT_VAL_STEP 8
|
||||
@@ -1,50 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
||||
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||
// entirely and just use numbers.
|
||||
#define _BL 0
|
||||
#define _FL 1
|
||||
#define _RGBL 2
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
// See base_layer.png and rgb_layer.png for layout reference
|
||||
|
||||
// Base Default Layer
|
||||
// Mac Modifier Layout. Use BootMagic to toggle GUI and ALT positions.
|
||||
[_BL] = LAYOUT_60_ansi_split_bs_rshift(
|
||||
QK_GESC, 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, XXXXXXX,
|
||||
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,
|
||||
LT(_FL, KC_CAPS), 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_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, MO(_FL),
|
||||
KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
|
||||
// Function layer
|
||||
[_FL] = LAYOUT_60_ansi_split_bs_rshift(
|
||||
KC_GRV, 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, XXXXXXX,
|
||||
XXXXXXX, KC_MPRV, KC_UP, KC_MNXT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PSCR, KC_SCRL, KC_PAUS, KC_INS,
|
||||
_______, KC_LEFT, KC_DOWN, KC_RGHT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
_______, KC_MUTE, KC_VOLD, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, LT(_RGBL, KC_PGUP), _______,
|
||||
_______, _______, _______, KC_MPLY, _______, KC_HOME, KC_PGDN, KC_END
|
||||
),
|
||||
|
||||
// RGB Layer
|
||||
[_RGBL] = LAYOUT_60_ansi_split_bs_rshift(
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
QK_BOOT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, BL_TOGG, BL_STEP, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
_______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, XXXXXXX, XXXXXXX, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______
|
||||
#else
|
||||
QK_BOOT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, BL_TOGG, BL_STEP, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______
|
||||
#endif
|
||||
),
|
||||
};
|
||||
@@ -1,22 +0,0 @@
|
||||
/* Copyright 2018 MechMerlin
|
||||
*
|
||||
* 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 cmd-option-escape on mac.
|
||||
#define GRAVE_ESC_ALT_OVERRIDE
|
||||
|
||||
// place overrides here
|
||||
@@ -1,165 +0,0 @@
|
||||
/* Copyright 2019 Yonatan Zunger
|
||||
*
|
||||
* 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
|
||||
|
||||
enum custom_keycodes {
|
||||
// Use this instead of RALT, so we can use it to switch layers but not trigger other alt-related
|
||||
// behavior (like GRAVE_ESC_ALT_OVERRIDE).
|
||||
MAGIC = SAFE_RANGE,
|
||||
};
|
||||
|
||||
enum layers_keymap {
|
||||
_QWERTY = 0,
|
||||
_FUNCTION,
|
||||
|
||||
_MAGIC,
|
||||
_SHIFTMAGIC,
|
||||
};
|
||||
|
||||
// This is so that H(xxxx) has the same width as _______, which makes the grids more legible.
|
||||
#define H(x) UC(0x##x)
|
||||
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Keymap (Base Layer) Default Layer
|
||||
* ,----------------------------------------------------------------.
|
||||
* |Esc | 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Del|Brk|Home|
|
||||
* |----------------------------------------------------------------|
|
||||
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \ |End |
|
||||
* |----------------------------------------------------------------|
|
||||
* |Ctrl | A| S| D| F| G| H| J| K| L| ;| '|Return |PgUp|
|
||||
* |----------------------------------------------------------------|
|
||||
* |Shift | Z| X| C| V| B| N| M| ,| .| /|Shift | Up|PgDn|
|
||||
* |----------------------------------------------------------------|
|
||||
* |Ctrl|Alt |Win | Space |Alt| FN |||||Lef|Dow|Rig |
|
||||
* `----------------------------------------------------------------'
|
||||
*/
|
||||
[_QWERTY] = LAYOUT(
|
||||
QK_GESC, 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_BRK, KC_HOME,
|
||||
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_END,
|
||||
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_PGUP,
|
||||
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_PGDN,
|
||||
KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, MAGIC, MO(_FUNCTION), KC_LEFT, KC_DOWN, KC_RGHT),
|
||||
|
||||
/* Keymap Fn Layer. Blank keys are deliberately NO, not TRNS.
|
||||
* ,----------------------------------------------------------------.
|
||||
* |Rst |F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|F13|PSc|PAUS|
|
||||
* |----------------------------------------------------------------|
|
||||
* |Debug| | | | | | | | | | | | | | |
|
||||
* |----------------------------------------------------------------|
|
||||
* |Ctrl | |Vo+| | | | | | | | | | | |
|
||||
* |----------------------------------------------------------------|
|
||||
* |Shift |REV|Vo-|FWD| | | | | | | | McL|MsU|McR |
|
||||
* |----------------------------------------------------------------|
|
||||
* |Ctrl|Alt |Win | |Alt| |||||MsL|MsD|MsR |
|
||||
* `----------------------------------------------------------------'
|
||||
*/
|
||||
[_FUNCTION] = LAYOUT(
|
||||
QK_BOOT, 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_F13, KC_PSCR, KC_MPLY,
|
||||
DB_TOGG, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, _______,
|
||||
_______, KC_NO, KC_VOLU, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
_______, KC_MRWD, KC_VOLD, KC_MFFD, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_BTN1, KC_MS_U, KC_BTN2,
|
||||
_______, _______, _______, KC_NO, _______, _______, KC_MS_L, KC_MS_D, KC_MS_R),
|
||||
|
||||
/* Mathematical lower layer. Blank keys are TRNS.
|
||||
* Note that escape turns into grave here. This doesn't just generalize GRAVE_ESC; it means that
|
||||
* magic+esc is a way to create backticks without a dedicated key.
|
||||
* ,----------------------------------------------------------------.
|
||||
* | ` | ¹| ² | ³ | ⁴ | ⁵ | ⁶ | ⁷ | ⁸ | ⁹ | ⁰ | ⁻ | ⁺ | ⊕ | ≠ | √ |
|
||||
* |----------------------------------------------------------------|
|
||||
* | | ± | ω | ε | ρ | τ | θ | υ | ι | ο | π | ∃ | ∀ | ℚ | ℝ |
|
||||
* |----------------------------------------------------------------|
|
||||
* | | α | σ | δ | φ | γ | η | ∅ | κ | λ | ∨ | ∧ | | ℕ |
|
||||
* |----------------------------------------------------------------|
|
||||
* | | ζ | ξ | χ | ψ | β | ν | μ | ≲ | ≳ | ∈ | | ↑ | ↔ |
|
||||
* |----------------------------------------------------------------|
|
||||
* | | | | | | ||||| ← | ↓ | → |
|
||||
* `----------------------------------------------------------------'
|
||||
*/
|
||||
[_MAGIC] = LAYOUT(
|
||||
KC_GRV, H(00b9), H(00b2), H(00b3), H(2074), H(2075), H(2076), H(2077), H(2078), H(2079), H(2070), H(207b), H(207a), H(2295), H(2260), H(221a),
|
||||
_______, H(00b1), H(03c9), H(03b5), H(03c1), H(03c4), H(03b8), H(03c5), H(03b9), H(03bf), H(03c0), H(2203), H(2200), H(211a), H(211d),
|
||||
_______, H(03b1), H(03c3), H(03b4), H(03c6), H(03b3), H(03b7), H(2205), H(03ba), H(03bb), H(2228), H(2227), _______, H(2115),
|
||||
_______, H(03b6), H(03be), H(03c7), H(03c8), H(03b2), H(03bd), H(03bc), H(2272), H(2273), H(2208), _______, H(2191), H(2194),
|
||||
_______, _______, _______, _______, _______, _______, H(2190), H(2193), H(2192)),
|
||||
|
||||
/* Mathematical upper layer. Blank keys are TRNS.
|
||||
* ,----------------------------------------------------------------.
|
||||
* | ` | ₁| ₂ | ₃ | ₄ | ₅ | ₆ | ₇ | ₈ | ₉ | ₀ | ₋ | ₊ | ⊗ | ≈ | ∂ |
|
||||
* |----------------------------------------------------------------|
|
||||
* | | ∓ | Ω | Ε | Ρ | Τ | Θ | Υ | Ι | Ο | Π | ∄ | ∞ | ⊙ | ℂ |
|
||||
* |----------------------------------------------------------------|
|
||||
* | | Α | Σ | Δ | Φ | Γ | Η | ¬ | Κ | Λ | ∪ | ∩ | | ℤ |
|
||||
* |----------------------------------------------------------------|
|
||||
* | | Ζ | Ξ | Χ | Ψ | Β | Ν | Μ | ⊆ | ⊇ | ∉ | | ⇑ | ⇔ |
|
||||
* |----------------------------------------------------------------|
|
||||
* | | | | | | ||||| ⇐ | ⇓ | ⇒ |
|
||||
* `----------------------------------------------------------------'
|
||||
*/
|
||||
[_SHIFTMAGIC] = LAYOUT(
|
||||
KC_GRV, H(2081), H(2082), H(2083), H(2084), H(2085), H(2086), H(2087), H(2088), H(2089), H(2080), H(208b), H(208a), H(2297), H(2248), H(2202),
|
||||
_______, H(2213), H(03a9), H(0395), H(03a1), H(03a4), H(0398), H(03a5), H(0399), H(039f), H(03a0), H(2204), H(221e), H(2299), H(2102),
|
||||
_______, H(0391), H(03a3), H(0394), H(03a6), H(0393), H(0397), H(00ac), H(039a), H(039b), H(222a), H(2229), _______, H(2124),
|
||||
_______, H(0396), H(039e), H(03a7), H(03a8), H(0392), H(039d), H(039c), H(2286), H(2287), H(2209), _______, H(21d1), H(21d4),
|
||||
_______, _______, _______, _______, _______, _______, H(21d0), H(21d3), H(21d2)),
|
||||
};
|
||||
|
||||
// Layer bitfields.
|
||||
#define MAGIC_LAYER (1UL << _MAGIC)
|
||||
#define SHIFTMAGIC_LAYER (1UL << _SHIFTMAGIC)
|
||||
// The layers we don't touch.
|
||||
#define LAYER_MASK ~(MAGIC_LAYER|SHIFTMAGIC_LAYER)
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
// Activate the appropriate magic layer:
|
||||
// User is holding AltGr+Shift => _SHIFTMAGIC
|
||||
// User is holding AltGr => _MAGIC
|
||||
// Not holding AltGr => None
|
||||
// We do this the efficient way, by grabbing the non-magic bits from the current layer bitmap,
|
||||
// setting the appropriate magic or shiftmagic bit, and doing an absolute layer set. (Layer
|
||||
// sets are nontrivial, so we don't want to do extras!)
|
||||
|
||||
// We track shift and AltGr state on our own, because this function is called before get_mods is
|
||||
// updated!
|
||||
static bool shifted = false;
|
||||
static bool magic = false;
|
||||
|
||||
if (keycode == KC_LSFT || keycode == KC_RSFT) {
|
||||
shifted = record->event.pressed;
|
||||
} else if (keycode == MAGIC) {
|
||||
magic = record->event.pressed;
|
||||
} else if (keycode == QK_BOOT) {
|
||||
// Safe reset: Only actually let this keycode through if shift is held as well. Since there's no
|
||||
// right-shift in the function layer, this means that reset is Fn+LShift+Esc, something you're
|
||||
// not likely to hit by accident. (Especially since AltGr+Esc is backtick!)
|
||||
return (record->event.pressed && shifted);
|
||||
}
|
||||
|
||||
// Update the layer.
|
||||
uint32_t new_layer_state = layer_state & LAYER_MASK;
|
||||
if (magic) {
|
||||
new_layer_state |= (shifted ? SHIFTMAGIC_LAYER : MAGIC_LAYER);
|
||||
}
|
||||
if (layer_state != new_layer_state) {
|
||||
layer_state_set(new_layer_state);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void eeconfig_init_user(void) {
|
||||
set_unicode_input_mode(UNICODE_MODE_MACOS);
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
* Custom keymap for kbd67, for those who need to both code and type math.
|
||||
* Author: Yonatan Zunger (zunger@gmail.com)
|
||||
|
||||
This keymap is presently rather Mac-centric, as it uses Mac media keys in its function layer and the
|
||||
OS X Unicode input mode for the "magic" layers.
|
||||
|
||||
*Layer 0 (Base QWERTY):* The layout has a few minor quirks: grave escape, Home/End/PgUp/PgDn in the
|
||||
right-hand column (rather than the more common Home/PgUp/PgDn/End), and a pause key between
|
||||
backspace and home -- this being something I use for screen lock, a necessity when one works with
|
||||
and sits next to security engineers. (Using a heavier switch on the pause key greatly reduces the
|
||||
risk of accidental triggering) In OS X style, alt and win are swapped on the left-hand side.
|
||||
|
||||
The right-hand alt and gui keys take on a different meaning: right-alt lives up to its old name of
|
||||
AltGr by invoking Greek (the "magic" layers, 2 and 3), and right-gui invokes the function layer.
|
||||
|
||||
*Layer 1 (Functions):* This layer deliberately sets KC_NO for the keys it doesn't use. I realize
|
||||
this isn't common, but I like to keep my functions quite distinct from all other layers.
|
||||
|
||||
RESET can be accessed at Fn+Left Shift+Escape.
|
||||
|
||||
*Layers 2 and 3*: These are invoked by the "magic" key (AltGr) and by magic+shift. The
|
||||
letters mostly produce Greek; the numbers, superscripts (magic) and subscripts (magic+shift); and
|
||||
the various other keys, mathematical symbols. There unfortunately aren't nearly enough keys for all
|
||||
the symbols I'd like, so magic+alt and magic+alt+shift may end up existing as well, giving this a
|
||||
proper Space Cadet effect; but that said, it's going to be hard to remember where all these symbols
|
||||
are without some extremely custom keycaps. In the limit of arbitrarily complex layers, the keyboard
|
||||
will probably start running LISP and turn into EMACS.
|
||||
@@ -1,2 +0,0 @@
|
||||
# You need Unicode for this map.
|
||||
UNICODE_ENABLE = yes # Unicode
|
||||
@@ -1,51 +0,0 @@
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
||||
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||
// entirely and just use numbers.
|
||||
enum layer_names {
|
||||
_BL,
|
||||
_FL,
|
||||
_RGBL
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
// See base_layer.png and rgb_layer.png for layout reference
|
||||
|
||||
// Base Default Layer
|
||||
// Mac Modifier Layout. Use BootMagic to toggle GUI and ALT positions.
|
||||
[_BL] = LAYOUT_all(
|
||||
QK_GESC, 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_NO,
|
||||
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,
|
||||
LT(_FL, KC_CAPS), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NO, KC_ENT,
|
||||
KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, MO(_FL),
|
||||
KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||
|
||||
// Function layer
|
||||
[_FL] = LAYOUT_all(
|
||||
KC_GRV, 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_NO,
|
||||
KC_NO, KC_MPRV, KC_UP, KC_MNXT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_PSCR, KC_SCRL, KC_PAUS, KC_INS,
|
||||
KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_TRNS, KC_NO, KC_MUTE, KC_VOLD, KC_VOLU, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, LT(_RGBL, KC_PGUP), KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_TRNS, KC_HOME, KC_PGDN, KC_END),
|
||||
|
||||
// RGB Layer
|
||||
[_RGBL] = LAYOUT_all(
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
QK_BOOT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_TRNS, KC_NO, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, BL_STEP, BL_TOGG, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
#else
|
||||
QK_BOOT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, BL_STEP, BL_TOGG, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
#endif
|
||||
),
|
||||
};
|
||||
@@ -1,24 +0,0 @@
|
||||
Stanley Lai's Split Right Shift with Dedicated Arrow Keys
|
||||
======================
|
||||
|
||||
## Quantum MK Firmware
|
||||
For the full Quantum feature list, see [the parent readme.md](/readme.md).
|
||||
|
||||
## Keymap Notes
|
||||
- Keymap setup with split Right Shift in mind.
|
||||
- Right-side modifiers are setup as dedicated arrow keys
|
||||
|
||||
### Base Layer Reference
|
||||
- Fn Layer indicated on keycap front legends.
|
||||
- Tapping Caps Lock key toggles Caps. Holding it down momentarily switches us to the Fn Layer.
|
||||
- Holding down "Fn" and "Page Down" momentarily switches us to the RGB Layer. Tapping "Page Down" behaves as expected.
|
||||

|
||||
|
||||
### RGB Layer Reference
|
||||

|
||||
|
||||
## WS2812 Support
|
||||
By default, it is now setup for 16 LEDs on the PF5 breakout pin.
|
||||
|
||||
### Build
|
||||
To build this keymap, simply run `make KEYMAP=stanleylai`.
|
||||
@@ -1,20 +0,0 @@
|
||||
|
||||
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
|
||||
MOUSEKEY_ENABLE = no # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||
RGBLIGHT_ENABLE = yes # Enable WS2812 underglow RGB strip
|
||||
MIDI_ENABLE = no # MIDI controls
|
||||
UNICODE_ENABLE = no # Unicode
|
||||
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||
AUDIO_ENABLE = no # Audio output on port C6
|
||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||
@@ -1,26 +0,0 @@
|
||||
/* Copyright 2018 Andrew Heaston
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_USER_H
|
||||
#define CONFIG_USER_H
|
||||
|
||||
|
||||
// place overrides here
|
||||
|
||||
#define DISABLE_SPACE_CADET_ROLLOVER
|
||||
|
||||
|
||||
#endif
|
||||
@@ -1,197 +0,0 @@
|
||||
/* Copyright 2018 Andrew Heaston @rooski15
|
||||
*
|
||||
* Developed by /u/holtenc at www.primekb.com
|
||||
*
|
||||
* 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/>.
|
||||
*/// Prime_R Rev 1.0
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
//Arrow Cluster Toggle
|
||||
static bool arrow_toggle = false;
|
||||
|
||||
//Arrow Keys
|
||||
enum custom_keycodes{
|
||||
AR_TOG = SAFE_RANGE, //Toggle Arrow Keys
|
||||
AR_LT, //Num0 or Left Arrow
|
||||
AR_RT, //NumEnt or Right Arrow
|
||||
AR_DN, //NumDot or Down Arrow
|
||||
AR_UP, //Num2 or Up Arrow
|
||||
};
|
||||
|
||||
// Tap/Hold Space Layer
|
||||
#define SPC_LT LT(1, KC_SPC)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* (Base Layer) Default Layer
|
||||
* ,---------------------------------------------------------------.
|
||||
* |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -|BSP|DEL|HOM|END|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Grv| Q| W| E| R| T| Y| U| I| O| P| [| ]| 7| 8| 9|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Tab | A| S| D| F| G| H| J| K| L| '|Return| 4| 5| 6|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Shift| Z| X| C| V| B| N| M| ,| .| ?|Shift| 1|ARU| 3| AR - U/D/L/R & Toggle
|
||||
* |---------------------------------------------------------------|
|
||||
* |Ctrl|Gui |Alt|TO1| 1/SP | 1/SP |ART|App|Alt|Ctrl |ARL|ARD|ARR| Arrow keys operate on AR Toggle to be numpad keys
|
||||
* `---------------------------------------------------------------'
|
||||
*/
|
||||
// 0: Base Layer
|
||||
[0] = LAYOUT(
|
||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_BSPC, KC_DEL, KC_HOME, KC_END,
|
||||
KC_GRV, 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_P7, KC_P8, KC_P9,
|
||||
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, KC_P4, KC_P5, KC_P6,
|
||||
SC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, SC_RSPC, KC_P1, AR_UP, KC_P3,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, TO(1), SPC_LT, SPC_LT, AR_TOG, KC_APP, KC_RALT, KC_RCTL, AR_LT, AR_DN, AR_RT
|
||||
),
|
||||
|
||||
/* (Function Layer)
|
||||
* ,---------------------------------------------------------------.
|
||||
* |Esc| F1| F2| F3| F4| F5| F6| F7| F8| F9| F0| =|BSP|HOM|END|DEL|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Grv| Q| W| E| R| T| Y| U| I| O| P| [| \| 7| 8| 9|
|
||||
* |---------------------------------------------------------------|
|
||||
* |BL | A| S| D| F| G| H| J| K| L| '|Return| 4| 5| 6|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Shift| Z| X| C| V| B| N| M| ,| .| ?|Shift| 1|VUP| 3|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Ctrl|Gui |Alt|TO0| 1/SP | 1/SP |ART|TO2|Alt|Ctrl |MUT|VDN|STP|
|
||||
* `---------------------------------------------------------------'
|
||||
*/
|
||||
// 1: Function Layer
|
||||
[1] = LAYOUT(
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_EQL, _______, KC_PSLS, KC_PAST, KC_PPLS,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_BSLS, _______, _______, _______,
|
||||
BL_TOGG, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_QUOT, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLU, _______,
|
||||
_______, _______, _______, TO(0), _______, _______, _______, TO(2), _______, _______, KC_MUTE, KC_VOLD, KC_MSTP
|
||||
),
|
||||
|
||||
/* (Numpad Mods)
|
||||
* ,---------------------------------------------------------------.
|
||||
* |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -|BSP| /| *| +| Mirrors base layer, but with numpad mods
|
||||
* |---------------------------------------------------------------|
|
||||
* |Grv| Q| W| E| R| T| Y| U| I| O| P| [| ]| 7| 8| 9|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Tab | A| S| D| F| G| H| J| K| L| ;|Return| 4| 5| 6|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Shift| Z| X| C| V| B| N| M| ,| .| ?|Shift| 1|ARU| 3|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Ctrl|Gui |Alt|TO0| 1/SP | 1/SP |ART|App|Alt|Ctrl |ARL|ARD|ARR|
|
||||
* `---------------------------------------------------------------'
|
||||
*/
|
||||
// 2: Numpad Mods
|
||||
[2] = LAYOUT(
|
||||
_______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, _______, KC_PSLS, KC_PAST, KC_PPLS,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_RBRC, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_SCLN, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, AR_UP, _______,
|
||||
_______, _______, _______, TO(0), _______, _______, _______, KC_APP, _______, _______, AR_LT, AR_DN, AR_RT
|
||||
),
|
||||
|
||||
// 3: Extra
|
||||
[3] = LAYOUT(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
};
|
||||
|
||||
void matrix_init_user(void) {
|
||||
if (get_backlight_level() != 0){
|
||||
backlight_toggle();
|
||||
}
|
||||
};
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
if(record->event.pressed){
|
||||
switch(keycode) {
|
||||
case AR_TOG:
|
||||
arrow_toggle = !arrow_toggle;
|
||||
backlight_toggle();
|
||||
return false; break;
|
||||
|
||||
case AR_UP:
|
||||
if(arrow_toggle == 1){
|
||||
SEND_STRING(SS_DOWN(X_UP));
|
||||
} else {
|
||||
SEND_STRING(SS_DOWN(X_KP_2));
|
||||
}
|
||||
return false; break;
|
||||
|
||||
case AR_DN:
|
||||
if(arrow_toggle == 1){
|
||||
SEND_STRING(SS_DOWN(X_DOWN));
|
||||
} else {
|
||||
SEND_STRING(SS_DOWN(X_KP_DOT));
|
||||
}
|
||||
return false; break;
|
||||
|
||||
case AR_LT:
|
||||
if(arrow_toggle == 1){
|
||||
SEND_STRING(SS_DOWN(X_LEFT));
|
||||
} else {
|
||||
SEND_STRING(SS_DOWN(X_KP_0));
|
||||
}
|
||||
return false; break;
|
||||
|
||||
case AR_RT:
|
||||
if(arrow_toggle == 1){
|
||||
SEND_STRING(SS_DOWN(X_RIGHT));
|
||||
} else {
|
||||
SEND_STRING(SS_DOWN(X_KP_ENTER));
|
||||
}
|
||||
return false; break;
|
||||
}
|
||||
}
|
||||
if(!record->event.pressed){
|
||||
switch(keycode) {
|
||||
case AR_UP:
|
||||
if(arrow_toggle == 1){
|
||||
SEND_STRING(SS_UP(X_UP));
|
||||
} else {
|
||||
SEND_STRING(SS_UP(X_KP_2));
|
||||
}
|
||||
return false; break;
|
||||
case AR_DN:
|
||||
if(arrow_toggle == 1){
|
||||
SEND_STRING(SS_UP(X_DOWN));
|
||||
} else {
|
||||
SEND_STRING(SS_UP(X_KP_DOT));
|
||||
}
|
||||
return false; break;
|
||||
case AR_LT:
|
||||
if(arrow_toggle == 1){
|
||||
SEND_STRING(SS_UP(X_LEFT));
|
||||
} else {
|
||||
SEND_STRING(SS_UP(X_KP_0));
|
||||
}
|
||||
return false; break;
|
||||
case AR_RT:
|
||||
if(arrow_toggle == 1){
|
||||
SEND_STRING(SS_UP(X_RIGHT));
|
||||
} else {
|
||||
SEND_STRING(SS_UP(X_KP_ENTER));
|
||||
}
|
||||
return false; break;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
};
|
||||
@@ -1,3 +0,0 @@
|
||||
# /u/rooski15 layout
|
||||
|
||||
Changes include numpad codes, layer additions, and a toggle-able arrow cluster that is non layer dependant.
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
@@ -1,42 +0,0 @@
|
||||
/* Copyright 2021 Chase Nordengren
|
||||
*
|
||||
* 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
|
||||
|
||||
|
||||
enum custom_keycodes {
|
||||
QMKPASS = SAFE_RANGE,
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QMKPASS:
|
||||
if (record->event.pressed) {
|
||||
// when keycode QMKPASS is pressed
|
||||
SEND_STRING("Sample string");
|
||||
} else {
|
||||
// when keycode QMKPASS is released
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(KC_ESC, SGUI(KC_R), SGUI(KC_S), QMKPASS, SGUI(KC_A), SGUI(KC_V))
|
||||
};
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
Techkeys SixKeyBoard
|
||||
===
|
||||
|
||||
Keyboard Maintainer: QMK Community
|
||||
Hardware Supported: Techkeys SixKeyBoard PCB
|
||||
Hardware Availability: [Techkeys](http://techkeys.us/collections/accessories/products/sixkeyboard)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make sixkeyboard:semicolonsnet
|
||||
|
||||
See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information.
|
||||
|
||||
## Hardware Info
|
||||
|
||||
The schematic is like this:
|
||||
|
||||
```
|
||||
switches leds
|
||||
,--+--+--. ,--+--+--.
|
||||
|C7|B7|B5| |C6|B6|B4|
|
||||
+--+--+--+ +--+--+--+
|
||||
|D6|D1|D4| |D5|D2|D3|
|
||||
`--+--+--' `--+--+--'
|
||||
```
|
||||
|
||||
The LED on the bottom is `C4`. All 7 of the leds are turned on when the keyboard boots-up in the `sixkeyboard.c` file - backlight_enable is not required. The MCU is an Atmega16u2, so the flash memory is limited to 0x3000 bytes - the current setup uses just about all of that! I'm sure things can be opitimised a bit.
|
||||
|
||||
There is a jumper on the bottom of the board (next to the USB port) that serves as a reset button - I drilled a hole in my case to allow for quick access via a screwdriver/metal object.
|
||||
@@ -1,18 +0,0 @@
|
||||
/* Copyright 2018 Ben Lewis (FollowingGhosts)
|
||||
*
|
||||
* 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
|
||||
#define V60_POLESTAR
|
||||
#define RGBLIGHT_EFFECT_BREATHING
|
||||
@@ -1,110 +0,0 @@
|
||||
/* Copyright 2018 Ben Lewis (FollowingGhosts)
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
/* This is adapted from the official ANSI layout provided by the KBP V60 Type R
|
||||
* as depicted in their manual and on the stock keycaps.
|
||||
*/
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Keymap 0: Default Layer (Qwerty)
|
||||
* CAPS opens Layer 1 if held, acts normally if tapped
|
||||
* Tab is used for Mouse Layer (2)
|
||||
* ,-----------------------------------------------------------.
|
||||
* |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| Bs |
|
||||
* |-----------------------------------------------------------|
|
||||
* |L2/Tab| Q| W| E| R| T| Y| U| I| O| P| [| ]| \|
|
||||
* |-----------------------------------------------------------|
|
||||
* |L1/Caps| A| S| D| F| G| H| J| K| L| ;| '|Return |
|
||||
* |-----------------------------------------------------------|
|
||||
* |LShift( | Z| X| C| V| B| N| M| ,| .| /| RShift) |
|
||||
* |-----------------------------------------------------------|
|
||||
* |Ctrl|Gui |Alt | Space |Fn0 |Gui |App|Ctrl|
|
||||
* `-----------------------------------------------------------'
|
||||
*/
|
||||
[0] = LAYOUT_60_ansi(
|
||||
KC_ESC, 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,
|
||||
LT(2, 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,
|
||||
LT(1, KC_CAPS), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||
SC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, SC_RSPC,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), KC_RGUI, KC_APP, KC_RCTL),
|
||||
|
||||
/*
|
||||
Keymap 1: FN Layer
|
||||
AGSW swaps Alt and OS keys for Windows/Mac
|
||||
RGB enabled
|
||||
Backlight keys are swapped as firmware is backwards?
|
||||
* ,-----------------------------------------------------------.
|
||||
* |` | F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12| Del |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | |Up |RGB|HUI|SAI|VAI| |Prt|Scl|Pau|Up| | Ins |
|
||||
* |-----------------------------------------------------------|
|
||||
* | |Lft|Dwn|Rig|HUD|SAD|VAD| |Hme|PgU|Lef|Rig| |
|
||||
* |-----------------------------------------------------------|
|
||||
* | |BLD|BLT|BLI| |VolD|VolU|Mut|End|PgD|Dwn| QK_BOOT |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | | | |AGSW| | |
|
||||
* `-----------------------------------------------------------'
|
||||
*/
|
||||
|
||||
[1] = LAYOUT_60_ansi(
|
||||
KC_GRV, 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_TRNS, KC_TRNS, KC_UP, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, KC_TRNS, KC_PSCR, KC_SCRL, KC_PAUS, KC_UP, KC_TRNS, KC_INS,
|
||||
KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, RGB_HUD, RGB_SAD, RGB_VAD, KC_TRNS, KC_HOME, KC_PGUP, KC_LEFT, KC_RIGHT, KC_TRNS,
|
||||
KC_TRNS, BL_UP, BL_STEP, BL_DOWN, KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_END, KC_PGDN, KC_DOWN, QK_BOOT,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, AG_SWAP, KC_TRNS, KC_TRNS),
|
||||
|
||||
/*
|
||||
Mouse Layer
|
||||
M1 = Mouse Button 1
|
||||
M2 = Mouse Button 2
|
||||
WASD are Up Left Right Down respectively
|
||||
* ,-----------------------------------------------------------.
|
||||
* | | | | | | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | M1|MUP|M2 | | | | | | | |MPLY| | |
|
||||
* |-----------------------------------------------------------|
|
||||
* | |ML |MDN|MR | | | | | | |MPRV|MNXT| |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | | | | | | |
|
||||
* `-----------------------------------------------------------'
|
||||
*/
|
||||
[2] = LAYOUT_60_ansi(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_BTN1, KC_MS_U, KC_BTN2, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_MS_L, KC_MS_D, KC_MS_R, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_MNXT, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, QK_BOOT,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||
|
||||
|
||||
};
|
||||
|
||||
bool led_update_user(led_t led_state) {
|
||||
if (led_state.caps_lock) {
|
||||
// output low
|
||||
DDRE |= (1<<PE6);
|
||||
PORTE &= ~(1<<PE6);
|
||||
}
|
||||
else {
|
||||
// Hi-Z
|
||||
DDRE &= ~(1<<PE6);
|
||||
PORTE &= ~(1<<PE6);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -1,61 +0,0 @@
|
||||
KB Paradise V60 Type R Customised Layout by FollowingGhosts
|
||||
======================
|
||||
|
||||
This is my custom keymap for the Polestar Type R
|
||||
|
||||
## Keymap Notes
|
||||
Supports Underglow lighting with RGB modifier keys and normal backlight
|
||||
Selectable swap between Alt and OS keys which is stored in EEPROM
|
||||
CAPSLOCK acts as FN when held/equivalent to MO1
|
||||
TAB acts as FN2 when held to provide a mouse layer with WASD and Q and E as left and right click respectively
|
||||
LShift and RShift have Space Cadet Shift enabled
|
||||
|
||||
RGB colour setting is set to HSV to bring it in line with (QMK docs)([https://beta.docs.qmk.fm/features/feature_rgblight])
|
||||
R+/R- are hue, G+/G- are saturation and B+/B- are value
|
||||
|
||||
```
|
||||
Keymap 0: Default/Windows Layer (Qwerty)
|
||||
* ,-----------------------------------------------------------.
|
||||
* |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| Bs |
|
||||
* |-----------------------------------------------------------|
|
||||
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \|
|
||||
* |-----------------------------------------------------------|
|
||||
* |CAP/MO1| A| S| D| F| G| H| J| K| L| ;| '|Return |
|
||||
* |-----------------------------------------------------------|
|
||||
* |LShift | Z| X| C| V| B| N| M| ,| .| /| RShift |
|
||||
* |-----------------------------------------------------------|
|
||||
* |Ctrl|Gui |Alt | Space | MO1|Gui |App|Ctrl|
|
||||
* -----------------------------------------------------------'
|
||||
|
||||
|
||||
Keymap 1: FN Layer
|
||||
* -----------------------------------------------------------.
|
||||
* | | F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12| Del |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | |Up |RGB|HUI|SAI|VAI| |Prt|Scl|Pau|Up| | Ins |
|
||||
* |-----------------------------------------------------------|
|
||||
* | |Lft|Dwn|Rig|HUD|SAD|VAD| |Hme|PgU|Lef|Rig| |
|
||||
* |-----------------------------------------------------------|
|
||||
* | |BLD|BLT|BLI| |VolD|VolU|Mut|End|PgD|Dwn| |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | | | |AGSW| | |
|
||||
* '-----------------------------------------------------------'
|
||||
|
||||
Mouse Layer
|
||||
M1 = Mouse Button 1
|
||||
M2 = Mouse Button 2
|
||||
WASD are Up Left Right Down respectively
|
||||
* ,-----------------------------------------------------------.
|
||||
* | | | | | | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | M1|MUP|M2 | | | | | | | |MPLY| | |
|
||||
* |-----------------------------------------------------------|
|
||||
* | |ML |MDN|MR | | | | | | |MNXT|MPRV| |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | | | | | | |
|
||||
* -----------------------------------------------------------'
|
||||
```
|
||||
### Build
|
||||
To build this keymap, simply run `make v60_type_r:followingghosts`.
|
||||
@@ -1,4 +0,0 @@
|
||||
BACKLIGHT_ENABLE = yes
|
||||
RGBLIGHT_ENABLE = yes
|
||||
MOUSEKEY_ENABLE = yes
|
||||
CONSOLE_ENABLE = no
|
||||
@@ -1,26 +0,0 @@
|
||||
/* Copyright 2017 benlyall, MechMerlin
|
||||
*
|
||||
* 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
|
||||
|
||||
#define V60_POLESTAR
|
||||
|
||||
// place overrides here
|
||||
#define MOUSEKEY_INTERVAL 20
|
||||
#define MOUSEKEY_DELAY 0
|
||||
#define MOUSEKEY_TIME_TO_MAX 60
|
||||
#define MOUSEKEY_MAX_SPEED 7
|
||||
#define MOUSEKEY_WHEEL_DELAY 0
|
||||
@@ -1,112 +0,0 @@
|
||||
/* Copyright 2017 benlyall, MechMerlin
|
||||
*
|
||||
* 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
|
||||
|
||||
#define _____ KC_TRNS
|
||||
#define XXXXX KC_NO
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Keymap 0: Default Layer
|
||||
* ,-----------------------------------------------------------.
|
||||
* |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| Bs |
|
||||
* |-----------------------------------------------------------|
|
||||
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \|
|
||||
* |-----------------------------------------------------------|
|
||||
* |FN0 | A| S| D| F| G| H| J| K| L| ;| '|Return |
|
||||
* |-----------------------------------------------------------|
|
||||
* |LShift | Z| X| C| V| B| N| M| ,| .| /| RShift |
|
||||
* |-----------------------------------------------------------|
|
||||
* |Ctrl|Alt |Gui | Space/L3 |Gui |Alt |Ctrl|Fn1|
|
||||
* `-----------------------------------------------------------'
|
||||
*/
|
||||
[0] = LAYOUT_all(
|
||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, XXXXX, KC_BSPC,
|
||||
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,
|
||||
LT(1, KC_CAPS), 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_LSFT, XXXXX, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, XXXXX,
|
||||
KC_LCTL, KC_LALT, KC_LGUI, LT(2, KC_SPC), KC_RGUI, KC_RALT, KC_RCTL, MO(3)),
|
||||
/* Keymap 1: FN Layer
|
||||
* ,-----------------------------------------------------------.
|
||||
* |` | F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12| Del |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | | | | | | | | |PSc|SLk|Pau| Ins |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | | | | | Lt| Dn| Up| Rt|Hom|PgU| |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | | | | |Mut|VDn|VUp|End|PgD| |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | | | | | | |
|
||||
* `-----------------------------------------------------------'
|
||||
*/
|
||||
[1] = LAYOUT_all(
|
||||
KC_GRV, 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_PSCR, KC_SCRL, KC_PAUS, KC_INS,
|
||||
_____, _____, _____, _____, _____, _____, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_HOME, KC_PGUP, _____,
|
||||
_____, _____, _____, _____, _____, _____, _____, KC_MUTE, KC_VOLD, KC_VOLU, KC_END, KC_PGDN, _____, _____,
|
||||
_____, _____, _____, _____, _____, _____, _____, _____),
|
||||
/* Keymap 2: Mouse Keys Layer
|
||||
* ,-----------------------------------------------------------.
|
||||
* | | | | | | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | | | | | |MWU|MWD| | | | | |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | | | | |MLt|MDn|MUp|MRt| | | |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | | | |SPC|Ms1|Ms2|Ms3| | | |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | | | | | | |
|
||||
* `-----------------------------------------------------------'
|
||||
*/
|
||||
[2] = LAYOUT_all(
|
||||
_____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____,
|
||||
_____, _____, _____, _____, _____, _____, _____, KC_MS_WH_UP, KC_MS_WH_DOWN, _____, _____, _____, _____, _____,
|
||||
_____, _____, _____, _____, _____, _____, KC_MS_LEFT, KC_MS_DOWN, KC_MS_UP, KC_MS_RIGHT, _____, _____, _____,
|
||||
_____, _____, _____, _____, _____, _____, KC_SPC, KC_MS_BTN1, KC_MS_BTN2, KC_MS_BTN3, _____, _____, _____, _____,
|
||||
_____, _____, _____, _____, _____, _____, _____, _____),
|
||||
/* Keymap 3: LED Modification Layer
|
||||
* ,-----------------------------------------------------------.
|
||||
* | |BLT|BLC|UGT|UGP|UGB|UGR| | | | | | | |
|
||||
* |-----------------------------------------------------------|
|
||||
* | |RD+|GN+|BL+|HU+|SA+|VA+| | | | | | | |
|
||||
* |-----------------------------------------------------------|
|
||||
* | |RD-|GN-|BL-|HU-|SA-|VA-| | | | | | |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | | | | | | |
|
||||
* `-----------------------------------------------------------'
|
||||
*/
|
||||
[3] = LAYOUT_all(
|
||||
_____, BL_TOGG, BL_STEP, RGB_TOG, RGB_M_P, RGB_M_B, RGB_M_R, _____, _____, _____, _____, _____, _____, _____, _____,
|
||||
_____, RGB_RI, RGB_GI, RGB_BI, RGB_HUI, RGB_SAI, RGB_VAI, _____, _____, _____, _____, _____, _____, _____,
|
||||
_____, RGB_RD, RGB_GD, RGB_BD, RGB_HUD, RGB_SAD, RGB_VAD, _____, _____, _____, _____, _____, _____,
|
||||
_____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____,
|
||||
_____, _____, _____, _____, _____, _____, _____, _____),
|
||||
};
|
||||
|
||||
bool led_update_user(led_t led_state) {
|
||||
if (led_state.caps_lock) {
|
||||
// output low
|
||||
DDRE |= (1<<PE6);
|
||||
PORTE &= ~(1<<PE6);
|
||||
}
|
||||
else {
|
||||
// Hi-Z
|
||||
DDRE &= ~(1<<PE6);
|
||||
PORTE &= ~(1<<PE6);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
BACKLIGHT_ENABLE = yes
|
||||
RGBLIGHT_ENABLE = yes
|
||||
@@ -1,42 +0,0 @@
|
||||
/*
|
||||
This is the c configuration file for the keymap
|
||||
|
||||
Copyright 2012 Jun Wako <wakojun@gmail.com>
|
||||
Copyright 2015 Jack Humbert
|
||||
|
||||
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
|
||||
|
||||
/* Use I2C or Serial. Default is Serial */
|
||||
// #define USE_I2C
|
||||
|
||||
/* Select hand configuration */
|
||||
// Defaults:
|
||||
// Rev1: EE_HANDS
|
||||
// Rev2: SPLIT_HAND_PIN B4
|
||||
|
||||
// You can override the defaults (rev1 doesn't support SPLIT_HAND_PIN)
|
||||
//#define EE_HANDS
|
||||
//#define MASTER_LEFT
|
||||
//#define MASTER_RIGHT
|
||||
|
||||
|
||||
#ifdef AUDIO_ENABLE
|
||||
#define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \
|
||||
SONG(DVORAK_SOUND), \
|
||||
SONG(COLEMAK_SOUND) \
|
||||
}
|
||||
#endif
|
||||
@@ -1,106 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
||||
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||
// entirely and just use numbers.
|
||||
enum layers {
|
||||
_ALPHAS,
|
||||
_MODS,
|
||||
_VIM,
|
||||
_NUMPAD,
|
||||
_CODE,
|
||||
};
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Alphas
|
||||
* ,--------------------------------------------------------------------------------------------.
|
||||
* | Tab | q | w | e | r | t | y | u | i | o | p | ins |
|
||||
* |--------+------+-----+------+---------+------+------+-------+------+------+--------+--------|
|
||||
* |ctl(esc)| a | s | d | f | g | h | j | k | l |LT(2,;:)|sft(ent)|
|
||||
* |--------+------+-----+------+---------+------|------+-------+------+------+--------+--------|
|
||||
* |LSPO | z | x | c | v | b | n | m | ,< | .> | up | RSPC |
|
||||
* |--------+------+-----+------+---------+------+------+-------+------+------+--------+--------|
|
||||
* | ctl | GUI | alt |MO(1) |lt(3,del)|Space |Space |bckspc |MO(4) | left | down | right |
|
||||
* `--------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_ALPHAS] = LAYOUT_ortho_4x12(
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_INS,
|
||||
LCTL_T(KC_ESC), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, LT(2,KC_SCLN), RSFT_T(KC_ENT),
|
||||
SC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, SC_RSPC,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, MO(1), LT(3,KC_DEL), KC_SPC, KC_SPC, KC_BSPC, MO(4), KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
|
||||
/* MODS
|
||||
* ,-----------------------------------------------------------------------------------.
|
||||
* | `~ | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 |PrtSc |
|
||||
* |-------+------+------+------+------+-------------+------+------+------+------+------|
|
||||
* |Meh(F7)| ! | * | # | $ | % | ^ | & | * | '" | " | \| |
|
||||
* |-------+------+------+------+------+------|------+------+------+------+------+------|
|
||||
* | LS/( | z | x | [{ | ] | b | -_ | =+ | /? | \| | PgUp | RS/) |
|
||||
* |-------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | Ctrl | | | | | spc | _ |bckspc| | Home |PgDwn | End |
|
||||
* `------------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_MODS] = LAYOUT_ortho_4x12(
|
||||
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_PSCR,
|
||||
MEH(KC_F7), KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_QUOT, KC_DQUO, KC_BSLS,
|
||||
LSFT_T(KC_LCBR), KC_Z, KC_X, KC_LBRC, KC_RBRC, KC_B, KC_MINS, KC_EQL, KC_SLSH, KC_BSLS, KC_PGUP, RSFT_T(KC_RCBR),
|
||||
KC_LCTL, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SPC, KC_UNDS, KC_BSPC, KC_NO, KC_HOME, KC_PGDN, KC_END
|
||||
),
|
||||
|
||||
/* VIM layer that adds vim navigation by holding the ; key. Includes keys like $,^ for end/beg of line and b,w,e,d,y. Also includes
|
||||
* quick keys for excel like alt(=) for sum, ctl(+) & ctl(-) to add/remove columns/rows.
|
||||
* ,--------------------------------------------------------------------------------------.
|
||||
* | Tab | "' | b | w | e | d | y | Vol- | Vol+ | TO(0)| TG(2) |reset |
|
||||
* |--------+------+-----+-----+--------+-----+------+------+------+------+--------+------|
|
||||
* |Ctl(Esc)| Home |Home |Pg Up|Pg Down | End | Left | Down | Up |Right |LT(2,;:)|Enter |
|
||||
* |--------+------+-----+-----+--------+-----|------+------+------+------+--------+------|
|
||||
* | sft | ;: | q | ^ | $ | x |alt(=)|ctl(+)|ctl(-)| | | |
|
||||
* |--------+------+-----+-----+--------+-----+------+------+------+------+--------+------|
|
||||
* | Ctl | GUI | alt | sft |sft(ctl)| spc | del | bspc | | | | |
|
||||
* `--------------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_VIM] = LAYOUT_ortho_4x12(
|
||||
KC_TAB, KC_QUOT, KC_B, KC_W, KC_E, KC_D, KC_Y, KC_VOLD, KC_VOLU, TO(0), TG(2), QK_BOOT,
|
||||
LCTL_T(KC_ESC), KC_HOME, KC_HOME, KC_PGUP, KC_PGDN, KC_END, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, LT(2,KC_SCLN), KC_ENT,
|
||||
KC_LSFT, KC_SCLN, KC_Q, KC_CIRC, KC_DLR, KC_X, RALT(KC_EQL), RCTL(KC_PLUS), RCTL(KC_PMNS), KC_NO, KC_NO, KC_TRNS,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_LSFT, LSFT(KC_LCTL), KC_SPC, KC_DEL, KC_BSPC, KC_NO, KC_NO, KC_NO, KC_TRNS
|
||||
),
|
||||
|
||||
/* NUMPAD: Numpad with operators and other keys
|
||||
* ,-------------------------------------------------------------------------------------.
|
||||
* | [{ | ! | @ | # | $ | % | ( | 7 | 8 | 9 | ) | ]} |
|
||||
* |------+------+------+------+------+-------------+------+------+------+------+--------|
|
||||
* | { | / | * | - | + | | = | 4 | 5 | 6 | ;: | } |
|
||||
* |------+------+------+------+------+------|------+------+------+------+------+--------|
|
||||
* | sft( | | | | | | | 1 | 2 | 3 | |kc_sft()|
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+--------|
|
||||
* | | | | | |Space |Space | 0 | | | | |
|
||||
* `-------------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_NUMPAD] = LAYOUT_ortho_4x12(
|
||||
KC_LBRC, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_LPRN, KC_7, KC_8, KC_9, KC_RPRN, KC_RBRC,
|
||||
KC_LCBR, KC_PSLS, KC_PAST, KC_PMNS, KC_PPLS, KC_NO, KC_EQL, KC_4, KC_5, KC_6, KC_SCLN, KC_RCBR,
|
||||
SC_LSPO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_1, KC_2, KC_3, KC_PEQL, SC_RSPC,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SPC, KC_0, KC_NO, KC_NO, KC_NO, KC_NO
|
||||
),
|
||||
|
||||
/* CODE
|
||||
* ,---------------------------------------------------------------------------.
|
||||
* | ~` | F11 | F12 | 3 | 4 | 5 | 6 | : | - | > | 0 | Del |
|
||||
* |----+-----+-----+----+-----+-------------+------+-----+------+------+------|
|
||||
* | | / | * | { | [{ | ( | ) | ]} | } | '" | ]} | \| |
|
||||
* |----+-----+-----+----+-----+-----|------+------+------+------+------+------|
|
||||
* | | F7 | F8 | F9 | F10 | F11 | ~ | = | \ |RGBTOG|RGBHUI|RGBHUD|
|
||||
* |----+-----+-----+----+-----+-----+------+------+------+------+------+------|
|
||||
* | | | | | | | | | |RGBVAD|RBGVAI|RGBMOD|
|
||||
* `---------------------------------------------------------------------------'
|
||||
*/
|
||||
[_CODE] = LAYOUT_ortho_4x12(
|
||||
KC_GRV, KC_F11, KC_F12, KC_3, KC_4, KC_5, KC_6, KC_COLN, KC_MINS, KC_GT, KC_0, KC_DEL,
|
||||
KC_TRNS, KC_PSLS, KC_PAST, KC_LCBR, KC_LBRC, KC_LPRN, KC_RPRN, KC_RBRC, KC_RCBR, KC_QUOT, KC_RBRC, KC_BSLS,
|
||||
KC_TRNS, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_TILD, KC_EQL, KC_NUBS, RGB_TOG, RGB_HUI, RGB_HUD,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_VAD, RGB_VAI, RGB_MOD
|
||||
)
|
||||
|
||||
};
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,9 +0,0 @@
|
||||
* A polyglot keymap for the RamaWorks Zenith
|
||||
* Author: Yonatan Zunger (zunger@gmail.com)
|
||||
|
||||
This keyboard is designed to make it easy to type a wide range of symbols and a wide range of
|
||||
alphabets, without relying on the host OS, because... host OS's aren't fantastic at a lot of
|
||||
things.
|
||||
|
||||
See the keymap file for most of the documentation, in the form of comments; this is still in
|
||||
development!
|
||||
@@ -1,2 +0,0 @@
|
||||
# You need Unicode for this map.
|
||||
UNICODE_ENABLE = yes # Unicode
|
||||
@@ -1,59 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
#define _BASE 0 // Base layer
|
||||
#define _SYSTEM 1 // System actions
|
||||
#define _VOLUME 2 // Volume actions
|
||||
|
||||
#define SUPER_ALT_F4_TIMER 300 // Timeout on the super alt-f4 key
|
||||
|
||||
/*
|
||||
The idea of this is pretty simple: base layer has four action, two of which (the outermost)
|
||||
are regular keystrokes on tap, and a momentary layer switch on hold, sending you to layers 1 and 2.
|
||||
|
||||
The other bit of customization here is the 'Super Alt F4' which does Alt-F4, and then Enter if tapped
|
||||
again SUPER_ALT_F4_TIMER miliseconds after. This lets you Alt-F4 applications, and finally quickly
|
||||
double-tap it to Alt-F4+Enter to shut down the PC.
|
||||
*/
|
||||
|
||||
bool is_alt_f4_active = false;
|
||||
uint16_t alt_f4_timer = 0;
|
||||
|
||||
enum custom_keycodes { // Make sure have the awesome keycode ready
|
||||
SUPER_ALT_F4 = SAFE_RANGE,
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
// 0: Base Layer
|
||||
[_BASE] = LAYOUT_ortho_1x4(LT(_SYSTEM, KC_F5), C(G(KC_LEFT)), C(G(KC_RIGHT)), LT(_VOLUME, KC_F7)),
|
||||
|
||||
// 1: System actions
|
||||
[_SYSTEM] = LAYOUT_ortho_1x4(_______, SUPER_ALT_F4, G(KC_D), G(KC_L)),
|
||||
|
||||
// 2: Volume actions
|
||||
[_VOLUME] = LAYOUT_ortho_1x4(KC_MEDIA_NEXT_TRACK, KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP, _______),
|
||||
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) { // This will do most of the grunt work with the keycodes.
|
||||
case SUPER_ALT_F4:
|
||||
if (record->event.pressed) {
|
||||
if (!is_alt_f4_active) {
|
||||
is_alt_f4_active = true;
|
||||
tap_code16(LALT(KC_F4)); // Alt-F4
|
||||
} else {
|
||||
tap_code(KC_ENTER); // Tap enter
|
||||
}
|
||||
}
|
||||
alt_f4_timer = timer_read();
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
if (is_alt_f4_active && timer_elapsed(alt_f4_timer) > SUPER_ALT_F4_TIMER) {
|
||||
is_alt_f4_active = false;
|
||||
}
|
||||
};
|
||||
@@ -1,9 +0,0 @@
|
||||
# Slightly more advanced keymap for XD004 PCB
|
||||
|
||||
A somehow more useful keymap, allowing one to move across virtual desktops on Windows, etc.
|
||||
|
||||
It also has a 'Super Alt-F4' key for Windows that, when tapped does Alt-F4, unless two consecutive taps are less than 300ms apart, in which case the second tap becomes Enter. This allows you to close all apps doing taps, and then when the System shutdown window arrives you do a second quick tap and it will type enter, thus shutting down the computer.
|
||||
|
||||
## Build
|
||||
|
||||
To build the keymap, simply run `make xiudi/xd004:system_and_media`.
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user