diff options
Diffstat (limited to 'users/d4mation')
-rw-r--r-- | users/d4mation/config.h | 1 | ||||
-rw-r--r-- | users/d4mation/d4mation.c | 37 | ||||
-rw-r--r-- | users/d4mation/d4mation.h | 17 | ||||
-rw-r--r-- | users/d4mation/macros.c | 160 | ||||
-rw-r--r-- | users/d4mation/macros.h | 23 | ||||
-rw-r--r-- | users/d4mation/rules.mk | 15 | ||||
-rw-r--r-- | users/d4mation/tap-dance.c | 6 | ||||
-rw-r--r-- | users/d4mation/tap-dance.h | 7 | ||||
-rw-r--r-- | users/d4mation/tap-hold.c | 28 | ||||
-rw-r--r-- | users/d4mation/tap-hold.h | 5 | ||||
-rw-r--r-- | users/d4mation/zalgo.c | 21 | ||||
-rw-r--r-- | users/d4mation/zalgo.h | 5 |
12 files changed, 0 insertions, 325 deletions
diff --git a/users/d4mation/config.h b/users/d4mation/config.h deleted file mode 100644 index 3140a036f7..0000000000 --- a/users/d4mation/config.h +++ /dev/null @@ -1 +0,0 @@ -#define FORCE_NKRO
\ No newline at end of file diff --git a/users/d4mation/d4mation.c b/users/d4mation/d4mation.c deleted file mode 100644 index 5d1092cd72..0000000000 --- a/users/d4mation/d4mation.c +++ /dev/null @@ -1,37 +0,0 @@ -#include "d4mation.h" - -__attribute__ ((weak)) -bool process_record_keymap( uint16_t keycode, keyrecord_t *record ) { - /* If you want macros specific to your keymap, you need to define this function in your keymap */ - return true; -} - -__attribute__ ((weak)) -void matrix_init_keymap(void) { - /* If you want a matrix init specific to your keymap, you need to define this function in your keymap */ -} - -__attribute__ ((weak)) -void matrix_scan_keymap(void) { - /* If you want a matrix scan specific to your keymap, you need to define this function in your keymap */ -} - -__attribute__((weak)) -void eeconfig_init_keymap( void ) {} - -/* process_record_user() is called in macros.c */ - -void matrix_init_user( void ) { - matrix_init_keymap(); -} - -void matrix_scan_user( void ) { - matrix_scan_keymap(); -} - -void eeconfig_init_user( void ) { - - eeconfig_init_keymap(); - keyboard_init(); - -}
\ No newline at end of file diff --git a/users/d4mation/d4mation.h b/users/d4mation/d4mation.h deleted file mode 100644 index 94c63526db..0000000000 --- a/users/d4mation/d4mation.h +++ /dev/null @@ -1,17 +0,0 @@ -#pragma once - -#include "quantum.h" - -#ifdef UNICODE_ENABLE -#include "macros.h" -#endif - -#ifdef TAP_DANCE_ENABLE -#include "tap-dance.h" -#endif - -bool process_record_keymap( uint16_t keycode, keyrecord_t *record ); - -void matrix_init_keymap( void ); - -void matrix_scan_keymap( void );
\ No newline at end of file diff --git a/users/d4mation/macros.c b/users/d4mation/macros.c deleted file mode 100644 index a8ca119b12..0000000000 --- a/users/d4mation/macros.c +++ /dev/null @@ -1,160 +0,0 @@ -#include "d4mation.h" -#include "tap-hold.h" -#include "zalgo.h" -#include "macros.h" - -bool zalgo_enabled = false; - -bool process_record_user( uint16_t keycode, keyrecord_t *record ) { - - switch ( keycode ) { - - case _GRAVE_ESC: - - /* Send ` on Tap, Esc on Hold */ - tap_or_hold( record, KC_GRAVE, KC_ESC ); - - return false; - break; - - case PHPOPEN: - - if ( record->event.pressed ) { - - tap_code16( S( KC_COMMA ) ); - tap_code16( S( KC_SLASH ) ); - - tap_code( KC_P ); - tap_code( KC_H ); - tap_code( KC_P ); - - } - - return false; - break; - - case PHPCLSE: - - if ( record->event.pressed ) { - tap_code16( S( KC_SLASH ) ); - tap_code16( S( KC_DOT ) ); - } - - return false; - break; - - #ifdef UNICODE_ENABLE - - case AMENO: - - if ( record->event.pressed ) { - - send_unicode_string( "༼ つ ◕_◕ ༽つ" ); - - } - - return false; - break; - - case MAGIC: - - if ( record->event.pressed ) { - - send_unicode_string( "(∩ ͡° ͜ʖ ͡°)⊃━☆゚. *" ); - - } - - return false; - break; - - case LENNY: - - if ( record->event.pressed ) { - - send_unicode_string( "( ͡° ͜ʖ ͡°)" ); - - } - - return false; - break; - - case DISFACE: - - if ( record->event.pressed ) { - send_unicode_string( "ಠ_ಠ" ); - } - - return false; - break; - - case TFLIP: - - if ( record->event.pressed ) { - - send_unicode_string( "(╯°□°)╯︵┻━┻" ); - - } - - return false; - break; - - case TPUT: - - if ( record->event.pressed ) { - - send_unicode_string( "┬──┬ ノ( ゜-゜ノ)" ); - - } - - return false; - break; - - case SHRUG: - - if ( record->event.pressed ) { - - send_unicode_string( "¯\\_(ツ)_/¯" ); - - } - - return false; - break; - - case ZALGO: /* Toggles Zalgo Text mode */ - - if ( record->event.pressed ) { - zalgo_enabled = ! zalgo_enabled; - } - - return false; - break; - - #endif - - default: - - #ifdef UNICODE_ENABLE - - if ( zalgo_enabled ) { - - if ( keycode < KC_A || ( keycode > KC_0 && keycode < KC_MINUS ) || keycode > KC_SLASH ) { - process_record_keymap( keycode, record ); - return true; - } - - if ( record->event.pressed ) { - zalgo_text( keycode ); - } - - return false; - } - - #endif - - break; - } - - process_record_keymap( keycode, record ); - return true; - -};
\ No newline at end of file diff --git a/users/d4mation/macros.h b/users/d4mation/macros.h deleted file mode 100644 index e69d30dec2..0000000000 --- a/users/d4mation/macros.h +++ /dev/null @@ -1,23 +0,0 @@ -#pragma once - -#include "quantum.h" -#include "tap-hold.h" -#include "zalgo.h" - -#define SCRGB LCTL( LSFT( LGUI( KC_4 ) ) ) /* Mac Screen Area Grab shortcut (Puts into Clipboard) */ -#define SLEEP LALT( LGUI( KC_SYSTEM_POWER ) ) /* Instant sleep on Mac, rather than having to hold down the button */ - -enum custom_keycodes { - _GRAVE_ESC = SAFE_RANGE, /* Prefixed with underscore to prevent conflicts */ - PHPOPEN, /* <?php */ - PHPCLSE, /* ?> */ - AMENO, - MAGIC, - LENNY, - DISFACE, - TFLIP, - TPUT, - SHRUG, - ZALGO, - NEW_SAFE_RANGE -};
\ No newline at end of file diff --git a/users/d4mation/rules.mk b/users/d4mation/rules.mk deleted file mode 100644 index f677721b42..0000000000 --- a/users/d4mation/rules.mk +++ /dev/null @@ -1,15 +0,0 @@ -SRC += d4mation.c \ - tap-hold.c \ - macros.c - -BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite -LTO_ENABLE = yes -MOUSEKEY_ENABLE = no - -ifeq ($(strip $(UNICODE_ENABLE)), yes) - SRC += zalgo.c -endif - -ifeq ($(strip $(TAP_DANCE_ENABLE)), yes) - SRC += tap-dance.c -endif
\ No newline at end of file diff --git a/users/d4mation/tap-dance.c b/users/d4mation/tap-dance.c deleted file mode 100644 index 928a932611..0000000000 --- a/users/d4mation/tap-dance.c +++ /dev/null @@ -1,6 +0,0 @@ -#include "tap-dance.h" - -tap_dance_action_t tap_dance_actions[] = { - /* Tap once/hold for Shift, tap twice for Caps Lock */ - [SHIFT_CAPS] = ACTION_TAP_DANCE_DOUBLE( KC_LSFT, KC_CAPS ) -};
\ No newline at end of file diff --git a/users/d4mation/tap-dance.h b/users/d4mation/tap-dance.h deleted file mode 100644 index 0087c4a6e7..0000000000 --- a/users/d4mation/tap-dance.h +++ /dev/null @@ -1,7 +0,0 @@ -#pragma once - -#include "quantum.h" - -enum tap_dance { - SHIFT_CAPS = 0 -};
\ No newline at end of file diff --git a/users/d4mation/tap-hold.c b/users/d4mation/tap-hold.c deleted file mode 100644 index 0c5119f995..0000000000 --- a/users/d4mation/tap-hold.c +++ /dev/null @@ -1,28 +0,0 @@ -#include "tap-hold.h" - -#ifndef TAP_HOLD_TIME -#define TAP_HOLD_TIME 200 -#endif - -uint16_t tap_hold_timer; - -void tap_or_hold( keyrecord_t *record, uint16_t tap, uint16_t hold ) { - - if ( record->event.pressed ) { - tap_hold_timer = timer_read(); - } else { - - if ( tap_hold_timer && - timer_elapsed( tap_hold_timer ) > TAP_HOLD_TIME ) { - /* Held down then released */ - tap_code( hold ); - } else { - /* Quickly Tapped */ - tap_code( tap ); - } - - tap_hold_timer = 0; - - } - -}
\ No newline at end of file diff --git a/users/d4mation/tap-hold.h b/users/d4mation/tap-hold.h deleted file mode 100644 index 52dc0830f8..0000000000 --- a/users/d4mation/tap-hold.h +++ /dev/null @@ -1,5 +0,0 @@ -#pragma once - -#include "quantum.h" - -void tap_or_hold( keyrecord_t *record, uint16_t tap, uint16_t hold );
\ No newline at end of file diff --git a/users/d4mation/zalgo.c b/users/d4mation/zalgo.c deleted file mode 100644 index 3a1688e053..0000000000 --- a/users/d4mation/zalgo.c +++ /dev/null @@ -1,21 +0,0 @@ -#include "zalgo.h" - -void zalgo_text( uint16_t keycode ) { - - tap_code( keycode ); - - int number = ( rand() % ( 8 + 1 - 2 ) ) + 2; - unsigned int index; - - unicode_input_start(); - - for ( index = 0; index < number; index++ ) { - - uint16_t hex = ( rand() % ( 0x036F + 1 - 0x0300 ) ) + 0x0300; - register_hex( hex ); - - } - - unicode_input_finish(); - -}
\ No newline at end of file diff --git a/users/d4mation/zalgo.h b/users/d4mation/zalgo.h deleted file mode 100644 index f59fc035b9..0000000000 --- a/users/d4mation/zalgo.h +++ /dev/null @@ -1,5 +0,0 @@ -#pragma once - -#include "quantum.h" - -void zalgo_text( uint16_t keycode );
\ No newline at end of file |