summaryrefslogtreecommitdiff
path: root/keyboards/handwired/nicekey/keymaps
diff options
context:
space:
mode:
authorLukas Klingsbo <lukas.klingsbo@gmail.com>2018-07-24 01:13:11 +0200
committerDrashna Jaelre <drashna@live.com>2018-07-23 16:13:11 -0700
commit9ce35e823b945aca427f11e1a4ae26d6ea672ff4 (patch)
treec3910b45c44d38662d6f4ed62978f04451074592 /keyboards/handwired/nicekey/keymaps
parent1225120b92411f4fa1a9dc79af2fd85bd5aa6dcc (diff)
Keyboard: Base for the nicekey keyboard (#3475)
* Base for the nicekey keyboard * Fixed formatting of readme
Diffstat (limited to 'keyboards/handwired/nicekey/keymaps')
-rw-r--r--keyboards/handwired/nicekey/keymaps/default/keymap.c75
1 files changed, 75 insertions, 0 deletions
diff --git a/keyboards/handwired/nicekey/keymaps/default/keymap.c b/keyboards/handwired/nicekey/keymaps/default/keymap.c
new file mode 100644
index 0000000000..5732377156
--- /dev/null
+++ b/keyboards/handwired/nicekey/keymaps/default/keymap.c
@@ -0,0 +1,75 @@
+#include QMK_KEYBOARD_H
+
+enum custom_keycodes {
+ RANDOM_STRING_MACRO = SAFE_RANGE
+};
+
+const int delay = 100;
+const char *sentences[] = {
+ "I hope you have a great day!\n",
+ "You are an awesome person.\n",
+ "I wish I knew you better, you seem nice!\n",
+ "Your views restore my faith in humanity\n",
+ "You are as cool as a norm-critical disney princess\n",
+ "You have impeccable manners.\n",
+ "You are making me smile\n",
+ "You are making a difference\n",
+ "You bring out the best in other people\n",
+ "You are all that and a super-size bag of chips.\n",
+ "You are not someone I pretend to not see in public.\n",
+ "Are you a beaver, because damn.\n",
+ "I bet you make babies smile.\n",
+ "You are awkward, in a cute way. Like an elevator ride, but with puppies.\n",
+ "Looking like a complete idiot with you is really fun.\n",
+ "If you cooked something really bad, I would tell you instead of eating it.\n",
+ "I love how passionate you are about your hobby.\n",
+ "Our conversations always make me feel better.\n",
+ "It is amazing how far out of your way you go to help people.\n",
+ "I am so glad that you wrote something here.\n",
+ "Hey you! How nice to see a friendly person in my feed!\n",
+ "I hope we know each other for a long time.\n",
+ "I bet if Britney Spears knew you, 2008 would have gone a lot differently.\n",
+ "I would trust you with my passwords.\n",
+ "You are a great problem solver\n",
+ "I would love to hear you laugh!\n",
+ "Please, have a monologue about your week, I just want to listen to you!\n",
+ "You are very far from being Trump.\n",
+ "I think my dog might like you more than me\n",
+ "I feel like you would be a great person to do a group project with\n",
+ "I bet animals love you\n",
+ "I bet even Kanye would like you more than himself\n",
+ "You are just doing a great job at life\n",
+ "I like how you are challenging me.\n",
+ "You would do be a great mother!\n",
+ "I... Baked bread for you.\n",
+ "Wow. You.\n",
+ "You would not have let that balrog pass!\n",
+ "Thank you.\n",
+ "You would be standing out in a crowd\n",
+ "Your sense of style is amazing.\n",
+ "You have a beautiful mind.\n",
+ "I like that big juicy brain of yours\n",
+ "I would share my cinnamon bun with you\n",
+ "I like you more than i like my moms apple pie\n",
+ "You give me the same feeling as a summers night\n",
+ "I enjoy you more than the click of my mechanical switch\n",
+ "I would let you pop my bubble wrap\n",
+ "Being near you is like being inside of a poem\n"
+};
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ if (record->event.pressed) {
+ int sentences_size = sizeof(sentences) / sizeof(sentences[0]);
+ int i = rand() % sentences_size;
+ switch(keycode) {
+ case RANDOM_STRING_MACRO:
+ send_string_with_delay(sentences[i], delay);
+ return false;
+ }
+ }
+ return true;
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ {{ RANDOM_STRING_MACRO }}
+};