summaryrefslogtreecommitdiff
path: root/keyboards/niu_mini/keymaps
diff options
context:
space:
mode:
authorSpacebarRacecar <42380065+SpacebarRacecar@users.noreply.github.com>2018-10-22 22:23:22 +0200
committerDrashna Jaelre <drashna@live.com>2018-10-22 13:23:22 -0700
commit704a2e8d3c0bd15f6c8accd5a39fb88ca6c9e2d5 (patch)
treee3ed96d6cc1d4a78c65db1dc571956feeaef83e6 /keyboards/niu_mini/keymaps
parente7451448361b0d1490f74aae6dfe4f80e86ea1ca (diff)
downloadqmk_firmware-704a2e8d3c0bd15f6c8accd5a39fb88ca6c9e2d5.tar.gz
qmk_firmware-704a2e8d3c0bd15f6c8accd5a39fb88ca6c9e2d5.zip
Keymap: Updates to personal userspace and keymaps (#4206)
* - updated personal userspace - updated fc660c, niu mini and planck keymaps - added prime_o keymap * Rename README.md to readme.md
Diffstat (limited to 'keyboards/niu_mini/keymaps')
-rw-r--r--keyboards/niu_mini/keymaps/spacebarracecar/config.h1
-rw-r--r--keyboards/niu_mini/keymaps/spacebarracecar/keymap.c17
-rw-r--r--keyboards/niu_mini/keymaps/spacebarracecar/readme.md6
3 files changed, 14 insertions, 10 deletions
diff --git a/keyboards/niu_mini/keymaps/spacebarracecar/config.h b/keyboards/niu_mini/keymaps/spacebarracecar/config.h
index e69de29bb2..6f70f09bee 100644
--- a/keyboards/niu_mini/keymaps/spacebarracecar/config.h
+++ b/keyboards/niu_mini/keymaps/spacebarracecar/config.h
@@ -0,0 +1 @@
+#pragma once
diff --git a/keyboards/niu_mini/keymaps/spacebarracecar/keymap.c b/keyboards/niu_mini/keymaps/spacebarracecar/keymap.c
index b850e5fda7..c3f6fb09a1 100644
--- a/keyboards/niu_mini/keymaps/spacebarracecar/keymap.c
+++ b/keyboards/niu_mini/keymaps/spacebarracecar/keymap.c
@@ -12,7 +12,7 @@ enum layers {
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
-/* Base Layer
+/* Base
,-----------------------------------------------------------------------------------------------------------------------.
|Tab |Q |W |E |R |T |Z |U |I |O |P |Backspace|
|---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------|
@@ -68,7 +68,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
-/* Dead-Key
+/* Deadkey
,-----------------------------------------------------------------------------------------------------------------------.
| | | | | | | |Ü | |Ö | | |
|---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------|
@@ -87,15 +87,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______, _______, CU_DDQ, CU_DDQ, _______, _______, _______, _______, _______
),
-/* Nav
+/* Navigation
,-----------------------------------------------------------------------------------------------------------------------.
-|Caps Lock|PageDown |Up |PageUp |Home | | | |Win+Up | | |Del |
+|ESCT |PageDown |Up |PageUp |Home | | | |Win+Up | | |Del |
|---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------|
| |Left |Down |Right |End | | |Win+Left |Win+Down |Win+Right| |Enter |
|---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------|
| |Prev |Pause |Next |LowerVol |RaiseVol |Mute | | | | | |
|---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------|
-| | | | | | | | | | |RESET | |
+|RESET | | | | | | | | | | |Game |
`-----------------------------------------------------------------------------------------------------------------------'
*/
@@ -103,12 +103,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
CU_ESCT, KC_PGDN, KC_UP, KC_PGUP, KC_HOME, XXXXXXX, XXXXXXX, XXXXXXX, GUIU, XXXXXXX, XXXXXXX, KC_DEL,
_______, KC_LEFT, KC_DOWN, KC_RGHT, KC_END, XXXXXXX, XXXXXXX, GUIL, GUID, GUIR, RGB_M_P, KC_ENT,
_______, KC_MPRV, KC_MPLY, KC_MNXT, KC_VOLD, KC_VOLU, KC_MUTE, RGB_TOG, RGB_MOD, RGB_HUI, CU_RGBV, _______,
- RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, CU_GAME
+ RESET, _______, _______, _______, _______, KC_SPC, KC_ENT, _______, _______, _______, _______, CU_GAME
)
};
-bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case MO(_LOWER):
if (game){
@@ -121,6 +121,7 @@ switch (keycode) {
} else {
return true;
}
+ default:
+ return true;
}
- return process_record_userspace(keycode, record);
}
diff --git a/keyboards/niu_mini/keymaps/spacebarracecar/readme.md b/keyboards/niu_mini/keymaps/spacebarracecar/readme.md
index 88d7221869..9672743816 100644
--- a/keyboards/niu_mini/keymaps/spacebarracecar/readme.md
+++ b/keyboards/niu_mini/keymaps/spacebarracecar/readme.md
@@ -1,3 +1,5 @@
-# US-International like Niu Mini layout for PCs with German set as input language
+# SpacebarRacecar US-International NIU Mini Keymap for German PCs
-This layout aims to provide a US-International like layout for PCs that have German set as Input Language. This is useful for users living in germany, because it enables the use of the Niu Mini on any pc without having to switch the input language. It's mostly based on the Planck default layout, but adds essential features for german input, like a dead key layer to access ä, ö, ü.
+This keymap emulates most keys of the US-International layout on PCs that have German set as input language.
+This allows the use of the keyboard on any PC in Germany without the need to change any settings.
+The keymap is mostly based on the Planck default layout but adds essential features for german input, like access to Ä, Ö, Ü, ß.