aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/handwired/dactyl_manuform/5x6/keymaps/swedish/config.h27
-rw-r--r--keyboards/handwired/dactyl_manuform/5x6/keymaps/swedish/keymap.c58
2 files changed, 85 insertions, 0 deletions
diff --git a/keyboards/handwired/dactyl_manuform/5x6/keymaps/swedish/config.h b/keyboards/handwired/dactyl_manuform/5x6/keymaps/swedish/config.h
new file mode 100644
index 000000000..29ab59ad6
--- /dev/null
+++ b/keyboards/handwired/dactyl_manuform/5x6/keymaps/swedish/config.h
@@ -0,0 +1,27 @@
1/*
2Copyright 2012 Jun Wako <wakojun@gmail.com>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18
19#pragma once
20
21
22#define USE_SERIAL
23
24#define MASTER_LEFT
25// #define MASTER_RIGHT
26//#define EE_HANDS
27// Rows are doubled-up
diff --git a/keyboards/handwired/dactyl_manuform/5x6/keymaps/swedish/keymap.c b/keyboards/handwired/dactyl_manuform/5x6/keymaps/swedish/keymap.c
new file mode 100644
index 000000000..f8dfb2718
--- /dev/null
+++ b/keyboards/handwired/dactyl_manuform/5x6/keymaps/swedish/keymap.c
@@ -0,0 +1,58 @@
1/* A Swedish XMonad layout for the Dactyl Manuform 5x6 Keyboard */
2
3#include QMK_KEYBOARD_H
4#include "keymap_swedish.h"
5
6enum dactyl_layers {
7 _QWERTY,
8 _LOWER,
9 _RAISE,
10};
11
12#define RAISE MO(_RAISE)
13#define LOWER MO(_LOWER)
14#define TERM LGUI(LSFT(KC_ENT))
15#define ALTTAB LGUI(KC_TAB)
16#define KILL LGUI(LSFT(KC_C))
17#define OPEN LGUI(KC_P)
18#define KC_QSM LSFT(SE_PLUS)
19#define KC_AA SE_AA
20#define KC_AE SE_AE
21#define KC_OE SE_OSLH
22
23const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
24
25 [_QWERTY] = LAYOUT_5x6(
26 KC_ESC , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , SE_APOS,
27 KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_AA ,
28 KC_LSFT, KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_OE , KC_AE ,
29 KC_LCTL, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM, KC_DOT , SE_SLSH, SE_MINS,
30 KC_EXLM, KC_QSM , SE_PLUS, SE_EQL ,
31 RAISE , KC_SPC , KC_ENT , LOWER ,
32 ALTTAB , KC_LGUI, KC_BSPC, KC_DEL ,
33 OPEN , TERM , KILL , KC_LALT
34 ),
35
36 [_LOWER] = LAYOUT_5x6(
37 SE_TILD, KC_EXLM, SE_AT , KC_HASH, SE_DLR , KC_PERC, SE_CIRC, SE_AMPR, SE_ASTR, SE_SLSH, SE_LPRN, SE_RPRN,
38 SE_ACUT, _______, _______, _______, _______, _______, _______, _______, _______, _______, SE_LCBR, SE_RCBR,
39 _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP , KC_RGHT, SE_LBRC, SE_RBRC,
40 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, SE_LESS, SE_GRTR,
41 _______, _______, _______, _______,
42 _______, _______, _______, _______,
43 _______, _______, _______, _______,
44 _______, _______, _______, _______
45
46 ),
47
48 [_RAISE] = LAYOUT_5x6(
49 KC_F12 , KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 ,
50 _______, _______, _______, _______, _______, _______, RESET , _______, _______, _______, KC_MUTE, SE_PIPE,
51 _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END , KC_VOLU, SE_BSLS,
52 _______, _______, _______, _______, _______, _______, _______, KC_MPLY, KC_MPRV, KC_MNXT, KC_VOLD, _______,
53 _______, _______, _______, _______,
54 _______, _______, _______, _______,
55 _______, _______, _______, _______,
56 _______, _______, _______, _______
57 ),
58};