Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/alfrdmalr/keymap update #8174

Merged
merged 44 commits into from
Mar 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
5d01cdf
WIP do not merge
alfrdmalr Dec 29, 2019
a8af5bd
first pass at custom preonic layout
alfrdmalr Jan 7, 2020
99ec959
add auto shift and reset via leader key
alfrdmalr Jan 7, 2020
a03b69b
revert WIP changes
alfrdmalr Jan 7, 2020
9a929ca
Update readme
alfrdmalr Jan 12, 2020
01dc84d
update copyright notice
alfrdmalr Jan 12, 2020
795e328
formatting changes
alfrdmalr Jan 13, 2020
e4558f7
fix: use MO instead of process_record_user
alfrdmalr Jan 13, 2020
48b1828
added backslash and moved grave position
alfrdmalr Jan 13, 2020
0b8d7f3
remove extraneous 'j' characer in NUMPAD template
alfrdmalr Jan 13, 2020
3ef6a5a
update template formatting
alfrdmalr Jan 13, 2020
d53a51d
remove process_record_user
alfrdmalr Jan 20, 2020
d58470a
swap "!" with "@"
alfrdmalr Jan 20, 2020
9788639
fix readme formatting
alfrdmalr Jan 20, 2020
2aac6cb
update readme layout image
alfrdmalr Jan 20, 2020
c75f0a3
restore settings layer
alfrdmalr Jan 21, 2020
12eb00b
add windows minimize sequence
alfrdmalr Jan 23, 2020
c723fb9
Merge branch 'master' into feature/userspace-alfrdmalr
alfrdmalr Jan 23, 2020
de7c5ad
fix: switch to correct seq function for three-key sequence
alfrdmalr Jan 23, 2020
d2e50e3
fix: missing semicolon
alfrdmalr Jan 23, 2020
2f0fbb1
refactor: move keymap to userspace and generic 5x12 layout
alfrdmalr Jan 27, 2020
bc10b60
add numlock to numpad layer
alfrdmalr Jan 27, 2020
acd1002
add readme
alfrdmalr Jan 27, 2020
e25cde7
update readme formatting
alfrdmalr Jan 28, 2020
33d160e
Merge branch 'master' into feature/userspace-alfrdmalr
alfrdmalr Jan 28, 2020
b98c72e
remove unused wrappers from layout keymap
alfrdmalr Jan 28, 2020
0a9eacc
update readme title to reflect new location
alfrdmalr Jan 28, 2020
cc035dd
remove alfrdmalr directory from preonic/keymaps
alfrdmalr Jan 28, 2020
d1b7855
add ortho 4x12 support
alfrdmalr Jan 31, 2020
dca932c
add 'trilayer' settings and update keymap
alfrdmalr Feb 4, 2020
13895d4
update SYMBOLS layer to SYMBOL
alfrdmalr Feb 4, 2020
5b48ab7
remove minimize sequence
alfrdmalr Feb 6, 2020
757a627
clean up user config
alfrdmalr Feb 6, 2020
cb9d629
Merge pull request #1 from alfrdmalr/feature/userspace-alfrdmalr
alfrdmalr Feb 6, 2020
95df5f4
Merge branch 'feature/userspace-alfrdmalr' into feature/alfrdmalr/tri…
alfrdmalr Feb 6, 2020
457ff88
add brightness controls
alfrdmalr Feb 7, 2020
d14bc31
Merge branch 'master' of https://github.com/alfrdmalr/qmk_firmware
alfrdmalr Feb 13, 2020
3f9c300
Merge branch 'master' into feature/layouts/community/ortho4x12/alfrdmalr
alfrdmalr Feb 13, 2020
c487df7
Merge branch 'master' into feature/alfrdmalr/trilayer-settings
alfrdmalr Feb 13, 2020
a050a33
Merge pull request #2 from alfrdmalr/feature/layouts/community/ortho4…
alfrdmalr Feb 13, 2020
5948fce
Merge branch 'master' into feature/alfrdmalr/trilayer-settings
alfrdmalr Feb 13, 2020
1e66ac6
Merge pull request #3 from alfrdmalr/feature/alfrdmalr/trilayer-settings
alfrdmalr Feb 13, 2020
2f86688
update settings ascii
alfrdmalr Feb 13, 2020
f68b26f
moved some symbols around to make vim/linux smoother
alfrdmalr Feb 13, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions layouts/community/ortho_4x12/alfrdmalr/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#ifdef AUDIO_ENABLE
#define STARTUP_SONG SONG(NO_SOUND)
#endif
44 changes: 44 additions & 0 deletions layouts/community/ortho_4x12/alfrdmalr/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#include "alfrdmalr.h"

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

// QWERTY
[_QWERTY] = LAYOUT_ortho_4x12_wrapper(
K10, ____QWERTY_L1____, ____QWERTY_R1____, K1B,
K20, ____QWERTY_L2____, ____QWERTY_R2____, K2B,
K30, ____QWERTY_L3____, ____QWERTY_R3____, K3B,
K40, _____BASE_L4_____, _____BASE_R4_____, K4B
),

// SYMBOL
[_SYMBOL] = LAYOUT_ortho_4x12_wrapper(
K10_SYM, ____SYMBOL_L1____, ____SYMBOL_R1____, K1B_SYM,
K20_SYM, ____SYMBOL_L2____, ____SYMBOL_R2____, K2B_SYM,
K30_SYM, ____SYMBOL_L3____, ____SYMBOL_R3____, K3B_SYM,
K40_SYM, ____SYMBOL_L4____, ____SYMBOL_R4____, K4B_SYM
),

// NAVIGATION
[_NAVIGATION] = LAYOUT_ortho_4x12_wrapper(
K10_NAV, __NAVIGATION_L1__, __NAVIGATION_R1__, K1B_NAV,
K20_NAV, __NAVIGATION_L2__, __NAVIGATION_R2__, K2B_NAV,
K30_NAV, __NAVIGATION_L3__, __NAVIGATION_R3__, K3B_NAV,
K40_NAV, __NAVIGATION_L4__, __NAVIGATION_R4__, K4B_NAV
),

// NUMPAD
[_NUMPAD] = LAYOUT_ortho_4x12_wrapper(
K10_NUM, ____NUMPAD_L1____, ____NUMPAD_R1____, K1B_NUM,
K20_NUM, ____NUMPAD_L2____, ____NUMPAD_R2____, K2B_NUM,
K30_NUM, ____NUMPAD_L3____, ____NUMPAD_R3____, K3B_NUM,
K40_NUM, ____NUMPAD_L4____, ____NUMPAD_R4____, K4B_NUM
),

// SETTINGS
[_SETTINGS] = LAYOUT_ortho_4x12_wrapper(
K10_SET, ___SETTINGS_L1___, ___SETTINGS_R1___, K1B_SET,
K20_SET, ___SETTINGS_L2___, ___SETTINGS_R2___, K2B_SET,
K30_SET, ___SETTINGS_L3___, ___SETTINGS_R3___, K3B_SET,
K40_SET, ___SETTINGS_L4___, ___SETTINGS_R4___, K4B_SET
)
};
Empty file.
4 changes: 2 additions & 2 deletions layouts/community/ortho_5x12/alfrdmalr/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
K40, _____BASE_L4_____, _____BASE_R4_____, K4B
),

// SYMBOLS
[_SYMBOLS] = LAYOUT_ortho_5x12_wrapper(
// SYMBOL
[_SYMBOL] = LAYOUT_ortho_5x12_wrapper(
K00_SYM, ____NUMROW_L0____, ____NUMROW_R0____, K0B_SYM,
K10_SYM, ____SYMBOL_L1____, ____SYMBOL_R1____, K1B_SYM,
K20_SYM, ____SYMBOL_L2____, ____SYMBOL_R2____, K2B_SYM,
Expand Down
59 changes: 55 additions & 4 deletions users/alfrdmalr/alfrdmalr.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,61 @@ void matrix_scan_user(void) {
SEQ_FIVE_KEYS(KC_R, KC_E, KC_S, KC_E, KC_T) {
reset_keyboard();
}
// minimize window (Windows)
SEQ_THREE_KEYS(KC_M, KC_I, KC_N) {
SEND_STRING(SS_LALT(" ")"n");
}
leader_end();
}
}

bool syml_pressed = false;
bool symr_pressed = false;
bool settings_active = false;
bool symbols_active = false;
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch(keycode) {
case SYML:
if (record->event.pressed) {
syml_pressed = true;
} else {
syml_pressed = false;
}
break;
case SYMR:
if (record->event.pressed) {
symr_pressed = true;
} else {
symr_pressed = false;
}
break;
}

// trilayer-esque behavior. If both SYMBOL layer keys are held, then the
// settings layer is open. If only one is held, SYMBOL is active.
if (syml_pressed && symr_pressed) {
layer_on(_SETTINGS);
settings_active = true;
} else if (syml_pressed || symr_pressed) {
if (settings_active) {
layer_off(_SETTINGS);
settings_active = false;
}
layer_on(_SYMBOL);
symbols_active = true;
} else {
if (symbols_active) {
layer_off(_SYMBOL);
symbols_active = false;
}
}

return true;
}

// allow access to the settings layer to turn music mode back off
bool music_mask_user(uint16_t keycode) {
switch (keycode) {
case SYML:
case SYMR:
return false;
default:
return true;
}
}
98 changes: 54 additions & 44 deletions users/alfrdmalr/alfrdmalr.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,24 @@ along with this program. If not, see <http://www.gnu/org/licenses/>.

enum shared_layers {
_QWERTY,
_SETTINGS,
_SYMBOLS,
_SYMBOL,
_NAVIGATION,
_NUMPAD
_NUMPAD,
_SETTINGS
};

// KEYCODES ============================================================================

// the SYML and SYMR keycodes are just used to activate the symbols layer.
// they're distinct so that I can hit both of them to activate a trilayer
enum alfrdmalr_keycodes {
SYML = SAFE_RANGE,
SYMR
};

#define NUMSPACE LT(_NUMPAD, KC_SPC)
#define NAVLAYER MO(_NAVIGATION)
#define SYMLAYER MO(_SYMBOLS)
#define SYMLAYER MO(_SYMBOL)
#define SETLAYER MO(_SETTINGS)
#define CTRLSHFT C(KC_LSFT)
#define WINUNDO C(KC_Z)
Expand All @@ -42,10 +50,12 @@ enum shared_layers {
#define K41 CTRLSHFT
#define K42 KC_LGUI
#define K43 KC_LALT
#define K44 SYMLAYER
// #define K44 SYMLAYER
#define K44 SYML
#define K45 NUMSPACE
#define K46 NUMSPACE
#define K47 SYMLAYER
// #define K47 SYMLAYER
#define K47 SYMR
#define K48 KC_RALT
#define K49 SETLAYER
#define K4A MU_TOG
Expand Down Expand Up @@ -86,7 +96,7 @@ enum shared_layers {
* ,-----------------------------------------------------------------------------------.
* | ESC | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | BKSP |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | TAB | Q | W | E | R | T | Y | U | I | O | P | DEL |
* | TAB | Q | W | E | R | T | Y | U | I | O | P | BKSP |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | NAV | A | S | D | F | G | H | J | K | L | ; | " |
* |------+------+------+------+------+------+------+------+------+------+------+------|
Expand All @@ -110,13 +120,13 @@ enum shared_layers {

/* NUMPAD ==============================================================================
* ,-----------------------------------------------------------------------------------.
* | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp |
* | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | TRNS |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | TRNS | F9 | F10 | F11 | F12 | | NLCK | 7 | 8 | 9 | - | DEL |
* | TRNS | F9 | F10 | F11 | F12 | | NLCK | 7 | 8 | 9 | - | TRNS |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | ESC | F5 | F6 | F7 | F8 | SPC | SPC | 4 | 5 | 6 | + | ENTR |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | TRNS | F1 | F2 | F3 | F4 | ALT | CAPS | 1 | 2 | 3 | / | TRNS |
* | TRNS | F1 | F2 | F3 | F4 | ALT | | 1 | 2 | 3 | / | TRNS |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | TRNS | TRNS | TRNS | TRNS | TRNS | TRNS | 0 | , | . | * | TRNS |
* `-----------------------------------------------------------------------------------'
Expand All @@ -140,7 +150,7 @@ enum shared_layers {
// - CORE
#define ____NUMPAD_R1____ KC_NLCK, KC_7, KC_8, KC_9, KC_MINS
#define ____NUMPAD_R2____ KC_SPC, KC_4, KC_5, KC_6, KC_PLUS
#define ____NUMPAD_R3____ KC_CAPS, KC_1, KC_2, KC_3, KC_SLSH
#define ____NUMPAD_R3____ KC_NO, KC_1, KC_2, KC_3, KC_SLSH

// - MODS
#define ____NUMPAD_R4____ KC_TRNS, KC_0, KC_COMM, KC_DOT, KC_ASTR
Expand All @@ -150,25 +160,25 @@ enum shared_layers {
#define K3B_NUM KC_TRNS
#define K4B_NUM KC_TRNS

/* SYMBOLS =============================================================================
/* SYMBOL ==============================================================================
* ,-----------------------------------------------------------------------------------.
* | ESC | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | BKSP |
* | TRNS | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | TRNS |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | TRNS | # | $ | { | } | | | ^ | * | | | ~ | TRNS |
* | TRNS | ! | @ | { | } | | | ^ | $ | & | | | DEL |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | TRNS | < | > | ( | ) | | | - | + | & | \ | ` |
* | TRNS | < | > | ( | ) | | | - | + | = | \ | ` |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | TRNS | ! | @ | [ | ] | | | _ | = | % | / | SHFT |
* | TRNS | ~ | # | [ | ] | | | _ | * | % | / | TRNS |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | TRNS | TRNS | TRNS | TRNS | TRNS | TRNS | TRNS | TRNS | TRNS | TRNS | TRNS |
* `-----------------------------------------------------------------------------------'
*/

// LEFT
// - CORE
#define ____SYMBOL_L1____ KC_HASH, KC_DOLLAR, KC_LCBR, KC_RCBR, KC_NO
#define ____SYMBOL_L2____ KC_LABK, KC_RABK, KC_LPRN, KC_RPRN, KC_NO
#define ____SYMBOL_L3____ KC_EXCLAIM, KC_AT, KC_LBRC, KC_RBRC, KC_NO
#define ____SYMBOL_L1____ KC_EXCLAIM, KC_AT, KC_LCBR, KC_RCBR, KC_NO
#define ____SYMBOL_L2____ KC_LABK, KC_RABK, KC_LPRN, KC_RPRN, KC_NO
#define ____SYMBOL_L3____ KC_TILD, KC_HASH, KC_LBRC, KC_RBRC, KC_NO

// - MODS
#define ____SYMBOL_L4____ ______TRANS______
Expand All @@ -180,27 +190,27 @@ enum shared_layers {

// RIGHT
// - CORE
#define ____SYMBOL_R1____ KC_NO, KC_CIRC, KC_ASTR, KC_PIPE, KC_TILD
#define ____SYMBOL_R2____ KC_NO, KC_MINS, KC_PLUS, KC_AMPR, KC_BSLS
#define ____SYMBOL_R3____ KC_NO, KC_UNDS, KC_EQL, KC_PERC, KC_SLSH
#define ____SYMBOL_R1____ KC_NO, KC_CIRC, KC_DOLLAR, KC_AMPR, KC_PIPE
#define ____SYMBOL_R2____ KC_NO, KC_MINS, KC_PLUS, KC_EQL, KC_BSLS
#define ____SYMBOL_R3____ KC_NO, KC_UNDS, KC_ASTR, KC_PERC, KC_SLSH

// - MODS
#define ____SYMBOL_R4____ ______TRANS______
#define K0B_SYM KC_TRNS
#define K1B_SYM KC_TRNS
#define K1B_SYM KC_DEL
#define K2B_SYM KC_GRV
#define K3B_SYM KC_TRNS
#define K4B_SYM KC_TRNS

/* NAVIGATION ==========================================================================
* ,-----------------------------------------------------------------------------------.
* | ESC | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | BKSP |
* | TRNS | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | TRNS |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | TRNS | | | SPC | F5 | | INS | HOME | END | TAB | DEL | TRNS |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | TRNS | SHFT | CTRl | ALT | GUI | | LEFT | DOWN | UP | RGHT | | ENTR |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | TRNS | UNDO | CUT | COPY | PSTE | | SPC | PGDO | PGUP | | | TRNS |
* | TRNS | UNDO | CUT | COPY | PSTE | | | PGDO | PGUP | CAPS | | TRNS |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | TRNS | TRNS | TRNS | TRNS | TRNS | ESC | TRNS | TRNS | TRNS | TRNS | TRNS |
* `-----------------------------------------------------------------------------------'
Expand All @@ -213,7 +223,7 @@ enum shared_layers {
#define __NAVIGATION_L3__ WINUNDO, WINCUT, WINCOPY, WINPASTE, KC_NO

// - MODS
#define __NAVIGATION_L4__ _______, _______, _______, _______, KC_ESC
#define __NAVIGATION_L4__ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_ESC
#define K00_NAV KC_TRNS
#define K10_NAV KC_TRNS
#define K20_NAV KC_TRNS
Expand All @@ -224,10 +234,10 @@ enum shared_layers {
// - CORE
#define __NAVIGATION_R1__ KC_INS, KC_HOME, KC_END, KC_TAB, KC_DEL
#define __NAVIGATION_R2__ KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_NO
#define __NAVIGATION_R3__ KC_SPC, KC_PGDN, KC_PGUP, KC_NO, KC_NO
#define __NAVIGATION_R3__ KC_NO, KC_PGDN, KC_PGUP, KC_CAPS, KC_NO

// - MODS
#define __NAVIGATION_R4__ KC_ESC, _______, _______, _______, _______
#define __NAVIGATION_R4__ KC_ESC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
#define K0B_NAV KC_TRNS
#define K1B_NAV KC_TRNS
#define K2B_NAV KC_ENT
Expand All @@ -236,41 +246,41 @@ enum shared_layers {

/* SETTINGS ============================================================================
* ,-----------------------------------------------------------------------------------.
* | | | | | | | | | | | | |
* | | | | | | | | | | BRID | BRIU | |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | | | DBUG | | | | | | | | | |
* | | | | | | | | | | | | |
* |------+------+------+------+------+-------------+------+------+------+------+------|
* | | | |Aud on|AudOff|AGnorm|AGswap| | | | | |
* | | | | | | | MPRV | MPLY | MUTE | MNXT | | |
* |------+------+------+------+------+------|------+------+------+------+------+------|
* | ASTG |Voice-|Voice+|Mus on|MusOff|MidiOn|MidOff| | | | | |
* | ASTG | MUTO | AUOF | AUON | | | | VOLD | VOLU | | | ASTG |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | | | | | | | | | | | |
* | | | | | TRNS | | TRNS | | | | |
* `-----------------------------------------------------------------------------------'
*/
// LEFT
// - CORE
#define ___SETTINGS_L1___ _______, DEBUG, _______, _______, _______
#define ___SETTINGS_L2___ _______, MU_MOD, AU_ON, AU_OFF, AG_NORM
#define ___SETTINGS_L3___ MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON
#define ___SETTINGS_L1___ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
#define ___SETTINGS_L2___ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
#define ___SETTINGS_L3___ MU_TOG, AU_OFF, AU_ON, KC_NO, KC_NO

// - MODS
#define ___SETTINGS_L4___ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
#define ___SETTINGS_L4___ KC_NO, KC_NO, KC_NO, KC_TRNS, KC_NO
#define K00_SET KC_NO
#define K10_SET KC_NO
#define K20_SET KC_NO
#define K30_SET KC_ASTG
#define K40_SET KC_NO

// RIGHT
// RIGHT
// - CORE
#define ___SETTINGS_R1___ TERM_ON, TERM_OFF, _______, _______, _______
#define ___SETTINGS_R2___ _______, _______, _______, _______, _______
#define ___SETTINGS_R3___ _______, _______, _______, _______, _______
#define ___SETTINGS_R1___ KC_NO, KC_NO, KC_NO, KC_BRID, KC_BRIU
#define ___SETTINGS_R2___ KC_MPRV, KC_MPLY, KC_MUTE, KC_MNXT, KC_NO
#define ___SETTINGS_R3___ KC_NO, KC_VOLD, KC_VOLU, KC_NO, KC_NO

// - MODS
#define ___SETTINGS_R4___ KC_NO, KC_NO, KC_NO, KC_TRNS, KC_NO
#define ___SETTINGS_R4___ KC_NO, KC_TRNS, KC_NO, KC_NO, KC_NO
#define K0B_SET KC_NO
#define K1B_SET KC_NO
#define K2B_SET KC_NO
#define K3B_SET KC_NO
#define K4B_SET KC_NO
#define K3B_SET KC_ASTG
#define K4B_SET KC_NO
Loading