summaryrefslogtreecommitdiffstats
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rw-r--r--users/arkag/arkag.c2
-rw-r--r--users/bbaserdem/bb-macro.c2
-rw-r--r--users/bbaserdem/bb-rgb.c15
-rw-r--r--users/bbaserdem/bb-rgb.h2
-rw-r--r--users/bbaserdem/config.h2
-rw-r--r--users/brandonschlack/process_records.h6
-rw-r--r--users/brandonschlack/rgb_bs.c4
-rw-r--r--users/byungyoonc/saturated_solid_multisplash.h2
-rw-r--r--users/cedrikl/cedrikl.c2
-rw-r--r--users/curry/oled.c2
-rw-r--r--users/curry/rgb_matrix_user.c7
-rw-r--r--users/cwebster2/my_miryoku.h2
-rw-r--r--users/davidkristoffersen/util/functions.c8
-rw-r--r--users/davidkristoffersen/util/functions.h2
-rw-r--r--users/dennytom/chording_engine/engine.part.14
-rw-r--r--users/dennytom/chording_engine/tests/minunit.h4
-rw-r--r--users/drashna/callbacks.c2
-rw-r--r--users/drashna/drashna.c12
-rw-r--r--users/drashna/keyrecords/autocorrection/autocorrection.c304
-rw-r--r--users/drashna/keyrecords/autocorrection/autocorrection.h17
-rw-r--r--users/drashna/keyrecords/autocorrection/autocorrection_data.h1
-rwxr-xr-xusers/drashna/keyrecords/autocorrection/make_autocorrection_data.py298
-rw-r--r--users/drashna/keyrecords/autocorrection/readme.md301
-rw-r--r--users/drashna/keyrecords/process_records.c6
-rw-r--r--users/drashna/keyrecords/process_records.h3
-rw-r--r--users/drashna/keyrecords/tap_dance.md2
-rw-r--r--users/drashna/keyrecords/tap_dances.c2
-rw-r--r--users/drashna/keyrecords/unicode.c2
-rw-r--r--users/drashna/oled/oled_stuff.c17
-rw-r--r--users/drashna/pointing/pointing.c119
-rw-r--r--users/drashna/pointing/pointing.h2
-rw-r--r--users/drashna/post_config.h4
-rw-r--r--users/drashna/rgb/rgb_matrix_config.h1
-rw-r--r--users/drashna/rgb/rgb_matrix_stuff.c13
-rw-r--r--users/drashna/rules.mk10
-rw-r--r--users/drashna/split/transport_sync.c10
-rw-r--r--users/edvorakjp/edvorakjp.h4
-rw-r--r--users/gary/gary.h1
-rw-r--r--users/gordon/gordon.h8
-rw-r--r--users/gourdo1/gourdo1.c2
-rw-r--r--users/gourdo1/gourdo1.h3
-rw-r--r--users/issmirnov/rows.h2
-rw-r--r--users/jjerrell/wrappers.h6
-rw-r--r--users/jonavin/jonavin.c2
-rw-r--r--users/jonavin/jonavin.h1
-rw-r--r--users/muppetjones/wrappers.h2
-rw-r--r--users/ninjonas/ninjonas.h4
-rw-r--r--users/not-quite-neo/nqn-keys-on-quertz-de-latin1.h8
-rw-r--r--users/pcoves/tapDance.c8
-rw-r--r--users/romus/romus.h2
-rw-r--r--users/scheiklp/koy_keys_on_quertz_de_latin1.h8
-rw-r--r--users/sigma/sigma.c2
-rw-r--r--users/snowe/wrappers.h2
-rw-r--r--users/spidey3/config.h2
-rw-r--r--users/spidey3/layer_rgb.c33
-rw-r--r--users/spidey3/rules.mk2
-rw-r--r--users/spidey3/spidey3.c25
-rw-r--r--users/spidey3/spidey3.h11
-rw-r--r--users/spidey3/spidey3_unicode.c (renamed from users/spidey3/unicode.c)2
-rw-r--r--users/spidey3/spidey3_unicode.h (renamed from users/spidey3/unicode.h)0
-rw-r--r--users/tominabox1/config.h2
-rw-r--r--users/tominabox1/dimple_rgb.c10
-rw-r--r--users/tominabox1/tominabox1.c4
-rw-r--r--users/twschum/xtonhasvim.c4
-rw-r--r--users/uqs/uqs.c20
-rw-r--r--users/vitoni/rgb_matrix_effects.h6
-rw-r--r--users/vitoni/vitoni.c8
-rw-r--r--users/xtonhasvim/xtonhasvim.c4
-rw-r--r--users/xulkal/config.h2
-rw-r--r--users/xulkal/layouts.h4
-rw-r--r--users/zigotica/combos.c2
71 files changed, 213 insertions, 1185 deletions
diff --git a/users/arkag/arkag.c b/users/arkag/arkag.c
index da85d4f6d4..00abbf2ae3 100644
--- a/users/arkag/arkag.c
+++ b/users/arkag/arkag.c
@@ -190,7 +190,7 @@ void set_os (uint8_t os, bool update) {
}
switch (os) {
case OS_MAC:
- set_unicode_input_mode(UC_OSX);
+ set_unicode_input_mode(UC_MAC);
underglow = (Color){ 213, 255, 255 };
break;
case OS_WIN:
diff --git a/users/bbaserdem/bb-macro.c b/users/bbaserdem/bb-macro.c
index a84a7bbc21..6a722e6db1 100644
--- a/users/bbaserdem/bb-macro.c
+++ b/users/bbaserdem/bb-macro.c
@@ -80,7 +80,7 @@ const uint32_t PROGMEM unicode_map[] = {
bool process_record_macro(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
// AltGr + Caps should change the oled layout variable
- case KC_CAPSLOCK:
+ case KC_CAPS_LOCK:
if (record->event.pressed) {
if (get_mods() & MOD_BIT(KC_RALT)) {
userspace_config.layout = (userspace_config.layout + 1) % 3;
diff --git a/users/bbaserdem/bb-rgb.c b/users/bbaserdem/bb-rgb.c
index bdb7f12bbd..49b91129ba 100644
--- a/users/bbaserdem/bb-rgb.c
+++ b/users/bbaserdem/bb-rgb.c
@@ -23,7 +23,7 @@
// Allow hooking into the RGB matrix indications using keymap code
-// Modulates the brightness of indicator
+// Modulates the brightness of indicator
RGB helper_dimmer(uint8_t r, uint8_t g, uint8_t b) {
RGB output;
output.r = r / 2;
@@ -63,12 +63,12 @@ __attribute__ ((weak)) bool rgb_matrix_indicators_advanced_keymap(uint8_t led_mi
return false;
}
// Set RGB state depending on layer
-void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
+bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
uint8_t thisInd = 3;
RGB thisCol;
// Load keymap hooks
if(rgb_matrix_indicators_advanced_keymap(led_min, led_max)) {
- return;
+ return false;
}
// Grab color info
switch (get_highest_layer(layer_state)) {
@@ -110,6 +110,7 @@ void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
break;
}
helper_painter(led_min, led_max, thisCol, thisInd);
+ return false;
}
// Hook into shutdown code to make all perkey LED's red on hitting reset
@@ -120,11 +121,3 @@ void shutdown_rgb(void) {
// Delay until this registers
while(timer_elapsed(timer_start) < 250) {wait_ms(1);}
}
-
-// Hook into suspend code
-void suspend_power_down_rgb(void) {
- rgb_matrix_set_suspend_state(true);
-}
-void suspend_wakeup_init_rgb(void) {
- rgb_matrix_set_suspend_state(false);
-}
diff --git a/users/bbaserdem/bb-rgb.h b/users/bbaserdem/bb-rgb.h
index 62b6da9f2f..3e96b997fe 100644
--- a/users/bbaserdem/bb-rgb.h
+++ b/users/bbaserdem/bb-rgb.h
@@ -21,7 +21,7 @@
*/
// For custom indicators
-void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max);
+bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max);
// Hook into shutdown code
void shutdown_rgb(void);
void suspend_wakeup_init_rgb(void);
diff --git a/users/bbaserdem/config.h b/users/bbaserdem/config.h
index 477378102b..3c467d5e7d 100644
--- a/users/bbaserdem/config.h
+++ b/users/bbaserdem/config.h
@@ -121,7 +121,7 @@
// For perkey leds
#ifdef RGB_MATRIX_ENABLE
// This is not working
-//# define RGB_DISABLE_TIMEOUT 1800000
+//# define RGB_MATRIX_TIMEOUT 1800000
# define RGB_DISABLE_WHEN_USB_SUSPENDED true
// Start using this mode
# define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_RAINBOW_BEACON
diff --git a/users/brandonschlack/process_records.h b/users/brandonschlack/process_records.h
index 057233fb0e..b377ffaed2 100644
--- a/users/brandonschlack/process_records.h
+++ b/users/brandonschlack/process_records.h
@@ -119,9 +119,9 @@ void matrix_scan_cmd_tab(void);
* Common shortcuts used in macOS
* Reference: https://support.apple.com/en-us/HT201236
*/
-#define MC_POWR KC_POWER // Power (KC_POWER)
-#define MC_SLEP LOPT(LCMD(KC_POWER)) // Sleep (Option-Command-Power)
-#define MC_SLPD LCTL(LSFT(KC_POWER)) // Sleep Display (Control-Shift-Power)
+#define MC_POWR KC_PWR // Power (KC_PWR)
+#define MC_SLEP LOPT(LCMD(KC_PWR)) // Sleep (Option-Command-Power)
+#define MC_SLPD LCTL(LSFT(KC_PWR)) // Sleep Display (Control-Shift-Power)
#define MC_LOCK LCTL(LCMD(KC_Q)) // Lock Screen (Control-Command-Q)
#define MC_MSSN KC_FIND // Mission Control: Configure karabiner for find -> mission_control
#define MC_LHPD KC_MENU // Launchpad: Configure karabiner for menu -> launchpad
diff --git a/users/brandonschlack/rgb_bs.c b/users/brandonschlack/rgb_bs.c
index 1abf785b49..6b88503f41 100644
--- a/users/brandonschlack/rgb_bs.c
+++ b/users/brandonschlack/rgb_bs.c
@@ -75,7 +75,7 @@ void rgb_theme_step_reverse(void) {
rgb_theme_color_t get_rgb_theme_color(uint8_t index) {
rgb_theme_t theme = get_rgb_theme();
- size_t rgb_theme_color_max = sizeof theme.colors / sizeof *theme.colors;
+ size_t rgb_theme_color_max = ARRAY_SIZE(theme.colors);
if (index == _ADJUST) {
return default_adjust;
@@ -98,7 +98,7 @@ void rgb_theme_layer(layer_state_t state) {
#ifdef RGB_MATRIX_ENABLE
void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue, uint8_t led_type) {
- for (int i = 0; i < DRIVER_LED_TOTAL; i++) {
+ for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
if (!HAS_ANY_FLAGS(g_led_config.flags[i], led_type)) {
rgb_matrix_set_color( i, red, green, blue );
}
diff --git a/users/byungyoonc/saturated_solid_multisplash.h b/users/byungyoonc/saturated_solid_multisplash.h
index f302348524..c6850a7873 100644
--- a/users/byungyoonc/saturated_solid_multisplash.h
+++ b/users/byungyoonc/saturated_solid_multisplash.h
@@ -43,7 +43,7 @@ static bool saturated_solid_multisplash(effect_params_t* params) {
RGB rgb = rgb_matrix_hsv_to_rgb(hsv);
rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
}
- return led_max < DRIVER_LED_TOTAL;
+ return led_max < RGB_MATRIX_LED_COUNT;
}
# endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
diff --git a/users/cedrikl/cedrikl.c b/users/cedrikl/cedrikl.c
index 0479e22b5d..f9f4f1fbc0 100644
--- a/users/cedrikl/cedrikl.c
+++ b/users/cedrikl/cedrikl.c
@@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// 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_NUMLOCK);
+ tap_code(KC_NUM_LOCK);
}
}
diff --git a/users/curry/oled.c b/users/curry/oled.c
index 5a8f0de61d..89112af121 100644
--- a/users/curry/oled.c
+++ b/users/curry/oled.c
@@ -41,7 +41,7 @@ void add_keylog(uint16_t keycode) {
keylog_str[i] = keylog_str[i - 1];
}
- if (keycode < (sizeof(code_to_name) / sizeof(char))) {
+ if (keycode < ARRAY_SIZE(code_to_name)) {
keylog_str[0] = pgm_read_byte(&code_to_name[keycode]);
}
diff --git a/users/curry/rgb_matrix_user.c b/users/curry/rgb_matrix_user.c
index 96f1f1d4f3..3c2008aa01 100644
--- a/users/curry/rgb_matrix_user.c
+++ b/users/curry/rgb_matrix_user.c
@@ -36,7 +36,7 @@ void check_default_layer(uint8_t mode, uint8_t type) {
}
}
-void rgb_matrix_indicators_user(void) {
+bool rgb_matrix_indicators_user(void) {
if (userspace_config.rgb_layer_change && rgb_matrix_config.enable) {
switch (get_highest_layer(layer_state)) {
case _RAISE:
@@ -55,6 +55,7 @@ void rgb_matrix_indicators_user(void) {
}
check_default_layer(0, LED_FLAG_MODIFIER);
}
+ return false;
}
bool process_record_user_rgb(uint16_t keycode, keyrecord_t *record) {
@@ -131,7 +132,7 @@ void rgb_matrix_layer_helper(uint8_t hue, uint8_t sat, uint8_t val, uint8_t mode
uint16_t time = scale16by8(RGBLED_NUM, speed / 8);
hsv.v = scale8(abs8(sin8(time) - 128) * 2, hsv.v);
RGB rgb = hsv_to_rgb(hsv);
- for (uint8_t i = 0; i < DRIVER_LED_TOTAL; i++) {
+ for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
if (HAS_FLAGS(g_led_config.flags[i], led_type)) {
rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
}
@@ -141,7 +142,7 @@ void rgb_matrix_layer_helper(uint8_t hue, uint8_t sat, uint8_t val, uint8_t mode
default: // Solid Color
{
RGB rgb = hsv_to_rgb(hsv);
- for (uint8_t i = 0; i < DRIVER_LED_TOTAL; i++) {
+ for (uint8_t i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
if (HAS_FLAGS(g_led_config.flags[i], led_type)) {
rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
}
diff --git a/users/cwebster2/my_miryoku.h b/users/cwebster2/my_miryoku.h
index 2c8ab6fe2b..8b167cd619 100644
--- a/users/cwebster2/my_miryoku.h
+++ b/users/cwebster2/my_miryoku.h
@@ -56,7 +56,7 @@
#define _______NUM______L3____ KC_GRV, KC_1, KC_2, KC_3, KC_BSLS
#define _______NUM_______T____ KC_DOT, KC_0, KC_MINS
-#define _______FN_______L1____ KC_F12, KC_F7, KC_F8, KC_F9, KC_SYSREQ
+#define _______FN_______L1____ KC_F12, KC_F7, KC_F8, KC_F9, KC_SYRQ
#define _______FN_______L2____ KC_F11, KC_F4, KC_F5, KC_F6, KC_TRNS
#define _______FN_______L3____ KC_F10, KC_F1, KC_F2, KC_F3, KC_PAUSE
#define _______FN________T____ KC_MENU, KC_SPC, KC_TAB
diff --git a/users/davidkristoffersen/util/functions.c b/users/davidkristoffersen/util/functions.c
index 781d8f214d..3ab4ace2d6 100644
--- a/users/davidkristoffersen/util/functions.c
+++ b/users/davidkristoffersen/util/functions.c
@@ -33,14 +33,14 @@ code_set_t EN_SHIFT_CODES [] = {
const shift_code_t SHIFT_CODES [] = {
#ifdef LAYER_NO
{.lang = LAYER_NO,
- .size = ARR_LEN(NO_SHIFT_CODES),
+ .size = ARRAY_SIZE(NO_SHIFT_CODES),
.codes = NO_SHIFT_CODES},
#endif
{.lang = LAYER_EN,
- .size = ARR_LEN(EN_SHIFT_CODES),
+ .size = ARRAY_SIZE(EN_SHIFT_CODES),
.codes = EN_SHIFT_CODES},
};
-const int SHIFT_CODES_SIZE = ARR_LEN(SHIFT_CODES);
+const int SHIFT_CODES_SIZE = ARRAY_SIZE(SHIFT_CODES);
#endif
#ifdef LAYER_NO
@@ -72,7 +72,7 @@ const code_set_t EN2NO_CODES [] = {
{KC_DLR, NO_DLR},
{KC_GRV, NO_GRV}
};
-const int EN2NO_CODES_SIZE = ARR_LEN(EN2NO_CODES);
+const int EN2NO_CODES_SIZE = ARRAY_SIZE(EN2NO_CODES);
#endif
// Check if layer is an active default layer
diff --git a/users/davidkristoffersen/util/functions.h b/users/davidkristoffersen/util/functions.h
index eee1dadc57..5fef010694 100644
--- a/users/davidkristoffersen/util/functions.h
+++ b/users/davidkristoffersen/util/functions.h
@@ -15,8 +15,6 @@
// Return false if test equal false
#define HANDLE_FALSE(bool) if (!bool) return false;
-// Generic array lenght define
-#define ARR_LEN(arr) (sizeof(arr) / sizeof(arr)[0])
// Printf-like functionality for send_string
#define SEND_VAR(str, ...) \
do { \
diff --git a/users/dennytom/chording_engine/engine.part.1 b/users/dennytom/chording_engine/engine.part.1
index 73df4cdeaa..a2b39284f5 100644
--- a/users/dennytom/chording_engine/engine.part.1
+++ b/users/dennytom/chording_engine/engine.part.1
@@ -85,10 +85,10 @@ bool handle_US_ANSI_shifted_keys(int16_t keycode, bool in) {
regular_keycode = KC_EQUAL;
break;
case KC_LEFT_CURLY_BRACE:
- regular_keycode = KC_LBRACKET;
+ regular_keycode = KC_LEFT_BRACKET;
break;
case KC_RIGHT_CURLY_BRACE:
- regular_keycode = KC_RBRACKET;
+ regular_keycode = KC_RIGHT_BRACKET;
break;
case KC_PIPE:
regular_keycode = KC_BSLASH;
diff --git a/users/dennytom/chording_engine/tests/minunit.h b/users/dennytom/chording_engine/tests/minunit.h
index ed71b62533..c7ddc9e444 100644
--- a/users/dennytom/chording_engine/tests/minunit.h
+++ b/users/dennytom/chording_engine/tests/minunit.h
@@ -113,9 +113,9 @@ enum keycodes {
KC_PLUS,
KC_EQUAL,
KC_LEFT_CURLY_BRACE,
- KC_LBRACKET,
+ KC_LEFT_BRACKET,
KC_RIGHT_CURLY_BRACE,
- KC_RBRACKET,
+ KC_RIGHT_BRACKET,
KC_PIPE,
KC_BSLASH,
KC_COLON,
diff --git a/users/drashna/callbacks.c b/users/drashna/callbacks.c
index 111b5f79d7..40383f124f 100644
--- a/users/drashna/callbacks.c
+++ b/users/drashna/callbacks.c
@@ -49,7 +49,7 @@ void keyboard_post_init_user(void) {
keyboard_post_init_transport_sync();
#endif
#ifdef I2C_SCANNER_ENABLE
- matrix_scan_i2c();
+ keyboard_post_init_i2c();
#endif
keyboard_post_init_keymap();
diff --git a/users/drashna/drashna.c b/users/drashna/drashna.c
index 91f3a06b7c..d63f05b590 100644
--- a/users/drashna/drashna.c
+++ b/users/drashna/drashna.c
@@ -129,3 +129,15 @@ void keyboard_post_init_i2c(void) {
scan_timer = timer_read();
}
#endif
+
+#if defined(AUTOCORRECT_ENABLE) && defined(AUDIO_ENABLE)
+# ifdef USER_SONG_LIST
+float autocorrect_song[][2] = SONG(MARIO_GAMEOVER);
+# else
+float autocorrect_song[][2] = SONG(PLOVER_GOODBYE_SOUND);
+# endif
+bool apply_autocorrect(uint8_t backspaces, const char *str) {
+ PLAY_SONG(autocorrect_song);
+ return true;
+}
+#endif
diff --git a/users/drashna/keyrecords/autocorrection/autocorrection.c b/users/drashna/keyrecords/autocorrection/autocorrection.c
deleted file mode 100644
index 90fdba8f5e..0000000000
--- a/users/drashna/keyrecords/autocorrection/autocorrection.c
+++ /dev/null
@@ -1,304 +0,0 @@
-// Copyright 2021 Google LLC
-// Copyright 2021 @filterpaper
-// SPDX-License-Identifier: Apache-2.0
-// Original source: https://getreuer.info/posts/keyboards/autocorrection
-
-#include "autocorrection.h"
-#include <string.h>
-
-#if __has_include("autocorrection_data.h")
-# pragma GCC push_options
-# pragma GCC optimize("O0")
-# include "autocorrection_data.h"
-# ifndef AUTOCORRECTION_MIN_LENGTH
-# define AUTOCORRECTION_MIN_LENGTH AUTOCORRECT_MIN_LENGTH
-# endif
-# ifndef AUTOCORRECTION_MAX_LENGTH
-# define AUTOCORRECTION_MAX_LENGTH AUTOCORRECT_MAX_LENGTH
-# endif
-# define autocorrection_data autocorrect_data
-# if AUTOCORRECTION_MIN_LENGTH < 4
-# error Minimum Length is too short and may cause overflows
-# endif
-# if DICTIONARY_SIZE > SIZE_MAX
-# error Dictionary size excees maximum size permitted
-# endif
-
-static uint8_t typo_buffer[AUTOCORRECT_MAX_LENGTH] = {KC_SPC};
-static uint8_t typo_buffer_size = 1;
-
-/**
- * @brief function for querying the enabled state of autocorrect
- *
- * @return true if enabled
- * @return false if disabled
- */
-bool autocorrect_is_enabled(void) {
- return userspace_config.autocorrection;
-}
-
-/**
- * @brief Enables autocorrect and saves state to eeprom
- *
- */
-void autocorrect_enable(void) {
- userspace_config.autocorrection = true;
- eeconfig_update_user(userspace_config.raw);
-}
-
-/**
- * @brief Disables autocorrect and saves state to eeprom
- *
- */
-void autocorrect_disable(void) {