diff options
author | Endemoniada <martin@mekberg.se> | 2019-10-16 19:48:00 +0200 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-10-16 10:48:00 -0700 |
commit | 7677e8adde5a47a112a3b84fbd526133106b2d88 (patch) | |
tree | e17482ab1598281a3b4e8dc4899fd2decf1d8705 /keyboards/tada68/keymaps | |
parent | 162dd3fe19a9c3bf15d63013bf51a49877de0bc9 (diff) |
[Keymap] Add Endemoniada keymaps (#6875)
* Add dz60 keymap
* Add my TADA68 layout
* Fix descriptions and formatting
* Formatting fixes
* Add readme file
* Formatting
* move caps lock to correct key, add F-keys to both layers
* Add readme for dz60
* First draft of custom Let's Split layout
* Some more keys
* Finalized keymap
* Added a bunch of custom shortcuts to make layout easier to read
* Add PERMISSIVE_HOLD option to modtap behavior
* Add lock and sleep shortcuts, formatting
* Minor fixes and adjustments
* Add PERMISSIVE_HOLD option, add sleep/lock shortcuts, minor fixes
* Add sleep/lock shortcuts, minor fixes
* fixups
* Major simplification of lets_split layout into more standard raise/lower/special layers
* Remove layer songs, add to readme
* Formatting
* Switch a few keys around for reachability
* Add windows/mac specific layers
* simplify layers
* Update README
* Fix legends
* Invert numpad and put Del in upper right corner
* Disable arrow keys on Raise, add build instructions
* Move dz60 keymap to its own branch
* Remove redundant configuration
* Change volume and sleep keycodes to standard
* Removing empty rules.mk
* Changing layer defines to enum
* Adding comment to explain reason for swapping KC_TRNS and KC_NO fillers
Diffstat (limited to 'keyboards/tada68/keymaps')
-rw-r--r-- | keyboards/tada68/keymaps/mekberg/config.h | 5 | ||||
-rwxr-xr-x | keyboards/tada68/keymaps/mekberg/keymap.c | 100 | ||||
-rw-r--r-- | keyboards/tada68/keymaps/mekberg/readme.md | 58 | ||||
-rw-r--r-- | keyboards/tada68/keymaps/mekberg/rules.mk | 5 |
4 files changed, 168 insertions, 0 deletions
diff --git a/keyboards/tada68/keymaps/mekberg/config.h b/keyboards/tada68/keymaps/mekberg/config.h new file mode 100644 index 0000000000..d29180a5af --- /dev/null +++ b/keyboards/tada68/keymaps/mekberg/config.h @@ -0,0 +1,5 @@ +#pragma once + +// Define some configuration for modtap behavior +// #define TAPPING_TERM 150 +#define PERMISSIVE_HOLD diff --git a/keyboards/tada68/keymaps/mekberg/keymap.c b/keyboards/tada68/keymaps/mekberg/keymap.c new file mode 100755 index 0000000000..1acbf2c48a --- /dev/null +++ b/keyboards/tada68/keymaps/mekberg/keymap.c @@ -0,0 +1,100 @@ +#include QMK_KEYBOARD_H + +// Fillers to make layering more clear +// The default names have been swapped to make the keymap more readable. +#define XXXXXX KC_TRNS +#define ______ KC_NO + +// ISO keycodes with Swedish layout names +#define SE_PLUS KC_MINS // + +#define SE_TCK KC_EQL // Fronttick (´) +#define SE_DASH KC_SLSH // - +#define SE_UML KC_RBRC // Umlaut (¨) +#define SE_QUT KC_NUHS // Singlequote (') +#define SE_AUML KC_QUOT // Ä +#define SE_ARNG KC_LBRC // Å +#define SE_OUML KC_SCLN // Ö +#define SE_LT KC_NUBS // < + +// My common shortcuts +#define MY_PREV KC_MRWD // Media: Previous +#define MY_NEXT KC_MFFD // Media: Next +#define MY_PLAY KC_MPLY // Media: Play/Pause +#define MY_LOCK C(A(KC_L)) // Mac: Lock + + +/* +TADA68 ISO physical layout +1u == 8chars +,----------------------------------------------------------------------------------------------------------------------------------------------. +| | | | | | | | | | | | | | 2u | | +|----------------------------------------------------------------------------------------------------------------------------------------------| +| 1,5u | | | | | | | | | | | | | 1,5u | | +|--------------------------------------------------------------------------------------------------------------------------| |--------| +| 1,75u | | | | | | | | | | | | | 1,25u | | +|----------------------------------------------------------------------------------------------------------------------------------------------| +| 1,25u | | | | | | | | | | | | 1,75u | | | +|----------------------------------------------------------------------------------------------------------------------------------------------| +| 1,25u | 1,25u | 1,25u | | | | | | | | +`----------------------------------------------------------------------------------------------------------------------------------------------' +*/ + + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT_iso( +// ,----------------------------------------------------------------------------------------------------------------------------------------------. +// | Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | + | ´ | Backspace | Home | + KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, SE_PLUS, SE_TCK, KC_BSPC, KC_HOME, +// |----------------------------------------------------------------------------------------------------------------------------------------------| +// | Tab | Q | W | E | R | T | Y | U | I | O | P | Å | ¨ | | End | + LT(2,KC_TAB), KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, SE_ARNG, SE_UML, KC_END, +// |--------------------------------------------------------------------------------------------------------------------------| |--------| +// | LCtrl | A | S | D | F | G | H | J | K | L | Ö | Ä | ' | Enter | PgUp | + KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, SE_OUML, SE_AUML, SE_QUT, KC_ENT, KC_PGUP, +// |----------------------------------------------------------------------------------------------------------------------------------------------| +// | LShift | <> | Z | X | C | V | B | N | M | , | . | - | RShift | Up | PgDn | + KC_LSFT, SE_LT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, SE_DASH, KC_RSFT, KC_UP, KC_PGDN, +// |----------------------------------------------------------------------------------------------------------------------------------------------| +// | LCtrl | LAlt | Command | Space |Command | RAlt | Fn | Left | Down | Right | + KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_LGUI, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT +// `----------------------------------------------------------------------------------------------------------------------------------------------' + ), + + [1] = LAYOUT_iso( +// ,----------------------------------------------------------------------------------------------------------------------------------------------. +// | | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | Delete | Ins | + 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_INS, +// |----------------------------------------------------------------------------------------------------------------------------------------------| +// | | | Up | | | | | | | | | | | | Mute | + ______, ______, KC_UP, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, KC__MUTE, +// |--------------------------------------------------------------------------------------------------------------------------| Lock |--------| +// | Caps Lock | Left | Down | Right | BLight | | | | | | | | | Screen | VolUp | + KC_CAPS, KC_LEFT, KC_DOWN, KC_RGHT, BL_BRTG, ______, ______, ______, ______, ______, ______, ______, ______, MY_LOCK, KC_VOLU, +// |----------------------------------------------------------------------------------------------------------------------------------------------| +// | | | | | Bl- |BLtoggle | Bl+ | | | | | | | Stop | VolDn | + ______, ______, ______, ______, BL_DEC, BL_TOGG, BL_INC, ______, ______, ______, ______, ______, ______, KC_MSTP, KC_VOLD, +// |----------------------------------------------------------------------------------------------------------------------------------------------| +// | | | | Sleep | | | | Prev | Play | Fwd | + ______, ______, ______, KC_SLEP, ______, ______, XXXXXX, MY_PREV, MY_PLAY, MY_NEXT +// `----------------------------------------------------------------------------------------------------------------------------------------------' + ), + + [2] = LAYOUT_iso( +// ,----------------------------------------------------------------------------------------------------------------------------------------------. +// | Esc | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | Delete | | + 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, ______, +// |----------------------------------------------------------------------------------------------------------------------------------------------| +// | | | Up | | | | | | | | | | | | Mute | + XXXXXX, ______, KC_UP, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, KC__MUTE, +// |--------------------------------------------------------------------------------------------------------------------------| |--------| +// | | Left | Down | Right | | | Left | Down | Up | Right | | | | | VolUp | + ______, KC_LEFT, KC_DOWN, KC_RGHT, ______, ______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, ______, ______, ______, ______, KC_VOLU, +// |----------------------------------------------------------------------------------------------------------------------------------------------| +// | | | | | | | | | | | | | | Stop | VolDn | + ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, KC_MSTP, KC_VOLD, +// |----------------------------------------------------------------------------------------------------------------------------------------------| +// | | | | | | | | Prev | Play | Fwd | + ______, ______, ______, ______, ______, ______, ______, MY_PREV, MY_PLAY, MY_NEXT +// `----------------------------------------------------------------------------------------------------------------------------------------------' + ) +}; diff --git a/keyboards/tada68/keymaps/mekberg/readme.md b/keyboards/tada68/keymaps/mekberg/readme.md new file mode 100644 index 0000000000..be578e9572 --- /dev/null +++ b/keyboards/tada68/keymaps/mekberg/readme.md @@ -0,0 +1,58 @@ +# Mekberg's TADA68 layout + +More or less a standard Swedish ISO layout, with Mac-centric key positions. All keys not assigned on non-default layers are set to KC_NO +as I don't want them to pass through when activating a layer. + +# Layers + +### Base Layer + +``` +,----------------------------------------------------------------------------------------------------------------------------------------------. +| Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | + | ´ | Backspace | Home | +|----------------------------------------------------------------------------------------------------------------------------------------------| +| Tab | Q | W | E | R | T | Y | U | I | O | P | Å | ¨ | | End | +|--------------------------------------------------------------------------------------------------------------------------| |--------| +| LCtrl | A | S | D | F | G | H | J | K | L | Ö | Ä | ' | Enter | PgUp | +|----------------------------------------------------------------------------------------------------------------------------------------------| +| LShift | <> | Z | X | C | V | B | N | M | , | . | - | RShift | Up | PgDn | +|----------------------------------------------------------------------------------------------------------------------------------------------| +| LCtrl | LAlt | Command | Space |Command | RAlt | Fn | Left | Down | Right | +`----------------------------------------------------------------------------------------------------------------------------------------------' +``` + +### Fn Layer (layer 1) + +``` +,----------------------------------------------------------------------------------------------------------------------------------------------. +| | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | Delete | Ins | +|----------------------------------------------------------------------------------------------------------------------------------------------| +| | | Up | | | | | | | | | | | | Mute | +|--------------------------------------------------------------------------------------------------------------------------| |--------| +| Caps Lock | Left | Down | Right | BLight | | | | | | | | | | VolUp | +|----------------------------------------------------------------------------------------------------------------------------------------------| +| | | | | Bl- |BLtoggle | Bl+ | | | | | | | Stop | VolDn | +|----------------------------------------------------------------------------------------------------------------------------------------------| +| | | | | | | | Prev | Play | Fwd | +`----------------------------------------------------------------------------------------------------------------------------------------------' +``` + +Mainly used for media keys and F-keys, as well as a nav cluster on WASD. Also has backlight keys, that are rarely used. + +### Modtap Tab Layer (layer 2) + +``` +,----------------------------------------------------------------------------------------------------------------------------------------------. +| Esc | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | Delete | | +|----------------------------------------------------------------------------------------------------------------------------------------------| +| | | Up | | | | | | | | | | | | Mute | +|--------------------------------------------------------------------------------------------------------------------------| |--------| +| | Left | Down | Right | | | Left | Down | Up | Right | | | | | VolUp | +|----------------------------------------------------------------------------------------------------------------------------------------------| +| | | | | | | | | | | | | | Stop | VolDn | +|----------------------------------------------------------------------------------------------------------------------------------------------| +| | | | | | | | Prev | Play | Fwd | +`----------------------------------------------------------------------------------------------------------------------------------------------' +``` + +Tab acts as Tab when tapped, and as Layer 2 when held. Used for HJKL nav keys and Delete. diff --git a/keyboards/tada68/keymaps/mekberg/rules.mk b/keyboards/tada68/keymaps/mekberg/rules.mk new file mode 100644 index 0000000000..dbaa9045e7 --- /dev/null +++ b/keyboards/tada68/keymaps/mekberg/rules.mk @@ -0,0 +1,5 @@ +# Build Options +# change to "no" to disable the options, or define them in the Makefile in +# the appropriate keymap folder that will get included automatically +# +CONSOLE_ENABLE = no # Console for debug(+400) |