Compare commits

...

20 Commits

Author SHA1 Message Date
jay a9883c5676 hope this works 2023-07-07 16:12:54 -03:00
jay 6f8605a583 fixed email address 2023-07-07 15:27:18 -03:00
jay 282a2ada81 Merge branch 'dev_branch' of https://github.com/jmwtsn/qmk_firmware into dev_branch 2023-07-07 15:06:24 -03:00
jay 1312beac92 Na na na na na na na nana 2022-02-17 15:12:48 -04:00
jay 0ea9f6fc66 Na na na na na na na nana 2022-02-17 12:09:29 -04:00
jay f2a1653b2b Minor changes 2022-02-17 08:46:58 -04:00
jay df93f6142d Removed more Turbo Click code 2022-02-17 08:41:05 -04:00
jay cc07924d31 Tidying 2022-02-16 13:16:55 -04:00
jay 7b47033773 Commented out LOCKING_SUPPORT_ENABLE 2022-02-16 12:53:50 -04:00
jay fc6e2bc549 closed comment 2022-02-16 12:44:45 -04:00
jay dbd5ea1e88 Commented out LOCKING_RESYNC_ENABLE 2022-02-16 12:27:51 -04:00
Jay 9a4b00d034 Removed outdated comments. 2022-02-16 12:15:41 -04:00
jay 05125d1a4f I'm hungry. Are you hungry? 2022-02-16 12:10:37 -04:00
jay 9c6cbfdbc5 Merge branch 'dev_branch' of https://github.com/jmwtsn/qmk_firmware into dev_branch 2022-02-14 17:09:42 -04:00
jay 3333329b5c Minor tidying 2022-02-14 17:08:23 -04:00
Jay fafdedade9 Deleted some commented out code from macros 2022-02-14 17:07:47 -04:00
jay f2371ed352 Beginning to adapt Getreuer's Mouse Turbo Click into a mouse jiggler. 2022-02-14 16:06:06 -04:00
jay 1921fc3c9a Deleted more DIYCharles mouse jiggler code, added more getreuer turbo code 2022-02-14 10:54:26 -04:00
jay af5f24a4f1 Added code for getreuer mouse_turbo_click 2022-02-14 09:59:15 -04:00
jay 475187d9e9 Removed code for DIYCHarles mouse jiggler 2022-02-14 09:34:48 -04:00
8 changed files with 482 additions and 54 deletions
+27 -9
View File
@@ -16,15 +16,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "config_common.h"
/* USB Device descriptor parameter */
#define VENDOR_ID 0x7807
#define PRODUCT_ID 0xDCCB
#define DEVICE_VER 0x0001
#define MANUFACTURER gtips
#define PRODUCT reviung41
#define VENDOR_ID 0x7807
#define PRODUCT_ID 0xDCCB
#define DEVICE_VER 0x0001
#define MANUFACTURER gtips
#define PRODUCT Reviung41
/* key matrix size */
#define MATRIX_ROWS 7
@@ -67,7 +67,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
// /*== all animations enable ==*/
#define RGBLIGHT_ANIMATIONS
#define RGBLIGHT_ANIMATIONS
// /*== or choose animations ==*/
// #define RGBLIGHT_EFFECT_BREATHING
// #define RGBLIGHT_EFFECT_RAINBOW_MOOD
@@ -93,9 +93,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//#define MATRIX_HAS_GHOST
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
// #define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
// #define LOCKING_RESYNC_ENABLE
/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
* This is userful for the Windows task manager shortcut (ctrl+shift+esc).
@@ -144,3 +144,21 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Bootmagic Lite key configuration */
// #define BOOTMAGIC_LITE_ROW 0
// #define BOOTMAGIC_LITE_COLUMN 0
// Configure the global tapping term (default: 200ms)
#define TAPPING_TERM 210
// Prevent normal rollover on alphas from accidentally triggering mods.
#define IGNORE_MOD_TAP_INTERRUPT
#define MK_3_SPEED
#define MK_MOMENTARY_ACCEL
//#ifdef OLED_DRIVER_ENABLE
#define OLED_DISPLAY_128X32
#define OLED_BRIGHTNESS 64
#define OLED_TIMEOUT 60000
#define OLED_FADE_OUT
#define OLED_FADE_OUT_INTERVAL 10
#define OLED_SCROLL_TIMEOUT 1
//#endif
@@ -0,0 +1,112 @@
// Copyright 2022 Google LLC, Copyright 2022 Jay Watson jmwtsn@gmail.com
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
//
// Addapted from Pascal Getreuer's Mouse Turbo Click
// For full documentation of Pascal Getreuer's original project, see
// https://getreuer.info/posts/keyboards/mouse-turbo-click
#include "bel_air/mr_smith.h"
// This library relies on that mouse keys and the deferred execution API are
// enabled, which we check for here. Enable them in you rules.mk by setting:
// MOUSEKEY_ENABLE = yes
// DEFERRED_EXEC_ENABLE = yes
#if !defined(MOUSEKEY_ENABLE)
#error "get_jiggy_with_it: Please set `MOUSEKEY_ENABLE = yes` in rules.mk."
#elif !defined(DEFERRED_EXEC_ENABLE)
#error "get_jiggy_with_it: Please set `DEFERRED_EXEC_ENABLE = yes` in rules.mk."
#else
// The click period in milliseconds. For instance a period of 200 ms would be 5
// clicks per second. Smaller period implies faster clicking.
//
// WARNING: The keyboard might become unresponsive if the period is too small.
// I suggest setting this no smaller than 50.
#define JIGGY_PERIOD_MS 120000
static deferred_token click_token = INVALID_DEFERRED_TOKEN;
static bool click_registered = false;
// Callback used with deferred execution. It alternates between tapping left
// and right mouse keys.
static uint32_t get_jiggy_callback(uint32_t trigger_time, void *cb_arg) {
if (click_registered) {
tap_code16(KC_MS_L);
click_registered = false;
} else {
click_registered = true;
tap_code16(KC_MS_R);
}
return JIGGY_PERIOD_MS / 2; // Execute callback again in half a period.
}
// Starts Turbo Click, begins the callback.
static void get_jiggy_start(void) {
if (click_token == INVALID_DEFERRED_TOKEN) {
uint32_t next_delay_ms = get_jiggy_callback(0, NULL);
click_token = defer_exec(next_delay_ms, get_jiggy_callback, NULL);
}
}
// Stops Turbo Click, cancels the callback.
static void get_jiggy_stop(void) {
if (click_token != INVALID_DEFERRED_TOKEN) {
cancel_deferred_exec(click_token);
click_token = INVALID_DEFERRED_TOKEN;
/* if (click_registered) {
// If mouse button is currently registered, release it.
unregister_code16(KC_MS_BTN1);
click_registered = false;
} */
}
}
bool process_get_jiggy_with_it(uint16_t keycode, keyrecord_t* record,
uint16_t get_jiggy_keycode) {
static bool locked = false;
static bool tapped = false;
static uint16_t tap_timer = 0;
if (keycode == get_jiggy_keycode) {
if (record->event.pressed) { // Turbo Click key was pressed.
if (tapped && !timer_expired(record->event.time, tap_timer)) {
// If the key was recently tapped, lock turbo click.
locked = true;
} else if (locked) {
// Otherwise if currently locked, unlock and stop.
locked = false;
tapped = false;
get_jiggy_stop();
return false;
}
// Set that the first tap occurred in a potential double tap.
tapped = true;
tap_timer = record->event.time + TAPPING_TERM;
get_jiggy_start();
} else if (!locked) {
// If not currently locked, stop on key release.
get_jiggy_stop();
}
return false;
} else {
// On an event with any other key, reset the double tap state.
tapped = false;
return true;
}
}
#endif
@@ -0,0 +1,53 @@
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
//
// Mouse jiggler - move the mouse once in a while to prevent screen time-out
// Addapted from Pascal Getreuer's Mouse Turbo Click.
//
// This library implements a "Turbo Click" button that clicks the mouse rapidly,
// implemented using mouse keys and a periodic callback function:
//
// * Pressing and holding the Turbo Click button sends rapid mouse clicks, about
// 12 clicks per second.
//
// * Quickly double tapping the Turbo Click button "locks" it. Rapid mouse
// clicks are sent until the Turbo Click button is tapped again.
//
// NOTE: Mouse keys and deferred execution must be enabled; in rules.mk set
// MOUSEKEY_ENABLE = yes, DEFERRED_EXEC_ENABLE = yes.
//
//
// For full documentation of Pascal Getreuer's original project, see
// https://getreuer.info/posts/keyboards/mouse-turbo-click
#pragma once
#include QMK_KEYBOARD_H
// In your keymap, define a custom keycode to use for Turbo Click. Then handle
// Turbo Click from your `process_record_user` function by calling
// `process_mouse_turbo_click`, passing your custom keycode for the
// `turbo_click_keycode` arg:
//
// #include "features/mouse_turbo_click.h"
//
// bool process_record_user(uint16_t keycode, keyrecord_t* record) {
// if (!process_mouse_turbo_click(keycode, record, TURBO)) { return false; }
// // Your macros ...
//
// return true;
// }
bool process_get_jiggy_with_it(uint16_t keycode, keyrecord_t* record,
uint16_t get_jiggy_keycode);
+164
View File
@@ -0,0 +1,164 @@
/* Copyright 2020 gtips
* Copyright (C) 2022 Jay Watson jmwtsn@gmail.com
*
* 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
#include "bel_air/mr_smith.h"
// Left-hand home row mods for Qwerty
#define HRM_A LGUI_T(KC_A)
#define HRM_S LALT_T(KC_S)
#define HRM_D LSFT_T(KC_D)
#define HRM_F LCTL_T(KC_F)
// Right-hand home row mods for Qwerty
#define HRM_J RCTL_T(KC_J)
#define HRM_K RSFT_T(KC_K)
#define HRM_L LALT_T(KC_L)
#define HRM_SCLN RGUI_T(KC_SCLN)
// Left-hand home row mods for Colemak
#define CLHRM_A LGUI_T(KC_A)
#define CLHRM_R LALT_T(KC_R)
#define CLHRM_S LSFT_T(KC_S)
#define CLHRM_T LCTL_T(KC_T)
// Right-hand home row mods for Colemak
#define CLHRM_N RCTL_T(KC_N)
#define CLHRM_E RSFT_T(KC_E)
#define CLHRM_I LALT_T(KC_I)
#define CLHRM_O RGUI_T(KC_O)
enum custom_keycodes {
EMAIL = SAFE_RANGE,
SLSAST,
ASTSLS,
JIGGY
};
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (!process_get_jiggy_with_it(keycode, record, JIGGY)) { return false; }
switch (keycode) {
case EMAIL:
if (record->event.pressed) {
SEND_STRING("jmwtsn@gmail.com");
} else {
}
break;
case SLSAST:
if (record->event.pressed) {
SEND_STRING("/*");
} else {
}
break;
case ASTSLS:
if (record->event.pressed) {
SEND_STRING("*/");
} else {
}
break;
}
return true;
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_reviung41( //QWERTY
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
KC_BSPC, HRM_A, HRM_S, HRM_D, HRM_F, KC_G, KC_H, HRM_J, HRM_K, HRM_L, HRM_SCLN, KC_QUOT,
RGB_TOG, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, RSFT_T(KC_ENT),
KC_LALT, LT(2,KC_ENT), KC_TAB, LT(3,KC_SPC), KC_PSCR),
[1] = LAYOUT_reviung41( //Colemak
_______, _______, _______, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, _______,
_______, CLHRM_A, CLHRM_R, CLHRM_S, CLHRM_T, KC_D, KC_H, CLHRM_N, CLHRM_E, CLHRM_I, CLHRM_O, _______,
_______, _______, _______, _______, _______, _______, KC_K, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______),
[2] = LAYOUT_reviung41( //SYMB & NAV
_______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL,
KC_DEL, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_GRV, KC_TILD,
_______, _______, _______, _______, KC_CAPS, KC_DQUO, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______, RSFT_T(KC_SPC),
_______, _______, KC_ENT, _______, _______),
[3] = LAYOUT_reviung41( //NUM & FUNC
_______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
_______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6,
_______, KC_ESC, _______, _______, KC_CAPS, KC_QUOT, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
_______, _______, KC_BSPC, _______, _______),
[4] = LAYOUT_reviung41( //RGB & MOUSE
RGB_VAI, RGB_SAI, RGB_HUI, RGB_MOD, XXXXXXX, RGB_TOG, JIGGY, KC_NUM, XXXXXXX, XXXXXXX, RGB_M_P, RGB_M_B,
RGB_VAD, RGB_SAD, RGB_HUD, RGB_RMOD, XXXXXXX, KC_WH_U, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, RGB_M_SW, RGB_M_G,
KC_ACL0, KC_ACL1, KC_ACL2, KC_BTN1, KC_BTN2, KC_WH_D, DT_PRNT, DT_DOWN, DT_UP, XXXXXXX, RGB_M_T, RGB_M_K,
TG(1), _______, EMAIL, _______, _______),
/* [#] = LAYOUT_reviung41(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______),
*/
};
layer_state_t layer_state_set_user(layer_state_t state) {
return update_tri_layer_state(state, 2, 3, 4);
}
oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_180; }
#ifdef OLED_ENABLE
bool oled_task_user(void) {
// Host Keyboard Layer Status
oled_write_P(PSTR(""), false);
switch (get_highest_layer(layer_state)) {
case 0:
oled_write_ln_P(PSTR("Whatner hell?!"), false);
break;
case 1:
oled_write_ln_P(PSTR("Don't Panic! "), false);
break;
case 3:
oled_write_ln_P(PSTR("-=[]\\ "), false);
break;
case 4:
oled_write_ln_P(PSTR("RGB & MOUSE "), false);
break;
default:
// Or use the write_ln shortcut over adding '\n' to the end of your string
oled_write_ln_P(PSTR("Undefined "), false);
}
// Host Keyboard LED Status
led_t led_state = host_keyboard_led_state();
oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false);
oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false);
oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false);
return false;
}
#endif
+1 -1
View File
@@ -13,4 +13,4 @@
* 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 "reviung41.h"
#include "reviung41.h"
+15 -8
View File
@@ -7,12 +7,19 @@ BOOTLOADER = caterina
# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
MOUSEKEY_ENABLE = no # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = yes # Console for debug
COMMAND_ENABLE = yes # Commands for debug and configuration
NKRO_ENABLE = no # Enable N-Key Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
EXTRAKEY_ENABLE = yes # Audio control and System control
MOUSEKEY_ENABLE = yes # Mouse keys
NKRO_ENABLE = no # Enable N-Key Rollover
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
DYNAMIC_TAPPING_TERM_ENABLE = yes
DEFERRED_EXEC_ENABLE = yes
OLED_ENABLE = yes
OLED_DRIVER = SSD1306
SRC += bel_air/mr_smith.c
+4
View File
@@ -51,3 +51,7 @@
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
#define IGNORE_MOD_TAP_INTERRUPT // this makes it possible to do rolling combos (zx)
// with keys that convert to other keys on hold (z becomes ctrl when you hold it, and
// when this option isn't enabled, z rapidly followed by x actually sends Ctrl-x. That's bad.)
+106 -36
View File
@@ -16,8 +16,31 @@
*/
#include QMK_KEYBOARD_H
//#include "bel_air/mr_smith.h"
//#include "bel_air/mr_smith.h"tt
// Left-hand home row mods for Qwerty
#define HRM_A LGUI_T(KC_A)
#define HRM_S LALT_T(KC_S)
#define HRM_D LSFT_T(KC_D)
#define HRM_F LCTL_T(KC_F)
// Right-hand home row mods for Qwerty
#define HRM_J RCTL_T(KC_J)
#define HRM_K RSFT_T(KC_K)
#define HRM_L LALT_T(KC_L)
#define HRM_SCLN RGUI_T(KC_SCLN)
// Left-hand home row mods for Colemak
#define CLHRM_A LGUI_T(KC_A)
#define CLHRM_R LALT_T(KC_R)
#define CLHRM_S LSFT_T(KC_S)
#define CLHRM_T LCTL_T(KC_T)
// Right-hand home row mods for Colemak
#define CLHRM_N RCTL_T(KC_N)
#define CLHRM_E RSFT_T(KC_E)
#define CLHRM_I LALT_T(KC_I)
#define CLHRM_O RGUI_T(KC_O)
enum custom_keycodes {
MSG = SAFE_RANGE,
@@ -34,7 +57,9 @@ enum custom_keycodes {
SLSAST,
ASTSLS,
NXT,
JIGGY
JIGGY,
PHNUM,
NOTES
};
@@ -103,7 +128,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case DNC2:
if (record->event.pressed) {
SEND_STRING("Interupted by call-in. ");
SEND_STRING("Interrupted by call-in. ");
} else {
}
break;
@@ -142,29 +167,20 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
break;
case NOCON:
if (record->event.pressed) {
SEND_STRING(
SS_DOWN(X_LALT)SS_TAP(X_TAB)SS_UP(X_LALT)
SS_DELAY(200)
SS_TAP(X_TAB)
SS_DELAY(300) "n"
SS_TAP(X_TAB) SS_TAP(X_ENT)
SS_DELAY(200)
);
} else {
}
break;
case SELNUM:
if (record->event.pressed) {
SEND_STRING(
SS_DOWN(X_LCTL)SS_TAP(X_TAB)SS_UP(X_LCTL)
SS_TAP(X_ESC)
SS_TAP(X_F7)
SS_DELAY(100)
SS_TAP(X_ENT)
SS_DELAY(200) //turn on caret browsing and wait
SS_LCTL("f")"Calling "
SS_DELAY(100)
SS_TAP(X_ENT)
SS_TAP(X_ESC)
SS_DELAY(200)
@@ -176,34 +192,88 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
SS_TAP(X_LEFT)SS_UP(X_LSFT)
SS_LCTL("c") //select phone number
SS_TAP(X_F7) //turn off caret browsing
SS_DOWN(X_LALT)SS_TAP(X_TAB)SS_UP(X_LALT)
SS_DOWN(X_LGUI)SS_TAP(X_3)SS_UP(X_LGUI)
SS_DELAY(200) //switch to VCC and wait
SS_LCTL("v") //paste number
SS_TAP(X_ENT)
SS_LCTL("v") //paste number
SS_TAP(X_ENT)
);
} else {
}
break;
case DISCO:
if (record->event.pressed) {
case DISCO: // Hang up VCC call
if (record->event.pressed) { // Start fron VCC number field
SEND_STRING(
SS_TAP(X_TAB)SS_TAP(X_TAB)
SS_DOWN(X_LCTL) "d" SS_UP(X_LCTL)
SS_DOWN(X_LSFT)SS_TAP(X_TAB)SS_TAP(X_TAB)SS_TAP(X_TAB)SS_UP(X_LSFT)
SS_TAP(X_TAB)SS_TAP(X_TAB) // Tab to My Interactions
SS_DOWN(X_LCTL) "d" SS_UP(X_LCTL) // Disconnect
SS_DOWN(X_LSFT)SS_TAP(X_TAB)SS_TAP(X_TAB)SS_TAP(X_TAB)SS_UP(X_LSFT) // Return to VCC number field
);
} else {
}
break;
case NOCON: // Hang up VCC, switch to CMP and enter no contact
if (record->event.pressed) { // Start fron VCC number field
SEND_STRING(
SS_DOWN(X_LGUI)SS_TAP(X_4)SS_UP(X_LGUI) // Switch to CMP (in Microsoft Edge)
SS_DELAY(200)
SS_TAP(X_TAB)
SS_DELAY(300) "n"
SS_TAP(X_TAB) SS_TAP(X_ENT)
SS_DELAY(200)
);
} else {
}
break;
case NXT:
case NXT: // Submits current CMP tscase and opens the next
if (record->event.pressed) { // Start fron CMP end notes field
SEND_STRING(
SS_TAP(X_TAB) // Tab to submit button
SS_DELAY(200)
SS_TAP(X_ENT) // Enter to submit
SS_DELAY(2500)"c" // Open next case
SS_DELAY(2000)
SS_DOWN(X_LCTL)"0"SS_DELAY(50)"-"SS_UP(X_LCTL) // Adjust zoom
SS_DELAY(500)
SS_TAP(X_DOWN)SS_DELAY(5ts0)SS_TAP(X_DOWN)SS_DELAY(150)
SS_DOWN(X_LCTL)"0"SS_DELAY(50)"==="SS_UP(X_LCTL)SS_DELAY(1500)"c"
SS_DELAY(500)SS_TAP(X_ENT)"1"
SS_DOWN(X_LCTL)SS_TAP(X_TAB)"w"SS_UP(X_LCTL) // Begin Notes shortcut
SS_DELAY(50)SS_LALT("d")SS_DELAY(50)
SS_LCTL("c")SS_DELAY(50)SS_LCTL("tv")
SS_TAP(X_ENT)SS_DELAY(1500)" ");
} else {
}
break;
case PHNUM:
if (record->event.pressed) {
SEND_STRING(SS_TAP(X_LEFT)SS_TAP(X_LEFT)" (ph)"SS_TAP(X_LEFT));
} else {
}
break;
case NOTES:
if (record->event.pressed) {
SEND_STRING(
SS_TAP(X_TAB)
SS_DELAY(200)
SS_TAP(X_ENT)
SS_DELAY(2000)"c");
SS_DOWN(X_LCTL)SS_TAP(X_TAB)"w"SS_UP(X_LCTL)
SS_DELAY(50)SS_LALT("d")SS_DELAY(50)
SS_LCTL("c")SS_DELAY(50)SS_LCTL("tv")
SS_TAP(X_ENT)" ");
} else {
}
break;
@@ -220,16 +290,16 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT( /*Qwerty*/
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_GRV, KC_BSPC,
LT(2,KC_TAB), KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP,
LT(3,KC_BSPC), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, LT(3,KC_ENT), KC_PGDN,
KC_BSPC, HRM_A, HRM_S, HRM_D, HRM_F, KC_G, KC_H, HRM_J, HRM_K, HRM_L, HRM_SCLN,KC_QUOT, LT(3,KC_ENT), KC_PGDN,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END,
KC_LCTL, KC_LALT, LT(1,KC_ENT), KC_LGUI, KC_SPC, MT(KC_LCTL,KC_PSCR), KC_LEFT, KC_DOWN, KC_RGHT),
KC_LCTL, KC_LALT, LT(1,KC_ENT), LGUI_T(KC_TAB), KC_SPC, MT(KC_LCTL,KC_PSCR), KC_LEFT, KC_DOWN, KC_RGHT),
[1] = LAYOUT( /*Numpad*/
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_NUM, KC_DEL,
_______, JIGGY, _______, _______, _______, _______, KC_P7, KC_P8, KC_P9, KC_P0, _______, SLSAST, ASTSLS, _______, KC_VOLU,
_______, _______, _______, DISCO, NOCON, _______, KC_P4, KC_P5, KC_P6, _______, _______, _______, _______, KC_VOLD,
_______, _______, _______, NXT, _______, _______, KC_P1, KC_P2, KC_P3, _______, _______, _______, KC_PGUP, MU_TOG,
_______, MSG, NML, RNA, GEN, BSIG, DNC, DNC2, PHNUM, _______, SELNUM, _______, _______, KC_NUM, KC_DEL,
_______, JIGGY, _______, _______, _______, NOTES, KC_P7, KC_P8, KC_P9, KC_P0, _______, SLSAST, ASTSLS, _______, KC_VOLU,
KC_DEL, _______, _______, DISCO, NOCON, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______, _______, KC_VOLD,
_______, _______, _______, NXT, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______, _______, KC_PGUP, MU_TOG,
_______, _______, _______, _______, KC_P0, _______, KC_HOME, KC_PGDN, KC_END),
@@ -242,7 +312,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[3] = LAYOUT( /*Macros*/
_______, MSG, NML, RNA, GEN, BSIG, DNC, DNC2, NIS, _______, SELNUM, _______, _______, _______, _______,
_______, MSG, NML, RNA, GEN, BSIG, DNC, DNC2, PHNUM, _______, SELNUM, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, KC_UP, _______, _______, _______, _______, _______, KC_BRIU,
_______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, KC_BRID,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_INS,