summaryrefslogtreecommitdiffstats
path: root/keyboards/atreus62/keymaps
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/atreus62/keymaps')
-rw-r--r--keyboards/atreus62/keymaps/atreus52/Makefile4
-rw-r--r--keyboards/atreus62/keymaps/atreus52/README.md10
-rw-r--r--keyboards/atreus62/keymaps/atreus52/config.h18
-rw-r--r--keyboards/atreus62/keymaps/atreus52/keymap.c99
-rw-r--r--keyboards/atreus62/keymaps/mneme/README.md6
-rw-r--r--keyboards/atreus62/keymaps/mneme/img/base.pngbin457157 -> 0 bytes
-rw-r--r--keyboards/atreus62/keymaps/mneme/img/fun.pngbin425368 -> 0 bytes
-rw-r--r--keyboards/atreus62/keymaps/mneme/img/sym.pngbin433218 -> 0 bytes
8 files changed, 134 insertions, 3 deletions
diff --git a/keyboards/atreus62/keymaps/atreus52/Makefile b/keyboards/atreus62/keymaps/atreus52/Makefile
new file mode 100644
index 0000000000..efa309d201
--- /dev/null
+++ b/keyboards/atreus62/keymaps/atreus52/Makefile
@@ -0,0 +1,4 @@
+NKRO_ENABLE = true
+MOUSEKEY_ENABLE = no
+EXTRAKEY_ENABLE = yes
+CONSOLE_ENABLE = no
diff --git a/keyboards/atreus62/keymaps/atreus52/README.md b/keyboards/atreus62/keymaps/atreus52/README.md
new file mode 100644
index 0000000000..245df7deb4
--- /dev/null
+++ b/keyboards/atreus62/keymaps/atreus52/README.md
@@ -0,0 +1,10 @@
+<!-- -*- mode: markdown; fill-column: 8192 -*- -->
+
+Atreus52 Modification
+=======================
+
+Firmware for my custom keyboard based on the Atreus layout, but with 5 rows and only 5 columns per hand.
+More documentation coming soon.
+
+# License
+ GPL-3+
diff --git a/keyboards/atreus62/keymaps/atreus52/config.h b/keyboards/atreus62/keymaps/atreus52/config.h
new file mode 100644
index 0000000000..ba0eaf0dbb
--- /dev/null
+++ b/keyboards/atreus62/keymaps/atreus52/config.h
@@ -0,0 +1,18 @@
+#include "../../config.h"
+
+#undef MANUFACTURER
+#undef PRODUCT
+#undef DESCRIPTION
+#undef MATRIX_ROW_PINS
+#undef MATRIX_COL_PINS
+#undef DIODE_DIRECTION
+
+/* USB Device descriptor parameter */
+#define MANUFACTURER Mesh Industries
+#define PRODUCT Atreus52 Treeboard
+#define DESCRIPTION q.m.k. keyboard firmware for Atreus52
+
+#define MATRIX_ROW_PINS { C6, D7, E6, B4, B5 }
+#define MATRIX_COL_PINS { B2, B1, F7, F6, F5, F4, B6, D3, D2, D1, D0, D4, B3 }
+
+#define DIODE_DIRECTION COL2ROW
diff --git a/keyboards/atreus62/keymaps/atreus52/keymap.c b/keyboards/atreus62/keymaps/atreus52/keymap.c
new file mode 100644
index 0000000000..4adfb9e3c8
--- /dev/null
+++ b/keyboards/atreus62/keymaps/atreus52/keymap.c
@@ -0,0 +1,99 @@
+#include "atreus62.h"
+
+// Layers
+#define DVORAK 0
+#define QWERTY 1
+#define RAISE 2
+#define LOWER 3
+#define BDO 4
+#define RESETL 5
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+[DVORAK] = KC_KEYMAP(
+ NO, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, NO, \
+ NO, QUOT, COMM, DOT, P, Y, F, G, C, R, L, NO, \
+ NO, A, O, E, U, I, D, H, T, N, S, NO, \
+ NO, SCLN, Q, J, K, X, B, M, W, V, Z, NO, \
+ NO, FN2, LALT, LCTL, FN1, LSFT, BSPC, ENT, SPC, FN0, LGUI, LEFT, RGHT, NO ),
+
+[QWERTY] = KC_KEYMAP(
+ NO, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, NO, \
+ NO, Q, W, E, R, T, Y, U, I, O, P, NO, \
+ NO, A, S, D, F, G, H, J, K, L, SCLN, NO, \
+ NO, Z, X, C, V, B, N, M, COMM, DOT, SLSH, NO, \
+ NO, FN2, LALT, LCTL, FN1, LSFT, BSPC, ENT, SPC, FN0, LGUI, LEFT, RGHT, NO ),
+
+[RAISE] = KC_KEYMAP(
+ NO, MRWD, MPRV, MPLY, MNXT, MFFD, TRNS, MUTE, VOLD, VOLU, DEL, NO, \
+ NO, TILD, GRV, LCBR, RCBR, DQUO, QUOT, EQL, PLUS, MINS, QUES, NO, \
+ NO, ESC, TAB, LPRN, RPRN, BSLS, SLSH, LEFT, DOWN, UP, RGHT, NO, \
+ NO, TRNS, TRNS, LBRC, RBRC, TRNS, INS, PIPE, UNDS, TRNS, TRNS, NO, \
+ NO, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, FN3, NO ),
+
+[LOWER] = KC_KEYMAP(
+ NO, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, NO, \
+ NO, EXLM, AT, HASH, DLR, PERC, CIRC, AMPR, ASTR, LPRN, RPRN, NO, \
+ NO, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, NO, \
+ NO, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, DOT, TRNS, TRNS, TRNS, NO, \
+ NO, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, NO ),
+
+[BDO] = KC_KEYMAP(
+ NO, ESC, 1, 2, 3, 4, 5, 0, SLSH, U, C, NO, \
+ NO, TAB, Q, W, E, R, 6, Y, I, O, P, NO, \
+ NO, LSFT, A, S, D, F, 7, G, H, J, K, NO, \
+ NO, T, Z, X, C, V, 8, B, N, M, L, NO, \
+ NO, LCTL, SPC, SPC, SPC, SPC, COMM, ENT, 9, NO, NO, NO, FN2, NO ),
+
+[RESETL] = KEYMAP(
+ KC_NO, RESET, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \
+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \
+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \
+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \
+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_FN3,KC_NO )
+
+};
+
+const uint16_t PROGMEM fn_actions[] = {
+ [0] = ACTION_LAYER_MOMENTARY(RAISE), // Raise layer
+ [1] = ACTION_LAYER_MOMENTARY(LOWER), // Lower layer
+ [2] = ACTION_LAYER_TOGGLE(BDO), // BDO layer
+ [3] = ACTION_LAYER_TOGGLE(RESETL) // RESET layer
+};
+
+const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
+{
+ // MACRODOWN only works in this function
+ switch (id) {
+ case 0:
+ if (record->event.pressed) {
+ register_code(KC_RSFT);
+ }
+ else {
+ unregister_code(KC_RSFT);
+ }
+ break;
+ }
+ return MACRO_NONE;
+};
+
+static uint8_t qw_dv_swap_state = 0;
+
+bool process_record_user (uint16_t keycode, keyrecord_t *record) {
+ if (keycode == KC_LGUI) {
+ if (record->event.pressed)
+ qw_dv_swap_state |= 0b00000001;
+ else
+ qw_dv_swap_state &= ~(0b00000001);
+ }
+ if (keycode == KC_LCTL) {
+ if (record->event.pressed)
+ qw_dv_swap_state |= 0b00000010;
+ else
+ qw_dv_swap_state &= ~(0b00000010);
+ }
+
+ if (qw_dv_swap_state == 0b00000011) {
+ layer_invert(DVORAK);
+ }
+ return true;
+}
diff --git a/keyboards/atreus62/keymaps/mneme/README.md b/keyboards/atreus62/keymaps/mneme/README.md
index 7bb5da9fcb..e65bf5de1c 100644
--- a/keyboards/atreus62/keymaps/mneme/README.md
+++ b/keyboards/atreus62/keymaps/mneme/README.md
@@ -21,7 +21,7 @@ It's for Windows (current work forces me to) and Swedish (matter of birth) so ym
## Base layer
-![Base layer](img/base.png)
+![Base layer](http://imgur.com/zTYxnE0)
* The number row doubles as a function row. Short presses produces numbers, long presses produces Fxx
@@ -40,14 +40,14 @@ It's for Windows (current work forces me to) and Swedish (matter of birth) so ym
## Nav layer
-![Nav layer](img/fun.png)
+![Nav layer](http://imgur.com/cbMWVDC)
Basic navigation on the right hand and modifiers close
by for the left. The latter because I tend to use `ctrl+arrows` quite a lot.
## Sym layer
-![Sym layer](img/sym.png)
+![Sym layer](http://imgur.com/n2jmqFU)
* Easy access to most symbols I use on a daily basis. Most common are on the home row, the rest are grouped as best as I could.
diff --git a/keyboards/atreus62/keymaps/mneme/img/base.png b/keyboards/atreus62/keymaps/mneme/img/base.png
deleted file mode 100644
index 3e77a51836..0000000000
--- a/keyboards/atreus62/keymaps/mneme/img/base.png
+++ /dev/null
Binary files differ
diff --git a/keyboards/atreus62/keymaps/mneme/img/fun.png b/keyboards/atreus62/keymaps/mneme/img/fun.png
deleted file mode 100644
index 961a197246..0000000000
--- a/keyboards/atreus62/keymaps/mneme/img/fun.png
+++ /dev/null
Binary files differ
diff --git a/keyboards/atreus62/keymaps/mneme/img/sym.png b/keyboards/atreus62/keymaps/mneme/img/sym.png
deleted file mode 100644
index 5e2c803350..0000000000
--- a/keyboards/atreus62/keymaps/mneme/img/sym.png
+++ /dev/null
Binary files differ