aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/planck
diff options
context:
space:
mode:
authorDavid Rambo <davrambo@gmail.com>2018-04-15 12:46:26 -0400
committerDrashna Jaelre <drashna@live.com>2018-04-15 09:46:26 -0700
commit32fd5e4f61d50df6a5828b258d995a5da242600b (patch)
treeb4355e38f2b5a0d51e43b57a0b04fdd26baffa57 /keyboards/planck
parentfe8b9d0d0f2f137903ca17eefa8fa301a9c5dd75 (diff)
downloadfirmware-32fd5e4f61d50df6a5828b258d995a5da242600b.tar.gz
firmware-32fd5e4f61d50df6a5828b258d995a5da242600b.tar.bz2
firmware-32fd5e4f61d50df6a5828b258d995a5da242600b.zip
keymaps for Iris, Planck, Satan, and XD75 (#2747)
* DRambo Planck keymap in Colemak * DRambo Planck keymap in Colemak * Satan GH60 keymap for Bri QWERTY layout with Navigation layer toggled with "Caps Lock" key. * xd75 keymap in Colemak for Mac and Win * DRambo Planck keymap in Colemak * Satan GH60 keymap for Bri QWERTY layout with Navigation layer toggled with "Caps Lock" key. * xd75 keymap in Colemak for Mac and Win * Added Iris Colemak layout for Mac, Windows, and Gaming. * changed comment text * DRambo Planck keymap in Colemak * Satan GH60 keymap for Bri QWERTY layout with Navigation layer toggled with "Caps Lock" key. * xd75 keymap in Colemak for Mac and Win * Added Iris Colemak layout for Mac, Windows, and Gaming. * changed comment text * Added Iris keymap from DavidRambo * Added planck keymap from DavidRambo * Added xd75 keymap from DavidRambo * Added readme
Diffstat (limited to 'keyboards/planck')
-rw-r--r--keyboards/planck/keymaps/davidrambo/config.h9
-rw-r--r--keyboards/planck/keymaps/davidrambo/keymap.c98
-rw-r--r--keyboards/planck/keymaps/davidrambo/rules.mk6
-rw-r--r--keyboards/planck/keymaps/rambo/config.h9
-rw-r--r--keyboards/planck/keymaps/rambo/keymap.c98
-rw-r--r--keyboards/planck/keymaps/rambo/rules.mk6
6 files changed, 226 insertions, 0 deletions
diff --git a/keyboards/planck/keymaps/davidrambo/config.h b/keyboards/planck/keymaps/davidrambo/config.h
new file mode 100644
index 000000000..c3bebf579
--- /dev/null
+++ b/keyboards/planck/keymaps/davidrambo/config.h
@@ -0,0 +1,9 @@
+#ifndef CONFIG_USER_H
+
+#define CONFIG_USER_H
+#define TAPPING_TERM 200
+#include "../../config.h"
+#define PERMISSIVE_HOLD
+#define PREVENT_STUCK_MODIFIERS
+
+#endif \ No newline at end of file
diff --git a/keyboards/planck/keymaps/davidrambo/keymap.c b/keyboards/planck/keymaps/davidrambo/keymap.c
new file mode 100644
index 000000000..37e22afb9
--- /dev/null
+++ b/keyboards/planck/keymaps/davidrambo/keymap.c
@@ -0,0 +1,98 @@
+#include "planck.h"
+
+//alias for clarity in layering
+#define _______ KC_TRNS
+#define A_BSPC LALT(KC_BSPC)
+#define A_LEFT LALT(KC_LEFT)
+#define A_RGHT LALT(KC_RGHT)
+#define C_TAB LCTL(KC_TAB)
+#define GSL LGUI(S(KC_LEFT))
+#define GSR LGUI(S(KC_RGHT))
+#define G_TAB LGUI(KC_TAB)
+#define G_GRV LGUI(KC_GRV) // MAC: switch between windows within an application
+#define SftEnt SFT_T(KC_ENT)
+#define NAV LT(2, KC_TAB)
+
+#define _COLEMAK 0
+#define _SYMBOL 1
+#define _NAVIGATION 2
+
+//tapdance declarations
+enum {
+ SFT_LCK
+};
+
+//alias for tapdance
+#define SftLck TD(SFT_LCK)
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+/* Colemak
+ * ,-----------------------------------------------------------------------------------.
+ * | ESC` | Q | W | F | P | G | J | L | U | Y | ; | Bksp |
+ * |------+------+------+------+------+-------------+------+------+------+------+------|
+ * | Tab | A | R | S | T | D | H | N | E | I | O | " |
+ * |------+------+------+------+------+------|------+------+------+------+------+------|
+ * |SftLck| Z | X | C | V | B | K | M | , | . | /? |SftEnt|
+ * |------+------+------+------+------+------+------+------+------+------+------+------|
+ * | Del | GUI | Ctrl | Alt | GUI | Space |Symbol| Left | Down | Up |Right |
+ * `-----------------------------------------------------------------------------------'
+*/
+
+[_COLEMAK] = {
+ {KC_GESC, KC_Q , KC_W , KC_F , KC_P , KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC},
+ {NAV , KC_A , KC_R , KC_S , KC_T , KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT},
+ {SftLck , KC_Z , KC_X , KC_C , KC_V , KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, SftEnt },
+ {KC_DEL , KC_LGUI, KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_SPC, MO(1), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT}
+ },
+
+/* Symbol
+ * ,-----------------------------------------------------------------------------------.
+ * | [ | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | ] |
+ * |------+------+------+------+------+-------------+------+------+------+------+------|
+ * | \| | ! | @ | # | $ | % | ^ | & | * | ( | ) | =+ |
+ * |------+------+------+------+------+------|------+------+------+------+------+------|
+ * | | Home | End | ScUp | ScDn | F1 | F2 | -_ |Pg Up | | / | |
+ * |------+------+------+------+------+------+------+------+------+------+------+------|
+ * | `~ | | | |Alt(Bk)| | |Pg Dn | Vol- | Vol+ | |
+ * `-----------------------------------------------------------------------------------'
+ */
+[_SYMBOL] = {
+ {KC_LBRC, KC_1, KC_2, KC_3, KC_4 , KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_RBRC},
+ {KC_BSLS, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_EQL },
+ {_______, KC_HOME, KC_END, KC_WH_U, KC_WH_D,KC_F1 , KC_F2 , KC_MINS, KC_PGUP, _______, _______, _______},
+ {KC_GRV, _______, _______, _______, A_BSPC, _______, _______, _______, KC_PGDN, KC_VOLD, KC_VOLU, KC_MUTE}
+ },
+
+/* Navigation*/
+
+[_NAVIGATION] = {
+ {_______, _______, _______, _______, _______, _______, C_TAB , A_LEFT, KC_UP, A_RGHT , KC_DEL , _______},
+ {_______, _______, _______, _______, _______, _______, GSL , KC_LEFT, KC_DOWN, KC_RGHT, GSR , _______},
+ {_______, _______, _______, _______, _______, _______, G_TAB , KC_HOME, _______, KC_END, G_GRV , _______},
+ {RESET , _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______}
+}
+};
+
+// Shift vs capslock function. From bbaserdem's Planck keymap.
+void caps_tap (qk_tap_dance_state_t *state, void *user_data) {
+ if (state->count == 1) {
+ register_code (KC_LSFT);
+ } else if (state->count == 2) {
+ unregister_code (KC_LSFT);
+ register_code (KC_CAPS);
+ }
+}
+void caps_tap_end (qk_tap_dance_state_t *state, void *user_data) {
+ if (state->count == 1) {
+ unregister_code (KC_LSFT);
+ } else {
+ unregister_code (KC_CAPS);
+ }
+}
+
+//Tap Dance Definitions
+qk_tap_dance_action_t tap_dance_actions[] = {
+ //Tap once for Shift, twice for Caps Lock
+ [SFT_LCK] = ACTION_TAP_DANCE_FN_ADVANCED( caps_tap, NULL, caps_tap_end )
+}; \ No newline at end of file
diff --git a/keyboards/planck/keymaps/davidrambo/rules.mk b/keyboards/planck/keymaps/davidrambo/rules.mk
new file mode 100644
index 000000000..ffa9b870a
--- /dev/null
+++ b/keyboards/planck/keymaps/davidrambo/rules.mk
@@ -0,0 +1,6 @@
+TAP_DANCE_ENABLE = yes
+MOUSEKEY_ENABLE = yes
+
+ifndef QUANTUM_DIR
+ include ../../../../Makefile
+endif \ No newline at end of file
diff --git a/keyboards/planck/keymaps/rambo/config.h b/keyboards/planck/keymaps/rambo/config.h
new file mode 100644
index 000000000..c3bebf579
--- /dev/null
+++ b/keyboards/planck/keymaps/rambo/config.h
@@ -0,0 +1,9 @@
+#ifndef CONFIG_USER_H
+
+#define CONFIG_USER_H
+#define TAPPING_TERM 200
+#include "../../config.h"
+#define PERMISSIVE_HOLD
+#define PREVENT_STUCK_MODIFIERS
+
+#endif \ No newline at end of file
diff --git a/keyboards/planck/keymaps/rambo/keymap.c b/keyboards/planck/keymaps/rambo/keymap.c
new file mode 100644
index 000000000..37e22afb9
--- /dev/null
+++ b/keyboards/planck/keymaps/rambo/keymap.c
@@ -0,0 +1,98 @@
+#include "planck.h"
+
+//alias for clarity in layering
+#define _______ KC_TRNS
+#define A_BSPC LALT(KC_BSPC)
+#define A_LEFT LALT(KC_LEFT)
+#define A_RGHT LALT(KC_RGHT)
+#define C_TAB LCTL(KC_TAB)
+#define GSL LGUI(S(KC_LEFT))
+#define GSR LGUI(S(KC_RGHT))
+#define G_TAB LGUI(KC_TAB)
+#define G_GRV LGUI(KC_GRV) // MAC: switch between windows within an application
+#define SftEnt SFT_T(KC_ENT)
+#define NAV LT(2, KC_TAB)
+
+#define _COLEMAK 0
+#define _SYMBOL 1
+#define _NAVIGATION 2
+
+//tapdance declarations
+enum {
+ SFT_LCK
+};
+
+//alias for tapdance
+#define SftLck TD(SFT_LCK)
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+/* Colemak
+ * ,-----------------------------------------------------------------------------------.
+ * | ESC` | Q | W | F | P | G | J | L | U | Y | ; | Bksp |
+ * |------+------+------+------+------+-------------+------+------+------+------+------|
+ * | Tab | A | R | S | T | D | H | N | E | I | O | " |
+ * |------+------+------+------+------+------|------+------+------+------+------+------|
+ * |SftLck| Z | X | C | V | B | K | M | , | . | /? |SftEnt|
+ * |------+------+------+------+------+------+------+------+------+------+------+------|
+ * | Del | GUI | Ctrl | Alt | GUI | Space |Symbol| Left | Down | Up |Right |
+ * `-----------------------------------------------------------------------------------'
+*/
+
+[_COLEMAK] = {
+ {KC_GESC, KC_Q , KC_W , KC_F , KC_P , KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC},
+ {NAV , KC_A , KC_R , KC_S , KC_T , KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT},
+ {SftLck , KC_Z , KC_X , KC_C , KC_V , KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, SftEnt },
+ {KC_DEL , KC_LGUI, KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_SPC, MO(1), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT}
+ },
+
+/* Symbol
+ * ,-----------------------------------------------------------------------------------.
+ * | [ | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | ] |
+ * |------+------+------+------+------+-------------+------+------+------+------+------|
+ * | \| | ! | @ | # | $ | % | ^ | & | * | ( | ) | =+ |
+ * |------+------+------+------+------+------|------+------+------+------+------+------|
+ * | | Home | End | ScUp | ScDn | F1 | F2 | -_ |Pg Up | | / | |
+ * |------+------+------+------+------+------+------+------+------+------+------+------|
+ * | `~ | | | |Alt(Bk)| | |Pg Dn | Vol- | Vol+ | |
+ * `-----------------------------------------------------------------------------------'
+ */
+[_SYMBOL] = {
+ {KC_LBRC, KC_1, KC_2, KC_3, KC_4 , KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_RBRC},
+ {KC_BSLS, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_EQL },
+ {_______, KC_HOME, KC_END, KC_WH_U, KC_WH_D,KC_F1 , KC_F2 , KC_MINS, KC_PGUP, _______, _______, _______},
+ {KC_GRV, _______, _______, _______, A_BSPC, _______, _______, _______, KC_PGDN, KC_VOLD, KC_VOLU, KC_MUTE}
+ },
+
+/* Navigation*/
+
+[_NAVIGATION] = {
+ {_______, _______, _______, _______, _______, _______, C_TAB , A_LEFT, KC_UP, A_RGHT , KC_DEL , _______},
+ {_______, _______, _______, _______, _______, _______, GSL , KC_LEFT, KC_DOWN, KC_RGHT, GSR , _______},
+ {_______, _______, _______, _______, _______, _______, G_TAB , KC_HOME, _______, KC_END, G_GRV , _______},
+ {RESET , _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______}
+}
+};
+
+// Shift vs capslock function. From bbaserdem's Planck keymap.
+void caps_tap (qk_tap_dance_state_t *state, void *user_data) {
+ if (state->count == 1) {
+ register_code (KC_LSFT);
+ } else if (state->count == 2) {
+ unregister_code (KC_LSFT);
+ register_code (KC_CAPS);
+ }
+}
+void caps_tap_end (qk_tap_dance_state_t *state, void *user_data) {
+ if (state->count == 1) {
+ unregister_code (KC_LSFT);
+ } else {
+ unregister_code (KC_CAPS);
+ }
+}
+
+//Tap Dance Definitions
+qk_tap_dance_action_t tap_dance_actions[] = {
+ //Tap once for Shift, twice for Caps Lock
+ [SFT_LCK] = ACTION_TAP_DANCE_FN_ADVANCED( caps_tap, NULL, caps_tap_end )
+}; \ No newline at end of file
diff --git a/keyboards/planck/keymaps/rambo/rules.mk b/keyboards/planck/keymaps/rambo/rules.mk
new file mode 100644
index 000000000..ffa9b870a
--- /dev/null
+++ b/keyboards/planck/keymaps/rambo/rules.mk
@@ -0,0 +1,6 @@
+TAP_DANCE_ENABLE = yes
+MOUSEKEY_ENABLE = yes
+
+ifndef QUANTUM_DIR
+ include ../../../../Makefile
+endif \ No newline at end of file