summaryrefslogtreecommitdiff
path: root/keyboards/obosob/steal_this_keyboard/keymaps/default
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/obosob/steal_this_keyboard/keymaps/default')
-rw-r--r--keyboards/obosob/steal_this_keyboard/keymaps/default/config.h39
-rw-r--r--keyboards/obosob/steal_this_keyboard/keymaps/default/keymap.c92
2 files changed, 131 insertions, 0 deletions
diff --git a/keyboards/obosob/steal_this_keyboard/keymaps/default/config.h b/keyboards/obosob/steal_this_keyboard/keymaps/default/config.h
new file mode 100644
index 0000000000..14ec0792b1
--- /dev/null
+++ b/keyboards/obosob/steal_this_keyboard/keymaps/default/config.h
@@ -0,0 +1,39 @@
+/*
+Copyright 2021 Obosob <obosob@riseup.net>
+
+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
+// Set the mouse settings to a comfortable speed/accuracy trade-off,
+// assuming a screen refresh rate of 60 Htz or higher
+// The default is 50. This makes the mouse ~3 times faster and more accurate
+#define MOUSEKEY_INTERVAL 16
+// The default is 20. Since we made the mouse about 3 times faster with the previous setting,
+// give it more time to accelerate to max speed to retain precise control over short distances.
+#define MOUSEKEY_TIME_TO_MAX 40
+// The default is 300. Let's try and make this as low as possible while keeping the cursor responsive
+#define MOUSEKEY_DELAY 100
+// It makes sense to use the same delay for the mouseweel
+#define MOUSEKEY_WHEEL_DELAY 100
+// The default is 100
+#define MOUSEKEY_WHEEL_INTERVAL 50
+// The default is 40
+#define MOUSEKEY_WHEEL_TIME_TO_MAX 100
+
+// Pick good defaults for enabling homerow modifiers
+#define TAPPING_TERM 200
+#define PERMISSIVE_HOLD
+#define IGNORE_MOD_TAP_INTERRUPT
+#define TAPPING_FORCE_HOLD
diff --git a/keyboards/obosob/steal_this_keyboard/keymaps/default/keymap.c b/keyboards/obosob/steal_this_keyboard/keymaps/default/keymap.c
new file mode 100644
index 0000000000..32834c16b1
--- /dev/null
+++ b/keyboards/obosob/steal_this_keyboard/keymaps/default/keymap.c
@@ -0,0 +1,92 @@
+/* Copyright 2021 Obosob <obosob@riseup.net>
+
+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/>.
+*/
+
+#include QMK_KEYBOARD_H
+
+#define HM_A LSFT_T(KC_A)
+#define HM_S LT(5,KC_S)
+#define HM_D LT(1,KC_D)
+#define HM_F LT(3,KC_F)
+
+#define HM_J LT(4,KC_J)
+#define HM_K LT(2,KC_K)
+#define HM_L LT(6,KC_L)
+#define HM_SCLN LSFT_T(KC_SCLN)
+
+#define MT_X LCTL_T(KC_X)
+#define MT_C LALT_T(KC_C)
+#define MT_SPC LT(7,KC_SPC)
+#define MT_COMM LALT_T(KC_COMM)
+#define MT_DOT LCTL_T(KC_DOT)
+
+#define CTL_ALT LCTL(KC_LALT)
+#define CT_AL_S LCA(KC_LSFT)
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT_split_3x5_2(
+KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
+HM_A, HM_S, HM_D, HM_F, KC_G, KC_H, HM_J, HM_K, HM_L, HM_SCLN,
+KC_Z, MT_X, MT_C, KC_V, KC_B, KC_N, KC_M, MT_COMM, MT_DOT, KC_SLSH,
+ KC_P0, KC_BSPC, MT_SPC, KC_P1
+ ),
+ [1] = LAYOUT_split_3x5_2(
+_______, _______, _______, _______, _______, _______, KC_BTN1, KC_WH_U, KC_BTN2, _______,
+_______, KC_BTN2, XXXXXXX, KC_BTN1, _______, _______, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R,
+_______, _______, _______, _______, _______, _______, KC_WH_L, KC_WH_D, KC_WH_R, _______,
+ _______, _______, _______, _______
+ ),
+ [2] = LAYOUT_split_3x5_2(
+_______, _______, KC_PGUP, _______, _______, _______, _______, _______, _______, _______,
+KC_LEFT, KC_UP, KC_DOWN, KC_RGHT, _______, _______, KC_LGUI, XXXXXXX, CTL_ALT, CT_AL_S,
+_______, KC_HOME, KC_PGDN, KC_END, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______
+ ),
+ [3] = LAYOUT_split_3x5_2(
+_______, _______, _______, _______, _______, _______, KC_UNDS, KC_PIPE, KC_QUOT, _______,
+KC_CIRC, KC_ASTR, KC_AMPR, XXXXXXX, _______, KC_HASH, KC_TILD, KC_SLSH, KC_DQUO, KC_DLR,
+_______, _______, _______, _______, _______, _______, KC_MINS, KC_BSLS, KC_GRV, _______,
+ _______, _______, _______, _______
+ ),
+ [4] = LAYOUT_split_3x5_2(
+_______, KC_COLN, KC_LT, KC_GT, KC_SCLN, _______, _______, _______, _______, _______,
+KC_LCBR, KC_RCBR, KC_LPRN, KC_RPRN, KC_AT, _______, XXXXXXX, KC_EQL, KC_PLUS, KC_PERC,
+_______, KC_EXLM, KC_LBRC, KC_RBRC, _______, _______, _______, _______, _______, _______,
+ KC_VOLD, _______, _______, KC_VOLU
+ ),
+ [5] = LAYOUT_split_3x5_2(
+_______, _______, _______, _______, _______, _______, KC_F7, KC_F8, KC_F9, KC_F10,
+_______, XXXXXXX, CTL_ALT, _______, _______, _______, KC_F4, KC_F5, KC_F6, KC_F11,
+_______, _______, _______, _______, _______, _______, KC_F1, KC_F2, KC_F3, KC_F12,
+ _______, _______, _______, _______
+ ),
+ [6] = LAYOUT_split_3x5_2(
+KC_PSLS, KC_7, KC_8, KC_9, KC_PPLS, _______, _______, _______, _______, _______,
+KC_0, KC_1, KC_2, KC_3, KC_PMNS, _______, _______, _______, XXXXXXX, _______,
+KC_PAST, KC_4, KC_5, KC_6, KC_PEQL, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______
+ ),
+#undef MT_COMM
+#define MT_COMM RALT_T(KC_COMM)
+#undef MT_DOT
+#define MT_DOT RCTL_T(KC_DOT)
+ [7] = LAYOUT_split_3x5_2(
+_______, _______, KC_COLN, KC_ESC, _______, _______, _______, _______, _______, KC_DEL,
+_______, KC_PERC, KC_SLSH, KC_ENT, _______, DF(1), KC_LGUI, _______, _______, _______,
+_______, _______, _______, KC_EXLM, _______, DF(0), _______, MT_COMM, MT_DOT, RESET,
+ _______, KC_TAB, XXXXXXX, _______
+ )
+};
+