diff options
author | Joel Challis <[email protected]> | 2023-11-26 18:36:45 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2023-11-27 05:36:45 +1100 |
commit | 1ed03f498fa204178c2696c510ac6a2cd8524e2d (patch) | |
tree | b97c1f983b7e4b57c007d0feedadd3ad3e39062b /users/jonavin | |
parent | 4908d4b1ca260efecf3613e6517aa3a6f2034876 (diff) | |
download | qmk_firmware-1ed03f498fa204178c2696c510ac6a2cd8524e2d.tar.gz qmk_firmware-1ed03f498fa204178c2696c510ac6a2cd8524e2d.zip |
Remove userspace keymaps (#22544)
Diffstat (limited to 'users/jonavin')
-rw-r--r-- | users/jonavin/config.h | 34 | ||||
-rw-r--r-- | users/jonavin/jonavin.c | 233 | ||||
-rw-r--r-- | users/jonavin/jonavin.h | 130 | ||||
-rw-r--r-- | users/jonavin/jonavin_encoder.c | 219 | ||||
-rw-r--r-- | users/jonavin/readme.md | 124 | ||||
-rw-r--r-- | users/jonavin/rules.mk | 29 |
6 files changed, 0 insertions, 769 deletions
diff --git a/users/jonavin/config.h b/users/jonavin/config.h deleted file mode 100644 index 8c5451075c..0000000000 --- a/users/jonavin/config.h +++ /dev/null @@ -1,34 +0,0 @@ -/* Copyright 2021 Jonavin Eng - * - * 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 - -#define TAPPING_TOGGLE 2 // TT () set to two taps - -/* Handle GRAVESC combo keys */ -#define GRAVE_ESC_ALT_OVERRIDE // Always send Escape if Alt is pressed -#define GRAVE_ESC_CTRL_OVERRIDE // Always send Escape if Control is pressed - -#define TAPPING_TERM 180 -#define TAPPING_TERM_PER_KEY - -#ifdef RGB_MATRIX_ENABLE - #ifdef RGB_MATRIX_DEFAULT_MODE - #undef RGB_MATRIX_DEFAULT_MODE - #endif - #define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_SOLID_COLOR - #define RGB_DISABLE_WHEN_USB_SUSPENDED -#endif diff --git a/users/jonavin/jonavin.c b/users/jonavin/jonavin.c deleted file mode 100644 index c936421040..0000000000 --- a/users/jonavin/jonavin.c +++ /dev/null @@ -1,233 +0,0 @@ - -/* Copyright 2021 Jonavin Eng @Jonavin - -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 "jonavin.h" - - -#ifdef TD_LSFT_CAPSLOCK_ENABLE - // Tap once for shift, twice for Caps Lock but only if Win Key in not disabled - void dance_LSFT_finished(tap_dance_state_t *state, void *user_data) { - if (state->count == 1 || keymap_config.no_gui) { - register_code16(KC_LSFT); - } else { - register_code(KC_CAPS); - } - } - - void dance_LSFT_reset(tap_dance_state_t *state, void *user_data) { - if (state->count == 1 || keymap_config.no_gui) { - unregister_code16(KC_LSFT); - } else { - unregister_code(KC_CAPS); - } - } - - tap_dance_action_t tap_dance_actions[] = { - // Tap once for shift, twice for Caps Lock - [TD_LSFT_CAPSLOCK] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), - [TD_LSFT_CAPS_WIN] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_LSFT_finished, dance_LSFT_reset), - }; -#endif // TD_LSFT_CAPSLOCK_ENABLE - -// RGB NIGHT MODE -#ifdef RGB_MATRIX_ENABLE - static bool rgb_nightmode = false; - - // Turn on/off NUM LOCK if current state is different - void activate_rgb_nightmode (bool turn_on) { - if (rgb_nightmode != turn_on) { - rgb_nightmode = !rgb_nightmode; - } - } - - bool get_rgb_nightmode(void) { - return rgb_nightmode; - } -#endif // RGB_MATRIX_ENABLE - -// TIMEOUTS -#ifdef IDLE_TIMEOUT_ENABLE - static uint16_t timeout_timer = 0; - static uint16_t timeout_counter = 0; //in minute intervals - static uint16_t timeout_threshold = TIMEOUT_THRESHOLD_DEFAULT; - - uint16_t get_timeout_threshold(void) { - return timeout_threshold; - } - - void timeout_reset_timer(void) { - timeout_timer = timer_read(); - timeout_counter = 0; - }; - - void timeout_update_threshold(bool increase) { - if (increase && timeout_threshold < TIMEOUT_THRESHOLD_MAX) timeout_threshold++; - if (!increase && timeout_threshold > 0) timeout_threshold--; - }; - - void timeout_tick_timer(void) { - if (timeout_threshold > 0) { - if (timer_elapsed(timeout_timer) >= 60000) { // 1 minute tick - timeout_counter++; - timeout_timer = timer_read(); - } - #ifdef RGB_MATRIX_ENABLE - if (timeout_threshold > 0 && timeout_counter >= timeout_threshold) { - rgb_matrix_disable_noeeprom(); - } - #endif - } // timeout_threshold = 0 will disable timeout - } - -#endif // IDLE_TIMEOUT_ENABLE - -#if defined(ALTTAB_SCROLL_ENABLE) || defined(IDLE_TIMEOUT_ENABLE) // timer features - __attribute__((weak)) void matrix_scan_keymap(void) {} - - void matrix_scan_user(void) { - #ifdef ALTTAB_SCROLL_ENABLE - encoder_tick_alttabscroll(); - #endif - #ifdef IDLE_TIMEOUT_ENABLE - timeout_tick_timer(); - #endif - matrix_scan_keymap(); - } -#endif // ALTTAB_SCROLL_ENABLE or IDLE_TIMEOUT_ENABLE - -// PROCESS KEY CODES -__attribute__ ((weak)) bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { return true; } - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - if (!process_record_keymap(keycode, record)) { return false; } - switch (keycode) { - case KC_00: - if (record->event.pressed) { - // when keycode KC_00 is pressed - SEND_STRING("00"); - } else unregister_code16(keycode); - break; - case KC_WINLCK: - if (record->event.pressed) { - keymap_config.no_gui = !keymap_config.no_gui; //toggle status - } else unregister_code16(keycode); - break; - -#ifdef IDLE_TIMEOUT_ENABLE - case RGB_TOI: - if(record->event.pressed) { - timeout_update_threshold(true); - } else unregister_code16(keycode); - break; - case RGB_TOD: - if(record->event.pressed) { - timeout_update_threshold(false); //decrease timeout - } else unregister_code16(keycode); - break; -#endif // IDLE_TIMEOUT_ENABLE -#ifdef RGB_MATRIX_ENABLE - case RGB_NITE: - if(record->event.pressed) { - rgb_nightmode = !rgb_nightmode; - } else unregister_code16(keycode); - break; -#endif // RGB_MATRIX_ENABLE - -#ifdef EMOTICON_ENABLE - case EMO_SHRUG: - if (record->event.pressed) SEND_STRING("`\\_(\"/)_/`"); - else unregister_code16(keycode); - break; - case EMO_CONFUSE: - if (record->event.pressed) SEND_STRING("(*_*)"); - else unregister_code16(keycode); - break; - case EMO_TEARS: - if (record->event.pressed) SEND_STRING("(T_T)"); - else unregister_code16(keycode); - break; - case EMO_NERVOUS: - if (record->event.pressed) SEND_STRING("(~_~;)"); - else unregister_code16(keycode); - break; - case EMO_JOY: - if (record->event.pressed) SEND_STRING("(^o^)"); - else unregister_code16(keycode); - break; - case EMO_SAD: - if (record->event.pressed) SEND_STRING(":'-("); - else unregister_code16(keycode); - break; - #endif // EMOTICON_ENABLE - - #ifdef ALTTAB_SCROLL_ENABLE - case KC_TSTOG: - if (record->event.pressed) encoder_toggle_alttabscroll(); - else unregister_code16(keycode); - break; - #endif // ALTTAB_SCROLL_ENABLE - - default: - if (record->event.pressed) { - #ifdef RGB_MATRIX_ENABLE - rgb_matrix_enable(); - #endif - #ifdef IDLE_TIMEOUT_ENABLE - timeout_reset_timer(); //reset activity timer - #endif - } - break; - } - return true; -}; - - -uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case KC_SFTUP: - return 300; - case KC_RAISESPC: - case KC_LOWERSPC: - return 450; - default: - return TAPPING_TERM; - } -} - -// Turn on/off NUM LOCK if current state is different -void activate_numlock(bool turn_on) { - if (host_keyboard_led_state().num_lock != turn_on) { - tap_code(KC_NUM_LOCK); - } -} - - -// INITIAL STARTUP - -__attribute__ ((weak)) void keyboard_post_init_keymap(void) {} - -void keyboard_post_init_user(void) { - keyboard_post_init_keymap(); - #ifdef STARTUP_NUMLOCK_ON - activate_numlock(true); // turn on Num lock by default so that the numpad layer always has predictable results - #endif // STARTUP_NUMLOC_ON - #ifdef IDLE_TIMEOUT_ENABLE - timeout_timer = timer_read(); // set inital time for ide timeout - #endif -} diff --git a/users/jonavin/jonavin.h b/users/jonavin/jonavin.h deleted file mode 100644 index 97f72c1248..0000000000 --- a/users/jonavin/jonavin.h +++ /dev/null @@ -1,130 +0,0 @@ - -/* Copyright 2021 Jonavin Eng @Jonavin - -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 - -// DEFINE MACROS -#ifndef ARRAYSIZE -#define ARRAYSIZE(arr) sizeof(arr)/sizeof(arr[0]) -#endif // !ARRAYSIZE - -// LAYERS -enum custom_user_layers { - _BASE, - _FN1, - _LOWER, - _RAISE, -}; - -// KEYCODES -enum custom_user_keycodes { - KC_00 = SAFE_RANGE, - ENCFUNC, - KC_WINLCK, //Toggles Win key on and off - RGB_TOI, // Timeout idle time up - RGB_TOD, // Timeout idle time down - RGB_NITE, // Turns off all rgb but allow rgb indicators to work - - EMO_SHRUG, // `\_("/)_/` - EMO_CONFUSE, // (*_*) - EMO_SAD, // :'-( - EMO_NERVOUS, // (~_~;) - EMO_JOY, // (^o^) - EMO_TEARS, // (T_T) - - KC_TSTOG, // Tab Scroll Toggle - - NEW_SAFE_RANGE // new safe range for keymap level custom keycodes -}; - -#define KC_CAD LALT(LCTL(KC_DEL)) -#define KC_AF4 LALT(KC_F4) -#define KC_TASK LCTL(LSFT(KC_ESC)) -#define CT_PGUP RCTL(KC_PGUP) -#define CT_PGDN RCTL(KC_PGDN) -#define CT_HOME RCTL(KC_HOME) -#define CT_END RCTL(KC_END) -#define KC_SFTUP RSFT_T(KC_UP) // Shift when held, Up arrow when tapped -#define KC_RAISESPC LT(_RAISE,KC_SPC) // _RAISE layer mod when held, space when tapped -#define KC_LOWERSPC LT(_LOWER,KC_SPC) // _LOWER layer mod when held, space when tapped - - -#ifdef TD_LSFT_CAPSLOCK_ENABLE - // Tap Dance Definitions - enum custom_tapdance { - TD_LSFT_CAPSLOCK, - TD_LSFT_CAPS_WIN - }; - - #define KC_LSFTCAPS TD(TD_LSFT_CAPSLOCK) - #define KC_LSFTCAPSWIN TD(TD_LSFT_CAPS_WIN) -#else // regular Shift - #define KC_LSFTCAPS KC_LSFT -#endif // TD_LSFT_CAPSLOCK_ENABLE - - -// ENCODER ACTIONS -#ifdef ENCODER_ENABLE - void encoder_action_volume(bool clockwise); - void encoder_action_mediatrack(bool clockwise); - void encoder_action_navword(bool clockwise); - void encoder_action_navpage(bool clockwise); - - uint8_t get_selected_layer(void); - void encoder_action_layerchange(bool clockwise); - - #if defined(RGB_MATRIX_ENABLE) || defined(RGBLIGHT_ENABLE) - void encoder_action_rgb_speed(bool clockwise); - void encoder_action_rgb_hue(bool clockwise); - void encoder_action_rgb_saturation(bool clockwise); - void encoder_action_rgb_brightness(bool clockwise); - void encoder_action_rgb_mode(bool clockwise); - #endif // RGB_MATRIX_ENABLE / RGBLIGHT_ENABLE - - #ifdef ALTTAB_SCROLL_ENABLE - void encoder_action_alttabscroll(bool clockwise); - void encoder_toggle_alttabscroll(void); - void encoder_tick_alttabscroll(void); - #endif // ALTTAB_SCROLL_ENABLE -#endif // ENCODER_ENABLE - - -#ifdef RGB_MATRIX_ENABLE -//RGB custom colours - #define RGB_GODSPEED 0x00, 0xE4, 0xFF // colour for matching keycaps - #define RGB_NAUTILUS 0x00, 0xA4, 0xA9 // Nautilus Font colours - - void activate_rgb_nightmode (bool turn_on); - bool get_rgb_nightmode(void); -#endif - - -// IDLE TIMEOUTS -#ifdef IDLE_TIMEOUT_ENABLE - #define TIMEOUT_THRESHOLD_DEFAULT 5 // default timeout minutes - #define TIMEOUT_THRESHOLD_MAX 140 // upper limits (2 hours and 10 minutes -- no rgb indicators above this value) - - //prototype functions - uint16_t get_timeout_threshold(void); - void timeout_reset_timer(void); - void timeout_update_threshold(bool increase); - void timeout_tick_timer(void); -#endif //IDLE_TIMEOUT_ENABLE - - -// OTHER FUNCTION PROTOTYPE -void activate_numlock(bool turn_on); diff --git a/users/jonavin/jonavin_encoder.c b/users/jonavin/jonavin_encoder.c deleted file mode 100644 index 387ed5f430..0000000000 --- a/users/jonavin/jonavin_encoder.c +++ /dev/null @@ -1,219 +0,0 @@ - -/* Copyright 2021 Jonavin Eng @Jonavin - -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 "jonavin.h" - -#ifdef ENCODER_ENABLE - #ifndef DYNAMIC_KEYMAP_LAYER_COUNT - #define DYNAMIC_KEYMAP_LAYER_COUNT 4 //default in case this is not already defined elsewhere - #endif - #ifndef ENCODER_DEFAULTACTIONS_INDEX - #define ENCODER_DEFAULTACTIONS_INDEX 0 // can select encoder index if there are multiple encoders - #endif - - void encoder_action_volume(bool clockwise) { - if (clockwise) - tap_code(KC_VOLU); - else - tap_code(KC_VOLD); - } - - void encoder_action_mediatrack(bool clockwise) { - if (clockwise) - tap_code(KC_MEDIA_NEXT_TRACK); - else - tap_code(KC_MEDIA_PREV_TRACK); - } - - void encoder_action_navword(bool clockwise) { - if (clockwise) - tap_code16(LCTL(KC_RGHT)); - else - tap_code16(LCTL(KC_LEFT)); - } - - void encoder_action_navpage(bool clockwise) { - if (clockwise) - tap_code16(KC_PGUP); - else - tap_code16(KC_PGDN); - } - - // LAYER HANDLING - uint8_t selected_layer = 0; - - uint8_t get_selected_layer(void) { - return selected_layer; - } - - void encoder_action_layerchange(bool clockwise) { - if (clockwise) { - if(selected_layer < (DYNAMIC_KEYMAP_LAYER_COUNT - 1)) { - selected_layer ++; - layer_move(selected_layer); - } - } else { - if (selected_layer > 0) { - selected_layer --; - layer_move(selected_layer); - } - } - } - - #ifdef RGB_MATRIX_ENABLE - void encoder_action_rgb_speed(bool clockwise) { - if (clockwise) - rgb_matrix_increase_speed_noeeprom(); - else - rgb_matrix_decrease_speed_noeeprom(); - } - void encoder_action_rgb_hue(bool clockwise) { - if (clockwise) - rgb_matrix_increase_hue_noeeprom(); - else - rgb_matrix_decrease_hue_noeeprom(); - } - void encoder_action_rgb_saturation(bool clockwise) { - if (clockwise) - rgb_matrix_increase_sat_noeeprom(); - else - rgb_matrix_decrease_sat_noeeprom(); - } - void encoder_action_rgb_brightness(bool clockwise) { - if (clockwise) - rgb_matrix_increase_val_noeeprom(); - else - rgb_matrix_decrease_val_noeeprom(); - } - void encoder_action_rgb_mode(bool clockwise) { - if (clockwise) - rgb_matrix_step_noeeprom(); - else - rgb_matrix_step_reverse_noeeprom(); - } - #elif defined(RGBLIGHT_ENABLE) - void encoder_action_rgb_speed(bool clockwise) { - if (clockwise) - rgblight_increase_speed_noeeprom(); - else - rgblight_decrease_speed_noeeprom(); - } - void encoder_action_rgb_hue(bool clockwise) { - if (clockwise) - rgblight_increase_hue_noeeprom(); - else - rgblight_decrease_hue_noeeprom(); - } - void encoder_action_rgb_saturation(bool clockwise) { - if (clockwise) - rgblight_increase_sat_noeeprom(); - else - rgblight_decrease_sat_noeeprom(); - } - void encoder_action_rgb_brightness(bool clockwise) { - if (clockwise) - rgblight_increase_val_noeeprom(); - else - rgblight_decrease_val_noeeprom(); - } - void encoder_action_rgb_mode(bool clockwise) { - if (clockwise) - rgblight_step_noeeprom(); - else - rgblight_step_reverse_noeeprom(); - } - #endif // RGB_MATRIX_ENABLE || RGBLIGHT_ENABLE - - #ifdef ALTTAB_SCROLL_ENABLE - bool is_tab_scrolling = false; - bool is_alt_tab_active = false; - uint16_t alt_tab_timer = 0; - - - void encoder_toggle_alttabscroll(void) { - is_tab_scrolling = !is_tab_scrolling; - } - - void encoder_action_alttabscroll(bool clockwise) { - if (clockwise) { - if (!is_alt_tab_active) { - is_alt_tab_active = true; - register_mods(MOD_RALT); - } - tap_code16(KC_TAB); - } - else { - tap_code16(S(KC_TAB)); - } - alt_tab_timer = timer_read(); - } - - void encoder_tick_alttabscroll(void) { - if (is_alt_tab_active) { - if (timer_elapsed(alt_tab_timer) > 600) { - unregister_mods(MOD_RALT); - is_alt_tab_active = false; - } - } - } - #endif // ALTTAB_SCROLL_ENABLE -#endif // ENCODER_ENABLE - -#if defined(ENCODER_ENABLE) && defined(ENCODER_DEFAULTACTIONS_ENABLE) // Encoder Functionality - - __attribute__((weak)) bool encoder_update_keymap(uint8_t index, bool clockwise) { return true; } - - bool encoder_update_user(uint8_t index, bool clockwise) { - if (!encoder_update_keymap(index, clockwise)) { return false; } - if (index != ENCODER_DEFAULTACTIONS_INDEX) {return true;} // exit if the index doesn't match - uint8_t mods_state = get_mods(); - if (mods_state & MOD_BIT(KC_LSFT) ) { // If you are holding L shift, encoder changes layers - encoder_action_layerchange(clockwise); - } else if (mods_state & MOD_BIT(KC_RSFT) ) { // If you are holding R shift, Page up/dn - unregister_mods(MOD_BIT(KC_RSFT)); - encoder_action_navpage(clockwise); - register_mods(MOD_BIT(KC_RSFT)); - } else if (mods_state & MOD_BIT(KC_LCTL)) { // if holding Left Ctrl, navigate next/prev word - encoder_action_navword(clockwise); - } else if (mods_state & MOD_BIT(KC_LALT)) { // if holding Left Alt, change media next/prev track - encoder_action_mediatrack(clockwise); - } else { - switch(get_highest_layer(layer_state)) { - case _FN1: - #ifdef IDLE_TIMEOUT_ENABLE - timeout_update_threshold(clockwise); - #endif - break; - default: - #ifdef ALTTAB_SCROLL_ENABLE - if (is_tab_scrolling) - encoder_action_alttabscroll(clockwise); - else - encoder_action_volume(clockwise); // Otherwise it just changes volume - #else - encoder_action_volume(clockwise); // Otherwise it just changes volume - #endif // ALTTAB_SCROLL_ENABLE - break; - } - } - return false; - } -#endif // ENCODER_ENABLE - - diff --git a/users/jonavin/readme.md b/users/jonavin/readme.md deleted file mode 100644 index 204032ae1a..0000000000 --- a/users/jonavin/readme.md +++ /dev/null @@ -1,124 +0,0 @@ -Copyright 2021 Jonavin Eng @Jonavin - -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/>. - -LAYERS: -- 0 = _BASE -- 1 = _FN1 -- 2 = _LOWER -- 3 = _RAISE - -KEYCODES: -- KC_CAD Ctrl-Alt-Del -- KC_AF4 Alt-F4 -- KC_TASK Windows Task Manager (Ctrl-Shift-Esc) -- LSFT_CAPSLOCK When LSFT_CAPSLOCK_ENABLE is defined, hold for Shift double tap for CAPSLOCK; otherwise, just Shift -- KC_00 double zero "00" -- KC_WINLCK toggles LGui/Win key lock -- RGB_TOI Increase Timeout idle time threshold -- RGB_TOD Decrease Timeout idle time threshold -- CT_PGUP Ctrl-PgUp -- CT_PGDN Ctrl-PgDn -- CT_HOME Ctrl-HOme -- CT_END Ctrl-End -- KC_SFTUP RShift when held, Up arrow when tapped -- KC_RAISESPC _RAISE layer mod when held, space when tapped -- KC_LOWERSPC _LOWER layer mod when held, space when tapped -- KC_TSTOG toggles between volume and Alt-Tab encoder control -- - When EMOTICON_ENABLE = yes -- EMO_SHRUG `\_("/)_/` -- EMO_CONFUSE (*_*) -- EMD_TEARS (T_T) -- EMO_NERVOUS (~_~;) -- EMO_JOY (^o^) -- EMO_SAD :'-( - - -AVAILABLE ENCODER ACTIONS: -- void encoder_action_volume(bool clockwise); -- void encoder_action_mediatrack(bool clockwise); -- void encoder_action_navword(bool clockwise); -- void encoder_action_navpage(bool clockwise); -- -- uint8_t get_selected_layer(void); -- void encoder_action_layerchange(bool clockwise); -- -- void encoder_action_rgb_speed(bool clockwise); -- void encoder_action_rgb_hue(bool clockwise); -- void encoder_action_rgb_saturation(bool clockwise); -- void encoder_action_rgb_brightness(bool clockwise); -- void encoder_action_rgb_mode(bool clockwise); -- -- void encoder_action_alttabscroll(bool clockwise) -- void encoder_toggle_alttabscroll(void); - -ENABLE FEATURES your keymap rules.mk ---------------------------------------- - -STARTUP_NUMLOCK_ON = yes -- turns on NUMLOCK by default - -ENCODER_DEFAULTACTIONS_ENABLE = yes -- Enabled default encoder funtions -- When enabled, use this in the keymap for an additional encoder processing -- bool encoder_update_keymap(uint8_t index, bool clockwise) - -OPTION: set ENCODER_DEFAULTACTIONS_INDEX to the encoder number if the encoder is not index 0 - -TD_LSFT_CAPSLOCK_ENABLE = yes -- This will enable double tap on Left Shift to toggle CAPSLOCK -- KC_LSFTCAPS to bind to left Shift to enable feature -- KC_LSFTCAPSWIN does the same thing but will not turn on CAPS when Win Lkey is disabled - -IDLE_TIMEOUT_ENABLE = yes -- Enables Timer functionality; for RGB idle timeouts that can be changed dynamically -- When enabled, use this in the keymap for an additional matrix processing: void matrix_scan_keymap(void) - -EMOTICON_ENABLE -- adds EMO_ keycodes for text emojis - -INVERT_NUMLOCK_INDICATOR -- inverts the Num lock indicator, LED is on when num lock is off - -ALTTAB_SCROLL_ENABLE -- When ENCODER_DEFAULTACTIONS_ENABLE = yes, - Enables Alt-Tab scrolling functions in default encoder, - bind KS_TSTOG to a key to enable/disable Alt-Tab vs Volume control -- When defining your own encoder functions use encoder_action_alttabscroll(bool clockwise) to assign the encodr action - - -FUNCTIONS ------------------------- -- u16int_t get_timeout_threshold(void) // returns the current timeout threshold -- void timeout_update_threshold(bool increase) // change threshold: true = increase, false = decrease -- void timeout_reset_timer(void) // resets timer (put in process_record_user if you override it) -- void timeout_tick_timer(void) // registers time ticks (put in maxtrix_scan_user if you override it) - -Other Functions: -- activate_numlock(bool turn_on) // true = turn on NUM LOCK, false = off - -KEYMAP LEVEL ADDITIONAL PROCESSING FUNCTIONS -- bool process_record_keymap(uint16_t keycode, keyrecord_t *record) -- void keyboard_post_init_keymap(void) - -LIST OF COMPATIBLE KEYMAPS -- gmmk/pro/ansi -- keebio/quefrency/rev3 -- mechwild/mercutio -- mechwild/murphpad -- mechwild/OBE -- kbdfans/kdb67 -- nopunin10did/kastenwagen48 - diff --git a/users/jonavin/rules.mk b/users/jonavin/rules.mk deleted file mode 100644 index 4f65db27b9..0000000000 --- a/users/jonavin/rules.mk +++ /dev/null @@ -1,29 +0,0 @@ -SRC += jonavin.c -ifdef ENCODER_ENABLE - # include encoder related code when enabled - ifeq ($(strip $(ENCODER_DEFAULTACTIONS_ENABLE)), yes) - OPT_DEFS += -DENCODER_DEFAULTACTIONS_ENABLE - endif - ifeq ($(strip $(ALTTAB_SCROLL_ENABLE)), yes) - OPT_DEFS += -DALTTAB_SCROLL_ENABLE - endif - SRC += jonavin_encoder.c -endif -ifeq ($(strip $(TD_LSFT_CAPSLOCK_ENABLE)), yes) - OPT_DEFS += -DTD_LSFT_CAPSLOCK_ENABLE -endif -ifeq ($(strip $(IDLE_TIMEOUT_ENABLE)), yes) - OPT_DEFS += -DIDLE_TIMEOUT_ENABLE -endif -ifeq ($(strip $(STARTUP_NUMLOCK_ON)), yes) - OPT_DEFS += -DSTARTUP_NUMLOCK_ON -endif -ifeq ($(strip $(COLEMAK_LAYER_ENABLE)), yes) - OPT_DEFS += -DCOLEMAK_LAYER_ENABLE -endif -ifeq ($(strip $(EMOTICON_ENABLE)), yes) - OPT_DEFS += -DEMOTICON_ENABLE -endif -ifeq ($(strip $(INVERT_NUMLOCK_INDICATOR)), yes) - OPT_DEFS += -DINVERT_NUMLOCK_INDICATOR -endif |