summaryrefslogtreecommitdiffstats
path: root/users
diff options
context:
space:
mode:
authorAlex Ong <the.onga@gmail.com>2019-01-04 19:43:45 +1100
committerAlex Ong <the.onga@gmail.com>2019-01-04 19:43:45 +1100
commit2bb2977c133646c4e056960e72029270d77cc1eb (patch)
tree235d491f992121ac1716c5bf2fafb80983748576 /users
parenta55c838961c89097ab849ed6cb1f261791e6b9b4 (diff)
parent47c91fc7f75ae0a477e55b687aa0fc30da0a283c (diff)
Merge branch 'master' into debounce_refactor
# Conflicts: # tmk_core/common/keyboard.c
Diffstat (limited to 'users')
-rw-r--r--users/333fred/333fred.h11
-rw-r--r--users/333fred/333fred_config.h1
-rw-r--r--users/arkag/arkag.c528
-rw-r--r--users/arkag/arkag.h152
-rw-r--r--users/arkag/config.h6
-rw-r--r--users/arkag/mechmini2.jpgbin0 -> 3548191 bytes
-rw-r--r--users/arkag/readme.md42
-rw-r--r--users/arkag/rules.mk1
-rw-r--r--users/bocaj/bocaj.c200
-rw-r--r--users/bocaj/bocaj.h190
-rw-r--r--users/bocaj/config.h4
-rw-r--r--users/bocaj/process_records.c149
-rw-r--r--users/bocaj/process_records.h52
-rw-r--r--users/bocaj/readme.md110
-rw-r--r--users/bocaj/rules.mk30
-rw-r--r--users/bocaj/send_unicode.c106
-rw-r--r--users/bocaj/send_unicode.h (renamed from users/drashna/drashna_unicode.h)10
-rw-r--r--users/bocaj/tap_dances.c1
-rw-r--r--users/bocaj/tap_dances.h12
-rw-r--r--users/bocaj/wrappers.h37
-rw-r--r--users/doogle999/doogle999.c460
-rw-r--r--users/doogle999/doogle999.h99
-rw-r--r--users/doogle999/readme.md41
-rw-r--r--users/doogle999/rules.mk14
-rw-r--r--users/drashna/.gitlab-ci.yml78
-rw-r--r--users/drashna/config.h41
-rw-r--r--users/drashna/drashna.c383
-rw-r--r--users/drashna/drashna.h319
-rw-r--r--users/drashna/process_records.c178
-rw-r--r--users/drashna/process_records.h101
-rw-r--r--users/drashna/readme.md97
-rw-r--r--users/drashna/rgb_stuff.c129
-rw-r--r--users/drashna/rgb_stuff.h9
-rw-r--r--users/drashna/rules.mk11
-rw-r--r--users/drashna/send_unicode.h71
-rw-r--r--users/drashna/tap_dances.c11
-rw-r--r--users/drashna/tap_dances.h12
-rw-r--r--users/drashna/template.c102
-rw-r--r--users/drashna/template.h8
-rw-r--r--users/drashna/wrappers.h171
-rw-r--r--users/edvorakjp/edvorakjp.c222
-rw-r--r--users/edvorakjp/edvorakjp.h37
-rw-r--r--users/edvorakjp/edvorakjp_process_record.c214
-rw-r--r--users/edvorakjp/edvorakjp_status.c75
-rw-r--r--users/edvorakjp/edvorakjp_tap_dance.c71
-rw-r--r--users/edvorakjp/readme.md12
-rw-r--r--users/edvorakjp/rules.mk8
-rwxr-xr-xusers/ishtob/config.h3
-rw-r--r--users/ishtob/ishtob.h164
-rw-r--r--users/jarred/config.h50
-rw-r--r--users/jarred/jarred.c15
-rw-r--r--users/jarred/jarred.h8
-rw-r--r--users/jarred/rules.mk15
-rw-r--r--users/kageurufu/config.h4
-rw-r--r--users/kageurufu/custom_rgb.c18
-rw-r--r--users/kageurufu/custom_rgb.h3
-rw-r--r--users/kageurufu/kageurufu.c12
-rw-r--r--users/kageurufu/kageurufu.h5
-rw-r--r--users/kageurufu/layouts.h58
-rw-r--r--users/kageurufu/process_records.c44
-rw-r--r--users/kageurufu/process_records.h27
-rw-r--r--users/kageurufu/readme.md14
-rw-r--r--users/kageurufu/rules.mk15
-rw-r--r--users/kuatsure/kuatsure.h2
-rw-r--r--users/kuatsure/rules.mk2
-rw-r--r--users/mechmerlin/changelog.md14
-rw-r--r--users/mechmerlin/config.h5
-rw-r--r--users/mechmerlin/mechmerlin.c20
-rw-r--r--users/mechmerlin/mechmerlin.h17
-rw-r--r--users/mechmerlin/readme.md40
-rw-r--r--users/mechmerlin/rules.mk1
-rw-r--r--users/mtdjr/mtdjr.c2
-rw-r--r--users/mtdjr/mtdjr.h2
-rw-r--r--users/replicaJunction/config.h6
-rw-r--r--users/romus/README.md45
-rw-r--r--users/romus/config.h8
-rw-r--r--users/romus/romus.c557
-rw-r--r--users/romus/romus.h272
-rw-r--r--users/romus/rules.mk24
-rw-r--r--users/sigma/config.h21
-rw-r--r--users/sigma/rules.mk3
-rw-r--r--users/sigma/sigma.c276
-rw-r--r--users/sigma/sigma.h58
-rw-r--r--users/spacebarracecar/config.h0
-rw-r--r--users/spacebarracecar/readme.md111
-rw-r--r--users/spacebarracecar/rules.mk5
-rw-r--r--users/spacebarracecar/spacebarracecar.c342
-rw-r--r--users/spacebarracecar/spacebarracecar.h241
-rw-r--r--users/talljoe/config.h7
-rw-r--r--users/talljoe/rules.mk2
-rw-r--r--users/talljoe/talljoe.c85
-rw-r--r--users/talljoe/talljoe.h76
-rw-r--r--users/talljoe/tapdance.c148
-rw-r--r--users/turbomech/backupturbomech.c1
-rw-r--r--users/wanleg/config.h26
-rw-r--r--users/wanleg/rules.mk35
-rw-r--r--users/wanleg/tapdances.c242
-rw-r--r--users/wanleg/wanleg.c75
-rw-r--r--users/wanleg/wanleg.h115
-rw-r--r--users/xtonhasvim/fancylighting.c11
-rw-r--r--users/xtonhasvim/fancylighting.h9
-rw-r--r--users/xtonhasvim/xtonhasvim.h6
-rw-r--r--users/zer09/config.h6
-rw-r--r--users/zer09/tap_dance.c27
-rw-r--r--users/zer09/zer09.h10
105 files changed, 6541 insertions, 1485 deletions
diff --git a/users/333fred/333fred.h b/users/333fred/333fred.h
index 3b6f21133b..443930a6b1 100644
--- a/users/333fred/333fred.h
+++ b/users/333fred/333fred.h
@@ -4,11 +4,12 @@
#define BASE 0
#define CODE 1 // code layer
-#define SYMB 2
-#define MDIA 3 // media keys
-#define VIM 4
-#define GAME 5
-#define GAME_ARROW 6
+#define CODEFLOW 2
+#define SYMB 3
+#define MDIA 4 // media keys
+#define VIM 5
+#define GAME 6
+#define GAME_ARROW 7
// Tap dance config shared between my keyboards
enum tap_dance_declarations {
diff --git a/users/333fred/333fred_config.h b/users/333fred/333fred_config.h
index 7c637d8d36..b158e2d5a2 100644
--- a/users/333fred/333fred_config.h
+++ b/users/333fred/333fred_config.h
@@ -1,4 +1,3 @@
#pragma once
-#define PREVENT_STUCK_MODIFIERS
#define PERMISSIVE_HOLD
diff --git a/users/arkag/arkag.c b/users/arkag/arkag.c
new file mode 100644
index 0000000000..212d06de67
--- /dev/null
+++ b/users/arkag/arkag.c
@@ -0,0 +1,528 @@
+#include "arkag.h"
+
+/*
+ Current Layout and Keeb:
+ https://github.com/arkag/qmk_firmware/blob/master/keyboards/mechmini/v2/keymaps/arkag/keymap.c
+*/
+
+// Start: Written by konstantin: vomindoraan
+#include <ctype.h>
+#include <stdlib.h>
+#include <string.h>
+
+void send_unicode_hex_string(const char *str) {
+ if (!str) { return; } // Saftey net
+ while (*str) {
+ // Find the next code point (token) in the string
+ for (; *str == ' '; str++);
+ size_t n = strcspn(str, " "); // Length of the current token
+ char code_point[n+1];
+ strncpy(code_point, str, n);
+ code_point[n] = '\0'; // Make sure it's null-terminated
+
+ // Normalize the code point: make all hex digits lowercase
+ for (char *p = code_point; *p; p++) {
+ *p = tolower(*p);
+ }
+
+ // Send the code point as a Unicode input string
+ unicode_input_start();
+ send_string(code_point);
+ unicode_input_finish();
+ str += n; // Move to the first ' ' (or '\0') after the current token
+ }
+}
+// End: Written by konstantin: vomindoraan
+
+// Start: Written by Chris Lewis
+#ifndef MIN
+#define MIN(a,b) (((a)<(b))?(a):(b))
+#endif
+#ifndef MAX
+#define MAX(a,b) (((a)>(b))?(a):(b))
+#endif
+
+#define TYPING_SPEED_MAX_VALUE 200
+uint8_t typing_speed = 0;
+
+void velocikey_accelerate() {
+ if (typing_speed < TYPING_SPEED_MAX_VALUE) typing_speed += (TYPING_SPEED_MAX_VALUE / 50);
+}
+
+void velocikey_decelerate() {
+ static uint16_t decay_timer = 0;
+
+ if (timer_elapsed(decay_timer) > 500 || decay_timer == 0) {
+ if (typing_speed > 0) typing_speed -= 1;
+ //Decay a little faster at half of max speed
+ if (typing_speed > TYPING_SPEED_MAX_VALUE / 2) typing_speed -= 1;
+ //Decay even faster at 3/4 of max speed
+ if (typing_speed > TYPING_SPEED_MAX_VALUE / 4 * 3) typing_speed -= 3;
+ decay_timer = timer_read();
+ }
+}
+
+uint8_t velocikey_match_speed(uint8_t minValue, uint8_t maxValue) {
+ return MAX(minValue, maxValue - (maxValue - minValue) * ((float)typing_speed / TYPING_SPEED_MAX_VALUE));
+}
+// End: Written by Chris Lewis
+
+uint8_t current_os,
+ mod_primary_mask,
+ fade_interval,
+ num_extra_flashes_off = 0;
+Color underglow,
+ flash_color,
+ saved_color,
+ hsv_none = {0,0,0};
+flashState flash_state = no_flash;
+fadeState fade_state = add_fade;
+activityState state = boot;
+
+void set_color (Color new, bool update) {
+ rgblight_sethsv_eeprom_helper(new.h, new.s, new.v, update);
+}
+
+void save_color(Color to_save) {
+ saved_color = to_save;
+}
+
+void reset_color(void) {
+ underglow = saved_color;
+}
+
+Color mod_color(Color current_color, bool should_add, uint8_t change_amount) {
+ save_color(underglow);
+ int addlim = 359 - change_amount;
+ int sublim = change_amount;
+ int leftovers;
+ if (should_add) {
+ if (current_color.h <= addlim) {
+ current_color.h += change_amount;
+ } else {
+ leftovers = (359 + change_amount) % 359;
+ current_color.h = 0 + leftovers;
+ }
+ } else {
+ if (current_color.h >= sublim) {
+ current_color.h -= change_amount;
+ } else {
+ leftovers = change_amount - current_color.h;
+ current_color.h = 359 - leftovers;
+ }
+ }
+ return current_color;
+}
+
+void check_state (void) {
+ static uint16_t active_timer;
+ if (!active_timer) {active_timer = timer_read();}
+ static bool activated, deactivated, slept;
+ switch (state) {
+ case active:
+ if (!activated) {
+ if (slept) {rgblight_mode_noeeprom(1);}
+ activated = true;
+ deactivated = false;
+ slept = false;
+ }
+ fade_interval = velocikey_match_speed(1, 25);
+ if (timer_elapsed(active_timer) < INACTIVE_DELAY) {return;}
+ active_timer = timer_read();
+ state = inactive;
+ return;
+
+ case inactive:
+ if (!deactivated) {
+ deactivated = true;
+ activated = false;
+ slept = false;
+ }
+ velocikey_decelerate();
+ fade_interval = velocikey_match_speed(1, 25);
+ if (timer_elapsed(active_timer) < SLEEP_DELAY) {return;}
+ state = sleeping;
+ return;
+
+ case sleeping:
+ if (!slept) {
+ rgblight_mode_noeeprom(4);
+ slept = true;
+ activated = false;
+ deactivated = false;
+ }
+ return;
+
+ case boot:
+ return;
+ }
+}
+
+void fade_rgb (void) {
+ static uint16_t fade_timer;
+ if (state == boot) {return;}
+ if (!fade_timer) {fade_timer = timer_read();}
+ if (timer_elapsed(fade_timer) < fade_interval) {return;}
+ switch (fade_state) {
+ case add_fade:
+ if (underglow.h == 359) {
+ fade_state = sub_fade;
+ return;
+ }
+ underglow.h = underglow.h + 1;
+ break;
+
+ case sub_fade:
+ if (underglow.h == 0) {
+ fade_state = add_fade;
+ return;
+ }
+ underglow.h = underglow.h - 1;
+ break;
+ }
+ fade_timer = timer_read();
+ if (flash_state == no_flash) {
+ set_color(underglow, false);
+ }
+}
+
+void flash_rgb (void) {
+ static uint16_t flash_timer;
+ switch(flash_state) {
+ case no_flash:
+ return;
+
+ case flash_off:
+ if (!flash_timer) {flash_timer = timer_read();}
+ if (timer_elapsed(flash_timer) >= LED_FLASH_DELAY) {
+ set_color(hsv_none, false);
+ flash_timer = timer_read();
+ flash_state = flash_on;
+ }
+ return;
+
+ case flash_on:
+ if (timer_elapsed(flash_timer) >= LED_FLASH_DELAY) {
+ set_color(flash_color, false);
+ flash_timer = timer_read();
+ if (num_extra_flashes_off > 0) {
+ flash_state = flash_off;
+ num_extra_flashes_off--;
+ } else {
+ set_color(underglow, false);
+ flash_state = no_flash;
+ }
+ }
+ return;
+ }
+}
+
+void set_os (uint8_t os, bool update) {
+ current_os = os;
+ if (update) {
+ eeprom_update_byte(EECONFIG_USERSPACE, current_os);
+ }
+ switch (os) {
+ case OS_MAC:
+ set_unicode_input_mode(UC_OSX);
+ underglow = (Color){ 300, 255, 255 };
+ mod_primary_mask = MOD_GUI_MASK;
+ break;
+ case OS_WIN:
+ set_unicode_input_mode(UC_WINC);
+ underglow = (Color){ 180, 255, 255 };
+ mod_primary_mask = MOD_CTL_MASK;
+ break;
+ case OS_NIX:
+ set_unicode_input_mode(UC_LNX);
+ underglow = (Color){ 60, 255, 255 };
+ mod_primary_mask = MOD_CTL_MASK;
+ break;
+ default:
+ underglow = (Color){ 0, 0, 255 };
+ mod_primary_mask = MOD_CTL_MASK;
+ }
+ set_color(underglow, update);
+ flash_color = underglow;
+ flash_state = flash_off;
+ state = boot;
+ num_extra_flashes_off = 1;
+}
+
+void tap_key(uint8_t keycode) {
+ register_code(keycode);
+ unregister_code(keycode);
+}
+
+// register GUI if Mac or Ctrl if other
+void pri_mod(bool press) {
+ if (press) {
+ if (current_os == OS_MAC) {
+ register_code(KC_LGUI);
+ } else {
+ register_code(KC_LCTL);
+ }
+ } else {
+ if (current_os == OS_MAC) {
+ unregister_code(KC_LGUI);
+ } else {
+ unregister_code(KC_LCTL);
+ }
+ }
+}
+
+// register Ctrl if Mac or GUI if other
+void sec_mod(bool press) {
+ if (press) {
+ if (current_os == OS_MAC) {
+ register_code(KC_LCTL);
+ } else {
+ register_code(KC_LGUI);
+ }
+ } else {
+ if (current_os == OS_MAC) {
+ unregister_code(KC_LCTL);
+ } else {
+ unregister_code(KC_LGUI);
+ }
+ }
+}
+
+void surround_type(uint8_t num_of_chars, uint16_t keycode, bool use_shift) {
+ if (use_shift) {
+ regi