summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorBoo <32691832+BanchouBoo@users.noreply.github.com>2021-05-13 13:51:57 -0400
committerGitHub <noreply@github.com>2021-05-13 10:51:57 -0700
commit2f6618d6991a3cce81be10baba1e9feba3fa3b3c (patch)
tree9abcd23e1c99e2c29de9a1abc228ae9f78b1c7b2 /keyboards
parent5db0a8e2ccdf5b43f5010ef5d3e764d5aa26f64e (diff)
[Keymap] Add iris keymap 'boo' (#12749)
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/keebio/iris/keymaps/boo/config.h26
-rw-r--r--keyboards/keebio/iris/keymaps/boo/keymap.c250
-rw-r--r--keyboards/keebio/iris/keymaps/boo/rules.mk3
3 files changed, 279 insertions, 0 deletions
diff --git a/keyboards/keebio/iris/keymaps/boo/config.h b/keyboards/keebio/iris/keymaps/boo/config.h
new file mode 100644
index 0000000000..6af7d40852
--- /dev/null
+++ b/keyboards/keebio/iris/keymaps/boo/config.h
@@ -0,0 +1,26 @@
+/*
+Copyright 2017 Danny Nguyen <danny@keeb.io>
+
+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/>.
+*/
+
+#pragma once
+
+/* Use I2C or Serial, not both */
+#define USE_SERIAL
+
+/* Select hand configuration */
+#define MASTER_LEFT
+
+#define TAPPING_TERM 200
diff --git a/keyboards/keebio/iris/keymaps/boo/keymap.c b/keyboards/keebio/iris/keymaps/boo/keymap.c
new file mode 100644
index 0000000000..27cbc5daf2
--- /dev/null
+++ b/keyboards/keebio/iris/keymaps/boo/keymap.c
@@ -0,0 +1,250 @@
+/*
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to <http://unlicense.org/>
+*/
+
+#include QMK_KEYBOARD_H
+
+enum layers {
+ _DVORAK,
+ _QWERTY,
+ _CODE,
+};
+
+// work in progress simulation of kakoune behavior
+bool kak_mode = false;
+
+enum tapdances {
+ _LCTLGUI,
+};
+
+enum keycodes {
+ KC_KAK = SAFE_RANGE,
+};
+
+qk_tap_dance_action_t tap_dance_actions[] = {
+ [_LCTLGUI] = ACTION_TAP_DANCE_DOUBLE(KC_LCTL, KC_LGUI),
+};
+
+// Layers
+#define DVORAK DF(_DVORAK)
+#define QWERTY DF(_QWERTY)
+#define CODE MO(_CODE)
+
+// Modifiers
+#define COPY LCTL(KC_C)
+#define PASTE LCTL(KC_V)
+
+// Tapdances
+#define LCTLGUI TD(_LCTLGUI)
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_DVORAK] = LAYOUT(
+// ┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
+ KC_PSCR, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, QWERTY,
+// ├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
+ KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_SLSH,
+// ├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
+ KC_ESC, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_MINS,
+// ├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
+ KC_LGUI, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_PGUP, KC_PGDN, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_ENT,
+// └────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘
+ LCTLGUI, KC_LALT, KC_LSFT, KC_BSPC, KC_SPC, CODE
+// └────────┴────────┴────────┘ └────────┴────────┴────────┘
+ ),
+
+ [_QWERTY] = LAYOUT(
+// ┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, DVORAK,
+// ├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
+ _______, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS,
+// ├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
+ _______, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
+// ├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
+ _______, KC_Z, KC_X, KC_C, KC_V, KC_B, _______, _______, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, _______,
+// └────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘
+ _______, _______, _______, _______, _______, _______
+// └────────┴────────┴────────┘ └────────┴────────┴────────┘
+ ),
+
+
+ [_CODE] = LAYOUT(
+// ┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
+ KC_F12, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
+// ├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
+ _______, KC_LABK, KC_LCBR, KC_LBRC, KC_LPRN, KC_AMPR, KC_AT, KC_MINS, KC_SLSH, KC_DLR, KC_EXLM, KC_BSLS,
+// ├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
+ KC_GRAVE,KC_RABK, KC_RCBR, KC_RBRC, KC_RPRN, KC_PIPE, KC_CIRC, KC_PLUS, KC_ASTR, KC_PERC, KC_UP, KC_EQL,
+// ├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
+ RESET, _______, _______, _______, _______, _______, KC_HOME, KC_END, KC_KAK, COPY, PASTE, KC_LEFT, KC_DOWN, KC_RIGHT,
+// └────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘
+ _______, _______, _______, KC_DEL, _______, _______
+// └────────┴────────┴────────┘ └────────┴────────┴────────┘
+ ),
+};
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ switch (keycode) {
+ case KC_KAK: {
+ if (record->event.pressed) {
+ kak_mode = !kak_mode;
+ return false;
+ }
+ } break;
+ }
+
+ if (kak_mode) {
+ switch (keycode) {
+ case KC_ESC: {
+ if (record->event.pressed) {
+ kak_mode = false;
+ return false;
+ }
+ } break;
+ case KC_I: {
+ if (record->event.pressed) {
+ kak_mode = false;
+ tap_code(KC_LEFT);
+ return false;
+ }
+ } break;
+ case KC_A: {
+ if (record->event.pressed) {
+ kak_mode = false;
+ tap_code(KC_RIGHT);
+ return false;
+ }
+ } break;
+ case KC_W: {
+ if (record->event.pressed) {
+ uint8_t mods = get_mods();
+ if ((mods & MOD_MASK_SHIFT) == 0)
+ tap_code(KC_RIGHT);
+ set_mods(MOD_MASK_CS);
+ tap_code(KC_RIGHT);
+ set_mods(mods);
+ return false;
+ }
+ } break;
+ case KC_B: {
+ if (record->event.pressed) {
+ uint8_t mods = get_mods();
+ if ((mods & MOD_MASK_SHIFT) == 0)
+ tap_code(KC_LEFT);
+ set_mods(MOD_MASK_CS);
+ tap_code(KC_LEFT);
+ set_mods(mods);
+ return false;
+ }
+ } break;
+ case KC_H: {
+ if (record->event.pressed) {
+ if ((get_mods() & MOD_MASK_ALT) == 0)
+ tap_code(KC_LEFT);
+ else
+ tap_code(KC_HOME);
+ return false;
+ }
+ } break;
+ case KC_J: {
+ if (record->event.pressed) {
+ tap_code(KC_DOWN);
+ return false;
+ }
+ } break;
+ case KC_K: {
+ if (record->event.pressed) {
+ tap_code(KC_UP);
+ return false;
+ }
+ } break;
+ case KC_L: {
+ if (record->event.pressed) {
+ if ((get_mods() & MOD_MASK_ALT) == 0)
+ tap_code(KC_RIGHT);
+ else
+ tap_code(KC_END);
+ return false;
+ }
+ } break;
+ case KC_X: {
+ if (record->event.pressed) {
+ uint8_t mods = get_mods();
+ tap_code(KC_HOME);
+ set_mods(MOD_MASK_SHIFT);
+ tap_code(KC_END);
+ set_mods(mods);
+ return false;
+ }
+ } break;
+ case KC_Y: {
+ if (record->event.pressed) {
+ tap_code16(KC_COPY);
+ return false;
+ }
+ } break;
+ case KC_D: {
+ if (record->event.pressed) {
+ tap_code16(KC_COPY);
+ tap_code(KC_BSPC);
+ return false;
+ }
+ } break;
+ case KC_C: {
+ if (record->event.pressed) {
+ tap_code(KC_BSPC);
+ kak_mode = false;
+ return false;
+ }
+ } break;
+ case KC_P: {
+ if (record->event.pressed) {
+ if ((get_mods() & MOD_MASK_SHIFT) == 0)
+ tap_code(KC_RIGHT);
+ else
+ tap_code(KC_LEFT);
+ tap_code16(KC_PSTE);
+ return false;
+ }
+ } break;
+ case KC_R: {
+ if (record->event.pressed) {
+ tap_code16(KC_PSTE);
+ return false;
+ }
+ } break;
+ case KC_U: {
+ if (record->event.pressed) {
+ if ((get_mods() & MOD_MASK_SHIFT) == 0)
+ tap_code16(LCTL(KC_Z));
+ else
+ tap_code16(LCTL(KC_Y));
+ return false;
+ }
+ } break;
+ }
+ }
+ return true;
+}
diff --git a/keyboards/keebio/iris/keymaps/boo/rules.mk b/keyboards/keebio/iris/keymaps/boo/rules.mk
new file mode 100644
index 0000000000..1cd3a2ea25
--- /dev/null
+++ b/keyboards/keebio/iris/keymaps/boo/rules.mk
@@ -0,0 +1,3 @@
+RGBLIGHT_ENABLE = no
+BACKLIGHT_ENABLE = no
+TAP_DANCE_ENABLE = yes