summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Schodet2018-06-19 01:00:58 +0200
committerNicolas Schodet2018-07-10 01:03:33 +0200
commitc95d2ea4ee22bef1019ec545f8d3add623b3068f (patch)
treee83da34ca837ef238cf0acba390fa8e924103359
parent502895671d55f6a9be06aac0bed8d0ee91f2ba84 (diff)
splitty: add ni keymap
-rw-r--r--keyboards/splitty/keymaps/ni/config.h33
-rw-r--r--keyboards/splitty/keymaps/ni/keymap.c93
2 files changed, 126 insertions, 0 deletions
diff --git a/keyboards/splitty/keymaps/ni/config.h b/keyboards/splitty/keymaps/ni/config.h
new file mode 100644
index 000000000..03e9948b0
--- /dev/null
+++ b/keyboards/splitty/keymaps/ni/config.h
@@ -0,0 +1,33 @@
+/*
+This is the c configuration file for the keymap
+
+Copyright 2012 Jun Wako <wakojun@gmail.com>
+Copyright 2015 Jack Humbert
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef CONFIG_USER_H
+#define CONFIG_USER_H
+
+#include "../../config.h"
+
+/* Use I2C or Serial, not both */
+
+// #define USE_SERIAL
+#define USE_I2C
+
+#define PREVENT_STUCK_MODIFIERS
+
+#endif
diff --git a/keyboards/splitty/keymaps/ni/keymap.c b/keyboards/splitty/keymaps/ni/keymap.c
new file mode 100644
index 000000000..4aa766c91
--- /dev/null
+++ b/keyboards/splitty/keymaps/ni/keymap.c
@@ -0,0 +1,93 @@
+#include QMK_KEYBOARD_H
+#include "keymap_bepo.h"
+
+extern keymap_config_t keymap_config;
+
+enum {
+ BEPO, // Base BÉPO layer, a french ergonomic layout.
+ FUNA, // function / navigation / Alt Gr.
+ NUM, // Numpad.
+};
+
+#define ___ KC_TRNS
+#define FUNASPC LT(FUNA, KC_SPC)
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [BEPO] = LAYOUT(
+ //,-------+-------+-------+-------+-------+-------+-------. ,-------+-------+-------+-------+-------+-------+-------.
+ //| ESC | " | « | » | ( | ) | $ | | % | @ | + | - | / | * | = |
+ KC_ESC ,BP_DQOT,BP_LGIL,BP_RGIL,BP_LPRN,BP_RPRN,BP_DLR , BP_PERC, BP_AT ,BP_PLUS,BP_MINS,BP_SLSH,BP_ASTR,BP_EQL ,
+ //|-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------|
+ //| w | b | é | p | o | è | | | | d^ | v | d | l | j | z |
+ BP_W , BP_B ,BP_ECUT, BP_P , BP_O ,BP_EGRV,KC_ENT , KC_ENT ,BP_DCRC, BP_V , BP_D , BP_L , BP_J , BP_Z ,
+ //|-------+-------+-------+-------+-------+-------| Enter | | Enter |-------+-------+-------+-------+-------+-------|
+ //| Tab | a | u | i | e | , | | | | c | t | s | r | n | m |
+ KC_TAB , BP_A , BP_U , BP_I , BP_E ,BP_COMM,/*-----| |------*/ BP_C , BP_T , BP_S , BP_R , BP_N , BP_M ,
+ //|-------+-------+-------+-------+-------+-------| | | |-------+-------+-------+-------+-------+-------|
+ //| ê | à | y | x | . | k | Del | | <-- | ' | q | g | h | f | ç |
+ BP_ECRC,BP_AGRV, BP_Y , BP_X ,BP_DOT , BP_K ,KC_DEL , KC_BSPC,BP_APOS, BP_Q , BP_G , BP_H , BP_F ,BP_CCED,
+ //`-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------'
+ // | Gui | App | Alt |SpaceFn| Shift | | Shift |SpaceFn| Ctrl | Num | Gui |
+ KC_LGUI,KC_APP ,KC_LALT,FUNASPC,KC_LSFT, KC_RSFT,FUNASPC,KC_RCTL,MO(NUM),KC_RGUI
+ // `-------+-------+-------+-------+-------' `-------+-------+-------+-------+-------'
+ ),
+
+ [FUNA] = LAYOUT(
+ //,-------+-------+-------+-------+-------+-------+-------. ,-------+-------+-------+-------+-------+-------+-------.
+ //| | — | < | > | [ | ] | – | | ‰ | ^ | ± | − | ÷ | × | ≠ |
+ ___ ,BP_MDSH,BP_LESS,BP_GRTR,BP_LBRC,BP_RBRC,BP_NDSH, BP_PMIL,BP_CIRC,BP_PSMS,BP_MMNS,BP_OBEL,BP_TIMS,BP_DIFF,
+ //|-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------|
+ //| d˘ | | | d´ | & | œ | d` | | | | Del | PgUp | Up | PgDn | | Reset |
+ BP_DBRV,BP_PIPE,BP_DACT,BP_AMPR, BP_OE ,BP_DGRV, ___ , ___ ,KC_DEL ,KC_PGUP, KC_UP ,KC_PGDN, KC_NO , RESET ,
+ //|-------+-------+-------+-------+-------+-------| | | |-------+-------+-------+-------+-------+-------|
+ //| | æ | ù | d¨ | € | ’ | | | | <-- | Left | Down | Right | Enter | Pause |
+ ___ , BP_AE ,BP_UGRV,BP_DTRM,BP_EURO,BP_TAPO,/*-----| |------*/KC_BSPC,KC_LEFT,KC_DOWN,KC_RGHT,KC_ENT ,KC_PAUS,
+ //|-------+-------+-------+-------+-------+-------| | | |-------+-------+-------+-------+-------+-------|
+ //| / | \ | { | } | … | ~ | | | | _ | Home |d Greek| End | Insert|PrntScr|
+ BP_NUSL,BP_BSLS,BP_LCBR,BP_RCBR,BP_ELPS,BP_TILD, ___ , ___ ,BP_UNDS,KC_HOME,BP_DGRK,KC_END ,KC_INS ,KC_PSCR,
+ //`-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------'
+ // | | | | AltGr | | | | AltGr | | | |
+ ___ , ___ , ___ ,BP_ALGR, ___ , ___ ,BP_ALGR, ___ , ___ , ___
+ // `-------+-------+-------+-------+-------' `-------+-------+-------+-------+-------'
+ ),
+
+ [NUM] = LAYOUT(
+ //,-------+-------+-------+-------+-------+-------+-------. ,-------+-------+-------+-------+-------+-------+-------.
+ //| | | | | | | | | | | | | | | |
+ ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ ,
+ //|-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------|
+ //| | | | | | | | | | | | | | | |
+ ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , BP_7 , BP_8 , BP_9 , ___ , ___ ,
+ //|-------+-------+-------+-------+-------+-------| | | |-------+-------+-------+-------+-------+-------|
+ //| | | | | | | | | | | | | | | |
+ ___ , ___ , ___ , ___ , ___ , ___ ,/*-----| |------*/ ___ , BP_4 , BP_5 , BP_6 , ___ , ___ ,
+ //|-------+-------+-------+-------+-------+-------| | | |-------+-------+-------+-------+-------+-------|
+ //| | | | | | | | | | | | | | | |
+ ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , BP_1 , BP_2 , BP_3 ,BP_COMM, ___ ,
+ //`-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------'
+ // | | | | | | | | | | | |
+ ___ , ___ , ___ , ___ , ___ , ___ , ___ , BP_0 , ___ ,BP_DOT
+ // `-------+-------+-------+-------+-------' `-------+-------+-------+-------+-------'
+ ),
+
+#if 0
+ [] = LAYOUT(
+ //,-------+-------+-------+-------+-------+-------+-------. ,-------+-------+-------+-------+-------+-------+-------.
+ //| | | | | | | | | | | | | | | |
+ ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ ,
+ //|-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------|
+ //| | | | | | | | | | | | | | | |
+ ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ ,
+ //|-------+-------+-------+-------+-------+-------| | | |-------+-------+-------+-------+-------+-------|
+ //| | | | | | | | | | | | | | | |
+ ___ , ___ , ___ , ___ , ___ , ___ ,/*-----| |------*/ ___ , ___ , ___ , ___ , ___ , ___ ,
+ //|-------+-------+-------+-------+-------+-------| | | |-------+-------+-------+-------+-------+-------|
+ //| | | | | | | | | | | | | | | |
+ ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ ,
+ //`-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------'
+ // | | | | | | | | | | | |
+ ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___ , ___
+ // `-------+-------+-------+-------+-------' `-------+-------+-------+-------+-------'
+ ),
+#endif
+};