#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 );
}
case PHPCLSE:
tap_code16( S( KC_DOT ) );
#ifdef UNICODE_ENABLE
case AMENO:
send_unicode_string( "༼ つ ◕_◕ ༽つ" );
case MAGIC:
send_unicode_string( "(∩ ͡° ͜ʖ ͡°)⊃━☆゚. *" );
case LENNY:
send_unicode_string( "( ͡° ͜ʖ ͡°)" );
case DISFACE:
send_unicode_string( "ಠ_ಠ" );
case TFLIP:
send_unicode_string( "(╯°□°)╯︵┻━┻" );
case TPUT:
send_unicode_string( "┬──┬ ノ( ゜-゜ノ)" );
case SHRUG:
send_unicode_string( "¯\\_(ツ)_/¯" );
case ZALGO: /* Toggles Zalgo Text mode */
zalgo_enabled = ! zalgo_enabled;
#endif
default:
if ( zalgo_enabled ) {
if ( keycode < KC_A || ( keycode > KC_0 && keycode < KC_MINUS ) || keycode > KC_SLASH ) {
process_record_keymap( keycode, record );
return true;
zalgo_text( keycode );
};