Skip to content

Commit

Permalink
[Keymap] Add users/alfrdmalr and switch to layouts (qmk#8030)
Browse files Browse the repository at this point in the history
* WIP do not merge

* first pass at custom preonic layout

* add auto shift and reset via leader key

* Update readme

* update copyright notice

* formatting changes

* fix: use MO instead of process_record_user

* added backslash and moved grave position

* remove extraneous 'j' characer in NUMPAD template

* update template formatting

* remove process_record_user

* swap "!" with "@"

* fix readme formatting

* update readme layout image

* restore settings layer

* add windows minimize sequence

* fix: switch to correct seq function for three-key sequence

* fix: missing semicolon

* refactor: move keymap to userspace and generic 5x12 layout

* add numlock to numpad layer

* add readme

* update readme formatting

* remove unused wrappers from layout keymap

* update readme title to reflect new location

* remove alfrdmalr directory from preonic/keymaps

* clean up user config
  • Loading branch information
alfrdmalr authored and kujawakk committed Apr 21, 2020
1 parent 65d6e73 commit 2953311
Show file tree
Hide file tree
Showing 12 changed files with 436 additions and 315 deletions.
40 changes: 0 additions & 40 deletions keyboards/preonic/keymaps/alfrdmalr/config.h

This file was deleted.

192 changes: 0 additions & 192 deletions keyboards/preonic/keymaps/alfrdmalr/keymap.c

This file was deleted.

80 changes: 0 additions & 80 deletions keyboards/preonic/keymaps/alfrdmalr/readme.md

This file was deleted.

3 changes: 0 additions & 3 deletions keyboards/preonic/keymaps/alfrdmalr/rules.mk

This file was deleted.

5 changes: 5 additions & 0 deletions layouts/community/ortho_5x12/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(PREONIC_SOUND)
#endif
49 changes: 49 additions & 0 deletions layouts/community/ortho_5x12/alfrdmalr/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#include "alfrdmalr.h"

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

// QWERTY
[_QWERTY] = LAYOUT_ortho_5x12_wrapper(
K00, ____NUMROW_L0____, ____NUMROW_R0____, K0B,
K10, ____QWERTY_L1____, ____QWERTY_R1____, K1B_ALT,
K20, ____QWERTY_L2____, ____QWERTY_R2____, K2B,
K30, ____QWERTY_L3____, ____QWERTY_R3____, K3B,
K40, _____BASE_L4_____, _____BASE_R4_____, K4B
),

// SYMBOLS
[_SYMBOLS] = 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,
K30_SYM, ____SYMBOL_L3____, ____SYMBOL_R3____, K3B_SYM,
K40_SYM, ____SYMBOL_L4____, ____SYMBOL_R4____, K4B_SYM
),

// NAVIGATION
[_NAVIGATION] = LAYOUT_ortho_5x12_wrapper(
K00_NAV, ____NUMROW_L0____, ____NUMROW_R0____, K0B_NAV,
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_5x12_wrapper(
K00_NUM, ____NUMROW_L0____, ____NUMROW_R0____, K0B_NUM,
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_5x12_wrapper(
K00_SET, ______TRANS______, ______TRANS______, K0B_SET,
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.
Loading

0 comments on commit 2953311

Please sign in to comment.