aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-05-26 18:33:25 -0400
committerGitHub <noreply@github.com>2017-05-26 18:33:25 -0400
commitd24da945d1dbfbe81177dd6611b0d5a27ab8344f (patch)
tree514caf7e4b3abf8133ba2846b9b906aa7a95fe0a
parent453877422bddd7c83ae8b893e79203cb5d868cf7 (diff)
parent6d08de5c67c8b9bf50ca319922a028b93c6a3f35 (diff)
downloadqmk_firmware-d24da945d1dbfbe81177dd6611b0d5a27ab8344f.tar.gz
qmk_firmware-d24da945d1dbfbe81177dd6611b0d5a27ab8344f.zip
Merge pull request #1319 from Johannes-Larsson/master
Add planck/johannes layout
-rw-r--r--keyboards/planck/keymaps/johannes/Makefile25
-rw-r--r--keyboards/planck/keymaps/johannes/keymap.c99
-rw-r--r--keyboards/planck/keymaps/johannes/planck-layout.pngbin0 -> 19661 bytes
-rw-r--r--keyboards/planck/keymaps/johannes/readme.md6
4 files changed, 130 insertions, 0 deletions
diff --git a/keyboards/planck/keymaps/johannes/Makefile b/keyboards/planck/keymaps/johannes/Makefile
new file mode 100644
index 000000000..0c0632da0
--- /dev/null
+++ b/keyboards/planck/keymaps/johannes/Makefile
@@ -0,0 +1,25 @@
1
2
3# Build Options
4# change to "no" to disable the options, or define them in the Makefile in
5# the appropriate keymap folder that will get included automatically
6#
7BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
8MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
9EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
10CONSOLE_ENABLE = no # Console for debug(+400)
11COMMAND_ENABLE = no # Commands for debug and configuration
12NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
13BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
14MIDI_ENABLE = no # MIDI controls
15AUDIO_ENABLE = no # Audio output on port C6
16UNICODE_ENABLE = no # Unicode
17BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
18RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
19
20# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
21SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
22
23ifndef QUANTUM_DIR
24 include ../../../../Makefile
25endif \ No newline at end of file
diff --git a/keyboards/planck/keymaps/johannes/keymap.c b/keyboards/planck/keymaps/johannes/keymap.c
new file mode 100644
index 000000000..a3376518b
--- /dev/null
+++ b/keyboards/planck/keymaps/johannes/keymap.c
@@ -0,0 +1,99 @@
1#include "planck.h"
2
3// Each layer gets a name for readability, which is then used in the keymap matrix below.
4// The underscores don't mean anything - you can have a layer called STUFF or any other name.
5// Layer names don't all need to be of the same length, obviously, and you can also skip them
6// entirely and just use numbers.
7
8// Fillers to make layering more clear
9#define _______ KC_TRNS
10#define XXXXXXX KC_NO
11#define QWERTY 0
12#define LOWER 1
13#define RAISE 2
14#define FUNCTION 3
15
16const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
17
18/* Qwerty
19 * ,-----------------------------------------------------------------------------------.
20 * | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp |
21 * |------+------+------+------+------+-------------+------+------+------+------+------|
22 * | Esc | A | S | D | F | G | H | J | K | L | ; | ' |
23 * |------+------+------+------+------+------|------+------+------+------+------+------|
24 * | Ctrl | Z | X | C | V | B | N | M | , | . | / |Enter |
25 * |------+------+------+------+------+------+------+------+------+------+------+------|
26 * | | alt |play/p| super|shift | Space|Raise | lower| alt | altgr| |fn |
27 * `-----------------------------------------------------------------------------------'
28 */
29[QWERTY] = {
30 {KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC},
31 {KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT},
32 {KC_LCTRL, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT },
33 {_______, KC_LALT, LT(FUNCTION, KC_MPLY), KC_LGUI, KC_LSHIFT, KC_SPC, MO(RAISE), MO(LOWER), KC_LALT, KC_RALT, XXXXXXX, MO(FUNCTION)}
34},
35
36/* Lower
37 * ,-----------------------------------------------------------------------------------.
38 * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | |
39 * |------+------+------+------+------+-------------+------+------+------+------+------|
40 * | | | { | } | + | | | Å | Ä | Ö | _ | |
41 * |------+------+------+------+------+------|------+------+------+------+------+------|
42 * | | | | | | | | | | | \ | |
43 * |------+------+------+------+------+------+------+------+------+------+------+------|
44 * | | | | | | | | | | | |
45 * `-----------------------------------------------------------------------------------'
46 */
47[LOWER] = {
48 {KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC},
49 {_______, _______, KC_LCBR, KC_RCBR, KC_PLUS, _______, _______, RALT(KC_W), RALT(KC_Q), RALT(KC_P), KC_UNDS, _______},
50 {_______, _______, _______, _______, _______, _______, _______,_______, _______,_______, KC_BSLS, _______},
51 {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______}
52},
53
54/* Raise
55 * ,-----------------------------------------------------------------------------------.
56 * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | del |
57 * |------+------+------+------+------+-------------+------+------+------+------+------|
58 * | | | [ | ] | = | | left| down| up | right| - | |
59 * |------+------+------+------+------+------|------+------+------+------+------+------|
60 * | | | | | | | | | | | | | |
61 * |------+------+------+------+------+------+------+------+------+------+------+------|
62 * | | | | | | | | | | | |
63 * `-----------------------------------------------------------------------------------'
64 */
65[RAISE] = {
66 {KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL},
67 {_______, _______, KC_LBRC, KC_RBRC, KC_EQL, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_MINS, _______},
68 {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PIPE, _______},
69 {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______}
70},
71
72/* Fn
73 * ,-----------------------------------------------------------------------------------.
74 * | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 '
75 * |------+------+------+------+------+-------------+------+------+------+------+------|
76 * | | | | | | | prev | vol.d| vo.up| next | | |
77 * |------+------+------+------+------+------|------+------+------+------+------+------|
78 * | | | | | | | mute | | | | | |
79 * |------+------+------+------+------+------+------+------+------+------+------+------|
80 * | | | | | CAPS | | | | | | | |
81 * `-----------------------------------------------------------------------------------'
82 */
83[FUNCTION] = {
84 {KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12},
85 {_______, _______, _______, _______, _______, _______, KC_MEDIA_PREV_TRACK, KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP, KC_MEDIA_NEXT_TRACK, _______, _______},
86 {_______, _______, _______, _______, _______, _______, _______, KC_AUDIO_MUTE, _______, _______, _______, _______},
87 {_______, _______, _______, _______, KC_CAPS, _______, _______, _______, _______, _______, _______, _______}
88},
89
90};
91
92const uint16_t PROGMEM fn_actions[] = {
93
94};
95
96const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
97{
98 return MACRO_NONE;
99};
diff --git a/keyboards/planck/keymaps/johannes/planck-layout.png b/keyboards/planck/keymaps/johannes/planck-layout.png
new file mode 100644
index 000000000..e863b802c
--- /dev/null
+++ b/keyboards/planck/keymaps/johannes/planck-layout.png
Binary files differ
diff --git a/keyboards/planck/keymaps/johannes/readme.md b/keyboards/planck/keymaps/johannes/readme.md
new file mode 100644
index 000000000..bbb7accf8
--- /dev/null
+++ b/keyboards/planck/keymaps/johannes/readme.md
@@ -0,0 +1,6 @@
1# Planck layout for Swedish programmer
2I.e. easy access to special keys and åäö.
3
4![layout](planck-layout.png)
5
6[KBLE link](http://www.keyboard-layout-editor.com/#/gists/dc01cc2225899308a05ba3ef0031548b)