keymap.c (5460B)
1 #include QMK_KEYBOARD_H 2 3 #define RANDOM_STRING_DELAY 100 4 5 enum custom_keycodes { 6 RANDOM_STRING_MACRO = SAFE_RANGE 7 }; 8 9 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 10 LAYOUT( 11 RANDOM_STRING_MACRO 12 ) 13 }; 14 15 const char sentence_01[] PROGMEM = "I hope you have a great day!"; 16 const char sentence_02[] PROGMEM = "You are an awesome person."; 17 const char sentence_03[] PROGMEM = "I wish I knew you better, you seem nice!"; 18 const char sentence_04[] PROGMEM = "Your views restore my faith in humanity"; 19 const char sentence_05[] PROGMEM = "You are as cool as a norm-critical disney princess"; 20 const char sentence_06[] PROGMEM = "You have impeccable manners."; 21 const char sentence_07[] PROGMEM = "You are making me smile"; 22 const char sentence_08[] PROGMEM = "You are making a difference"; 23 const char sentence_09[] PROGMEM = "You bring out the best in other people"; 24 const char sentence_10[] PROGMEM = "You are all that and a super-size bag of chips."; 25 const char sentence_11[] PROGMEM = "You are not someone I pretend to not see in public."; 26 const char sentence_12[] PROGMEM = "Are you a beaver, because damn."; 27 const char sentence_13[] PROGMEM = "I bet you make babies smile."; 28 const char sentence_14[] PROGMEM = "You are awkward, in a cute way. Like an elevator ride, but with puppies."; 29 const char sentence_15[] PROGMEM = "Looking like a complete idiot with you is really fun."; 30 const char sentence_16[] PROGMEM = "If you cooked something really bad, I would tell you instead of eating it."; 31 const char sentence_17[] PROGMEM = "I love how passionate you are about your hobby."; 32 const char sentence_18[] PROGMEM = "Our conversations always make me feel better."; 33 const char sentence_19[] PROGMEM = "It is amazing how far out of your way you go to help people."; 34 const char sentence_20[] PROGMEM = "I am so glad that you wrote something here."; 35 const char sentence_21[] PROGMEM = "Hey you! How nice to see a friendly person in my feed!"; 36 const char sentence_22[] PROGMEM = "I hope we know each other for a long time."; 37 const char sentence_23[] PROGMEM = "I bet if Britney Spears knew you, 2008 would have gone a lot differently."; 38 const char sentence_24[] PROGMEM = "I would trust you with my passwords."; 39 const char sentence_25[] PROGMEM = "You are a great problem solver"; 40 const char sentence_26[] PROGMEM = "I would love to hear you laugh!"; 41 const char sentence_27[] PROGMEM = "Please, have a monologue about your week, I just want to listen to you!"; 42 const char sentence_28[] PROGMEM = "You are very far from being Trump."; 43 const char sentence_29[] PROGMEM = "I think my dog might like you more than me"; 44 const char sentence_30[] PROGMEM = "I feel like you would be a great person to do a group project with"; 45 const char sentence_31[] PROGMEM = "I bet animals love you"; 46 const char sentence_32[] PROGMEM = "I bet even Kanye would like you more than himself"; 47 const char sentence_33[] PROGMEM = "You are just doing a great job at life"; 48 const char sentence_34[] PROGMEM = "I like how you are challenging me."; 49 const char sentence_35[] PROGMEM = "You would do be a great mother!"; 50 const char sentence_36[] PROGMEM = "I... Baked bread for you."; 51 const char sentence_37[] PROGMEM = "Wow. You."; 52 const char sentence_38[] PROGMEM = "You would not have let that balrog pass!"; 53 const char sentence_39[] PROGMEM = "Thank you."; 54 const char sentence_40[] PROGMEM = "You would be standing out in a crowd"; 55 const char sentence_41[] PROGMEM = "Your sense of style is amazing."; 56 const char sentence_42[] PROGMEM = "You have a beautiful mind."; 57 const char sentence_43[] PROGMEM = "I like that big juicy brain of yours"; 58 const char sentence_44[] PROGMEM = "I would share my cinnamon bun with you"; 59 const char sentence_45[] PROGMEM = "I like you more than i like my moms apple pie"; 60 const char sentence_46[] PROGMEM = "You give me the same feeling as a summers night"; 61 const char sentence_47[] PROGMEM = "I enjoy you more than the click of my mechanical switch"; 62 const char sentence_48[] PROGMEM = "I would let you pop my bubble wrap"; 63 const char sentence_49[] PROGMEM = "Being near you is like being inside of a poem"; 64 65 PGM_P const sentences[] PROGMEM = { 66 sentence_01, 67 sentence_02, 68 sentence_03, 69 sentence_04, 70 sentence_05, 71 sentence_06, 72 sentence_07, 73 sentence_08, 74 sentence_09, 75 sentence_10, 76 sentence_11, 77 sentence_12, 78 sentence_13, 79 sentence_14, 80 sentence_15, 81 sentence_16, 82 sentence_17, 83 sentence_18, 84 sentence_19, 85 sentence_20, 86 sentence_21, 87 sentence_22, 88 sentence_23, 89 sentence_24, 90 sentence_25, 91 sentence_26, 92 sentence_27, 93 sentence_28, 94 sentence_29, 95 sentence_30, 96 sentence_31, 97 sentence_32, 98 sentence_33, 99 sentence_34, 100 sentence_35, 101 sentence_36, 102 sentence_37, 103 sentence_38, 104 sentence_39, 105 sentence_40, 106 sentence_41, 107 sentence_42, 108 sentence_43, 109 sentence_44, 110 sentence_45, 111 sentence_46, 112 sentence_47, 113 sentence_48, 114 sentence_49 115 }; 116 117 bool process_record_user(uint16_t keycode, keyrecord_t *record) { 118 if (record->event.pressed) { 119 int sentences_size = ARRAY_SIZE(sentences); 120 int i = rand() % sentences_size; 121 122 switch (keycode) { 123 case RANDOM_STRING_MACRO: 124 send_string_with_delay_P((PGM_P)pgm_read_word(&(sentences[i])), RANDOM_STRING_DELAY); 125 tap_code(KC_ENT); 126 127 return false; 128 } 129 } 130 131 return true; 132 }