aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/atreus
diff options
context:
space:
mode:
authorAlex Schroeder <alex@gnu.org>2019-08-31 02:50:11 +0200
committerDrashna Jaelre <drashna@live.com>2019-08-30 17:50:11 -0700
commitbbc5156781d8e3bd547ee4424bc94e4de27288b1 (patch)
tree3a57d4b4f7ee0a6e693934365ce8612986c93162 /keyboards/atreus
parent42977d25fc1445ff1fdc6372511ff9ba95741565 (diff)
downloadfirmware-bbc5156781d8e3bd547ee4424bc94e4de27288b1.tar.gz
firmware-bbc5156781d8e3bd547ee4424bc94e4de27288b1.tar.bz2
firmware-bbc5156781d8e3bd547ee4424bc94e4de27288b1.zip
[Keymap] Workman layout for Atreus keyboard (#6606)
Diffstat (limited to 'keyboards/atreus')
-rw-r--r--keyboards/atreus/keymaps/workman/README.md33
-rw-r--r--keyboards/atreus/keymaps/workman/config.h3
-rw-r--r--keyboards/atreus/keymaps/workman/keymap.c76
3 files changed, 112 insertions, 0 deletions
diff --git a/keyboards/atreus/keymaps/workman/README.md b/keyboards/atreus/keymaps/workman/README.md
new file mode 100644
index 000000000..249833a99
--- /dev/null
+++ b/keyboards/atreus/keymaps/workman/README.md
@@ -0,0 +1,33 @@
+Workman for Atreus
+==================
+
+This is the Workman layout for Atreus. You can get PDF and SVG files
+for the keymap from the author's
+[website](https://alexschroeder.ch/pdfs/workman/).
+
+```
+ q d r w b || j f u p ;
+ a s h t g || y n e o i
+ z x m c v || k l , . /
+ esc tab super shift bksp ctrl || alt space RS LW ' ret
+
+
+Raised layer (RS)
+
+ ! @ { } | || - 7 8 9 *
+ # $ ( ) ` || . 4 5 6 +
+ % ^ [ ] ~ || & 1 2 3 \
+ menu caps < > del || _ 0 =
+
+
+Lower layer (LW)
+
+ insert home up end pgup || vol+ F7 F8 F9 F10
+ del left down right pgdn || vol- F4 F5 F6 F11
+ || mute F1 F2 F3 F12
+ || – ¨ reset
+```
+
+A note on the EN DASH and DIARESIS mappings on the lower layer: these
+only work if you set up CAPS as your *Multi Key* because they
+effectively send `<CAPS> - - .` and `<CAPS> "`, respectively.
diff --git a/keyboards/atreus/keymaps/workman/config.h b/keyboards/atreus/keymaps/workman/config.h
new file mode 100644
index 000000000..cf0b5e2ac
--- /dev/null
+++ b/keyboards/atreus/keymaps/workman/config.h
@@ -0,0 +1,3 @@
+#define TAPPING_TOGGLE 1
+#define ONESHOT_TAP_TOGGLE 1
+#define PCBDOWN 1
diff --git a/keyboards/atreus/keymaps/workman/keymap.c b/keyboards/atreus/keymaps/workman/keymap.c
new file mode 100644
index 000000000..aef2c5959
--- /dev/null
+++ b/keyboards/atreus/keymaps/workman/keymap.c
@@ -0,0 +1,76 @@
+#include QMK_KEYBOARD_H
+
+// Each layer gets a name for readability, which is then used in the keymap matrix below.
+// The underscores don't mean anything - you can have a layer called STUFF or any other name.
+// Layer names don't all need to be of the same length, obviously, and you can also skip them
+// entirely and just use numbers.
+#define _QW 0
+#define _RS 1
+#define _LW 2
+
+#define OSM_SFT OSM(MOD_LSFT)
+
+/* In your system, make sure Caps Lock acts as the Compose Key, also known as the Multi Key. If so, then the quote on
+ * the lower layer acts as macro to enter ¨ */
+enum custom_keycodes {
+ DIAERESIS = SAFE_RANGE,
+ EN_DASH
+};
+
+ /* Basic layer (L0)
+ * q d r w b || j f u p ;
+ * a s h t g || y n e o i
+ * z x m c v || k l , . /
+ * esc tab super shift bksp ctrl || alt space RS LW ' ret
+ */
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_QW] = LAYOUT( /* Workman */
+ KC_Q, KC_D, KC_R, KC_W, KC_B, KC_J, KC_F, KC_U, KC_P, KC_SCLN,
+ KC_A, KC_S, KC_H, KC_T, KC_G, KC_Y, KC_N, KC_E, KC_O, KC_I,
+ KC_Z, KC_X, KC_M, KC_C, KC_V, KC_K, KC_L, KC_COMM, KC_DOT, KC_SLSH,
+ KC_ESC, KC_TAB, KC_LGUI, OSM_SFT, KC_BSPC, KC_LCTL, KC_LALT, KC_SPC, MO(_RS), MO(_LW), KC_QUOT, KC_ENT
+ ),
+
+ /* Raised layer (RS)
+ * ! @ { } | || - 7 8 9 *
+ * # $ ( ) ` || . 4 5 6 +
+ * % ^ [ ] ~ || & 1 2 3 \
+ * menu caps < > del || _ 0 =
+ */
+
+ [_RS] = LAYOUT( /* [> RAISE <] */
+ KC_EXLM, KC_AT, KC_LCBR, KC_RCBR, KC_PIPE, KC_MINS, KC_7, KC_8, KC_9, KC_ASTR,
+ KC_HASH, KC_DLR, KC_LPRN, KC_RPRN, KC_GRV, KC_DOT, KC_4, KC_5, KC_6, KC_PLUS,
+ KC_PERC, KC_CIRC, KC_LBRC, KC_RBRC, KC_TILD, KC_AMPR, KC_1, KC_2, KC_3, KC_BSLS,
+ KC_MENU, KC_CAPS, KC_LT, KC_GT, KC_DEL, KC_TRNS, KC_TRNS, KC_UNDS, KC_TRNS, KC_TRNS, KC_0, KC_EQL ),
+
+ /* Lower layer (LW)
+ * insert home up end pgup || vol+ F7 F8 F9 F10
+ * del left down right pgdn || vol- F4 F5 F6 F11
+ * || mute F1 F2 F3 F12
+ * || – ¨ reset
+ */
+
+ [_LW] = LAYOUT( /* [> LOWER <] */
+ KC_INS, KC_HOME, KC_UP, KC_END, KC_PGUP, KC_VOLU, KC_F7, KC_F8, KC_F9, KC_F10,
+ KC_DELT, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, KC_VOLD, KC_F4, KC_F5, KC_F6, KC_F11,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MUTE, KC_F1, KC_F2, KC_F3, KC_F12,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, EN_DASH, KC_TRNS, KC_TRNS, DIAERESIS, RESET )
+};
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ if (record->event.pressed) {
+ switch(keycode) {
+ case DIAERESIS:
+ // assuming KC_CAPS is your Multi Key
+ SEND_STRING(SS_TAP(X_CAPSLOCK)"\"");
+ return false;
+ case EN_DASH:
+ // assuming KC_CAPS is your Multi Key
+ SEND_STRING(SS_TAP(X_CAPSLOCK)"--.");
+ return false;
+ }
+ }
+ return true;
+};