summaryrefslogtreecommitdiff
path: root/keyboards/spaceman
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2024-02-15 09:42:01 +0000
committerGitHub <noreply@github.com>2024-02-15 09:42:01 +0000
commit5233a62b20d975140f3bc4b808ca6e74a148d54c (patch)
treeaa90b523f0a82abf7cd77c2bfbb6e811110cedef /keyboards/spaceman
parentf8123c27ad75cbb7147618dd5cf98474b5c150e0 (diff)
Remove obvious user keymaps, keyboards/{s,t}* edition. (#23084)
Diffstat (limited to 'keyboards/spaceman')
-rw-r--r--keyboards/spaceman/2_milk/keymaps/binary/keymap.c8
-rw-r--r--keyboards/spaceman/2_milk/keymaps/binary/readme.md2
-rw-r--r--keyboards/spaceman/2_milk/keymaps/copypasta/keymap.c8
-rw-r--r--keyboards/spaceman/2_milk/keymaps/copypasta/readme.md2
-rw-r--r--keyboards/spaceman/2_milk/keymaps/copypasta_macfancy/config.h6
-rw-r--r--keyboards/spaceman/2_milk/keymaps/copypasta_macfancy/keymap.c56
-rw-r--r--keyboards/spaceman/2_milk/keymaps/copypasta_macfancy/readme.md18
-rw-r--r--keyboards/spaceman/2_milk/keymaps/copypasta_macfancy/rules.mk4
-rw-r--r--keyboards/spaceman/2_milk/keymaps/encg/config.h20
-rw-r--r--keyboards/spaceman/2_milk/keymaps/encg/keymap.c196
-rw-r--r--keyboards/spaceman/2_milk/keymaps/encg/readme.md26
-rw-r--r--keyboards/spaceman/2_milk/keymaps/encg/rules.mk1
-rw-r--r--keyboards/spaceman/2_milk/keymaps/excessbread/keymap.c8
-rw-r--r--keyboards/spaceman/2_milk/keymaps/excessbread/readme.md2
14 files changed, 0 insertions, 357 deletions
diff --git a/keyboards/spaceman/2_milk/keymaps/binary/keymap.c b/keyboards/spaceman/2_milk/keymaps/binary/keymap.c
deleted file mode 100644
index c8df8e9ff0..0000000000
--- a/keyboards/spaceman/2_milk/keymaps/binary/keymap.c
+++ /dev/null
@@ -1,8 +0,0 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 [0] = LAYOUT(
5 KC_P0,
6 KC_P1
7 )
8};
diff --git a/keyboards/spaceman/2_milk/keymaps/binary/readme.md b/keyboards/spaceman/2_milk/keymaps/binary/readme.md
deleted file mode 100644
index 5ebcbd3e58..0000000000
--- a/keyboards/spaceman/2_milk/keymaps/binary/readme.md
+++ /dev/null
@@ -1,2 +0,0 @@
1# Binary keymap
20 and 1 that's it
diff --git a/keyboards/spaceman/2_milk/keymaps/copypasta/keymap.c b/keyboards/spaceman/2_milk/keymaps/copypasta/keymap.c
deleted file mode 100644
index c82a6ff216..0000000000
--- a/keyboards/spaceman/2_milk/keymaps/copypasta/keymap.c
+++ /dev/null
@@ -1,8 +0,0 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 [0] = LAYOUT(
5 RCTL(KC_C),
6 RCTL(KC_V)
7 )
8};
diff --git a/keyboards/spaceman/2_milk/keymaps/copypasta/readme.md b/keyboards/spaceman/2_milk/keymaps/copypasta/readme.md
deleted file mode 100644
index 6c2f4e8fbf..0000000000
--- a/keyboards/spaceman/2_milk/keymaps/copypasta/readme.md
+++ /dev/null
@@ -1,2 +0,0 @@
1# Copy/Paste Keymap
2![Picture](https://i.imgur.com/7LMZZrL.png)
diff --git a/keyboards/spaceman/2_milk/keymaps/copypasta_macfancy/config.h b/keyboards/spaceman/2_milk/keymaps/copypasta_macfancy/config.h
deleted file mode 100644
index bbd93cfc16..0000000000
--- a/keyboards/spaceman/2_milk/keymaps/copypasta_macfancy/config.h
+++ /dev/null
@@ -1,6 +0,0 @@
1// Copyright 2022 Ryan Neff (@JellyTitan)
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#define TAPPING_TERM 200
diff --git a/keyboards/spaceman/2_milk/keymaps/copypasta_macfancy/keymap.c b/keyboards/spaceman/2_milk/keymaps/copypasta_macfancy/keymap.c
deleted file mode 100644
index 93c0f0eee3..0000000000
--- a/keyboards/spaceman/2_milk/keymaps/copypasta_macfancy/keymap.c
+++ /dev/null
@@ -1,56 +0,0 @@
1// Copyright 2022 Ryan Neff (@JellyTitan)
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#include QMK_KEYBOARD_H
5
6enum tapdance_keycodes {
7 TD_KEY_1,
8 TD_KEY_2
9};
10
11void dance_key_one(tap_dance_state_t *state, void *user_data) {
12 if (state->count == 1) {
13 /* Copy for Mac. */
14 /* Windows & Linux use Ctrl+C: tap_code16(C(KC_C)) */
15 tap_code16(G(KC_C));
16 reset_tap_dance(state);
17 } else if (state->count == 2) {
18 /* Cut for Mac. */
19 /* Windows & Linux use Ctrl+X: tap_code16(C(KC_X)) */
20 tap_code16(G(KC_X));
21 reset_tap_dance(state);
22 } else if (state->count == 3) {
23 /* Plain old Tab. */
24 tap_code(KC_TAB);
25 reset_tap_dance(state);
26 }
27}
28
29void dance_key_two(tap_dance_state_t *state, void *user_data) {
30 if (state->count == 1) {
31 /* Paste for Mac. */
32 /* Windows & Linux use Ctrl+V: tap_code16(C(KC_V)) */
33 tap_code16(G(KC_V));
34 reset_tap_dance(state);
35 } else if (state->count == 2) {
36 /* Paste as value Gui+Shift+V for Mac. */
37 /* Windows & Linux use Ctrl+Shift V: tap_code16(C(S(KC_V))) */
38 tap_code16(G(S(KC_V)));
39 reset_tap_dance(state);
40 } else if (state->count == 3) {
41 /* Tab between programs for mac Gui+Tab. */
42 /* Windows & Linux use Ctrl+Tab: tap_code16(C(KC_TAB)) */
43 tap_code16(G(KC_TAB));
44 reset_tap_dance(state);
45 }
46}
47
48tap_dance_action_t tap_dance_actions[] = {
49 [TD_KEY_1] = ACTION_TAP_DANCE_FN(dance_key_one),
50 [TD_KEY_2] = ACTION_TAP_DANCE_FN(dance_key_two)
51};
52
53const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
54 [0] = LAYOUT(TD(TD_KEY_1),
55 TD(TD_KEY_2))
56};
diff --git a/keyboards/spaceman/2_milk/keymaps/copypasta_macfancy/readme.md b/keyboards/spaceman/2_milk/keymaps/copypasta_macfancy/readme.md
deleted file mode 100644
index 722e7491bc..0000000000
--- a/keyboards/spaceman/2_milk/keymaps/copypasta_macfancy/readme.md
+++ /dev/null
@@ -1,18 +0,0 @@
1# Copypasta Macfancy Keymap for Milk 2%
2
3![copypasta_macfancy](https://i.imgur.com/7LMZZrL.png)
4
5Extra fancy copy/paste utilities for the Milk 2% keyboard on MacOS. Milk 2% designed by [Spaceman](https://github.com/Spaceboards/SpaceboardsHardware/tree/master/Keyboards/2%25%20Milk).
6
7Uses Tapping term for double and tripple tapping.
8Tapping speed can be adjusted with TAPPING_TERM in config.h
9
10### Key One
11- 1 Tap: Copy
12- 2 Taps: Cut
13- 3 Taps: Tab
14
15### Key Two
16- 1 Tap: Paste
17- 2 Taps: Paste as Value
18- 3 Taps: Tab between programs
diff --git a/keyboards/spaceman/2_milk/keymaps/copypasta_macfancy/rules.mk b/keyboards/spaceman/2_milk/keymaps/copypasta_macfancy/rules.mk
deleted file mode 100644
index 628a960a71..0000000000
--- a/keyboards/spaceman/2_milk/keymaps/copypasta_macfancy/rules.mk
+++ /dev/null
@@ -1,4 +0,0 @@
1# Copyright 2022 Ryan Neff (@JellyTitan)
2# SPDX-License-Identifier: GPL-2.0-or-later
3
4TAP_DANCE_ENABLE = yes # Tap Dance
diff --git a/keyboards/spaceman/2_milk/keymaps/encg/config.h b/keyboards/spaceman/2_milk/keymaps/encg/config.h
deleted file mode 100644
index abb80c2a34..0000000000
--- a/keyboards/spaceman/2_milk/keymaps/encg/config.h
+++ /dev/null
@@ -1,20 +0,0 @@
1/* Copyright 2020 encg
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18
19#define UNICODE_SELECTED_MODES UNICODE_MODE_MACOS, UNICODE_MODE_WINCOMPOSE
20#define UNICODE_CYCLE_PERSIST true
diff --git a/keyboards/spaceman/2_milk/keymaps/encg/keymap.c b/keyboards/spaceman/2_milk/keymaps/encg/keymap.c
deleted file mode 100644
index fab1debf02..0000000000
--- a/keyboards/spaceman/2_milk/keymaps/encg/keymap.c
+++ /dev/null
@@ -1,196 +0,0 @@
1/* Copyright 2020 encg
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include QMK_KEYBOARD_H
18#include <stdio.h>
19#include <stdlib.h>
20#include <time.h>
21
22enum my_keycodes {
23 SPIN = SAFE_RANGE,
24 RULES,
25};
26
27enum unicode_names {
28 COW,
29 BTTR,
30 CHIKN,
31 FISH,
32 SEED,
33 RENV,
34 MBAG,
35 FACE,
36 WING,
37 SIGN,
38 WAVE
39};
40
41const uint32_t unicode_map[] PROGMEM = {
42 [COW] = 0x1F404, // 🐄
43 [BTTR] = 0x1F9C8, // 🧈
44 [CHIKN] = 0x1F414, // 🐔
45 [FISH] = 0x1F3A3, // 🎣
46 [SEED] = 0x1F331, // 🌱
47 [RENV] = 0x1F9E7, // 🧧
48 [MBAG] = 0x1F4B0, // 💰
49 [FACE] = 0x1F911, // 🤑
50 [WING] = 0x1F4B8, // 💸
51 [SIGN] = 0x1F4B2, // 💲
52 [WAVE] = 0x1F44B, // 👋
53};
54
55/* Emojis stored in an array in order to be randomly accessed */
56const char* emoji[5] = {"🐄", "🧈", "🐔", "🎣", "🌱"};
57
58bool process_record_user(uint16_t keycode, keyrecord_t *record) {
59 switch (keycode) {
60 case SPIN:
61 if (record->event.pressed) {
62 /* Seed RNG used by rand() with timer_read() https://beta.docs.qmk.fm/developing-qmk/qmk-reference/ref_functions#software-timers */
63 srand(timer_read());
64 int rng1 = rand() % 5;
65 send_unicode_string(emoji[rng1]);
66 wait_ms(200);
67 int rng2 = rand() % 5;
68 send_unicode_string(emoji[rng2]);
69 wait_ms(200);
70 int rng3 = rand() % 5;
71 send_unicode_string(emoji[rng3]);
72 wait_ms(200);
73 if (rng1 == rng2 && rng1 == rng3) {
74 if (rng1 == 0) {
75 wait_ms(200);
76 SEND_STRING(" ");
77 send_unicode_string("🧧🧧🧧");
78 wait_ms(200);
79 SEND_STRING("\n");
80 } else if (rng1 == 1) {
81 wait_ms(200);
82 SEND_STRING(" ");
83 send_unicode_string("💰💰💰");
84 wait_ms(200);
85 SEND_STRING("\n");
86 } else if (rng1 == 2) {
87 wait_ms(200);
88 SEND_STRING(" ");
89 send_unicode_string("🤑🤑🤑");
90 wait_ms(200);
91 SEND_STRING("\n");
92 } else if (rng1 == 3) {
93 wait_ms(200);
94 SEND_STRING(" ");
95 send_unicode_string("💲💲💲");
96 wait_ms(200);
97 SEND_STRING("\n");
98 } else if (rng1 == 4) {
99 wait_ms(200);
100 SEND_STRING(" ");
101 send_unicode_string("📈📈📈");
102 wait_ms(200);
103 SEND_STRING("\n");
104 }
105 } else {
106 SEND_STRING(" ");
107 send_unicode_string("👋💸");
108 SEND_STRING("\n");
109 }
110 }
111 return false;
112 break;
113 case RULES:
114 if (record->event.pressed) {
115 send_unicode_string("🐄");
116 wait_ms(200);
117 send_unicode_string("🐄");
118 wait_ms(200);
119 send_unicode_string("🐄");
120 wait_ms(200);
121 SEND_STRING(" ");
122 send_unicode_string("🧧");
123 wait_ms(200);
124 send_unicode_string("🧧");
125 wait_ms(200);
126 send_unicode_string("🧧");
127 SEND_STRING("\n");
128 wait_ms(100);
129 send_unicode_string("🧈");
130 wait_ms(200);
131 send_unicode_string("🧈");
132 wait_ms(200);
133 send_unicode_string("🧈");
134 wait_ms(200);
135 SEND_STRING(" ");
136 send_unicode_string("💰");
137 wait_ms(200);
138 send_unicode_string("💰");
139 wait_ms(200);
140 send_unicode_string("💰");
141 SEND_STRING("\n");
142 wait_ms(100);
143 send_unicode_string("🐔");
144 wait_ms(200);
145 send_unicode_string("🐔");
146 wait_ms(200);
147 send_unicode_string("🐔");
148 wait_ms(200);
149 SEND_STRING(" ");
150 send_unicode_string("🤑");
151 wait_ms(200);
152 send_unicode_string("🤑");
153 wait_ms(200);
154 send_unicode_string("🤑");
155 SEND_STRING("\n");
156 wait_ms(100);
157 send_unicode_string("🎣");
158 wait_ms(200);
159 send_unicode_string("🎣");
160 wait_ms(200);
161 send_unicode_string("🎣");
162 wait_ms(200);
163 SEND_STRING(" ");
164 send_unicode_string("💲");
165 wait_ms(200);
166 send_unicode_string("💲");
167 wait_ms(200);
168 send_unicode_string("💲");
169 SEND_STRING("\n");
170 wait_ms(100);
171 send_unicode_string("🌱");
172 wait_ms(200);
173 send_unicode_string("🌱");
174 wait_ms(200);
175 send_unicode_string("🌱");
176 wait_ms(200);
177 SEND_STRING(" ");
178 send_unicode_string("📈");
179 wait_ms(200);
180 send_unicode_string("📈");
181 wait_ms(200);
182 send_unicode_string("📈");
183 SEND_STRING("\n\n");
184 }
185 return false;
186 break;
187 }
188 return false;
189};
190
191const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
192 [0] = LAYOUT(
193 SPIN, /* bottom button */
194 RULES /* top button */
195 )
196};
diff --git a/keyboards/spaceman/2_milk/keymaps/encg/readme.md b/keyboards/spaceman/2_milk/keymaps/encg/readme.md
deleted file mode 100644
index 73232ec32f..0000000000
--- a/keyboards/spaceman/2_milk/keymaps/encg/readme.md
+++ /dev/null
@@ -1,26 +0,0 @@
1# encg's Keymap
2
3## What is this?
4
5A simple slot machine emulator for the [2% Milk Keyboard](https://github.com/Spaceman/SpaceboardsHardware/tree/master/Keyboards/2%25%20Milk). This idea is based on the [implementation by /u/ln8r on /r/mechanicalkeyboards](https://www.reddit.com/r/MechanicalKeyboards/comments/hcw21b/2_milk_slot_machine/).
6
7## How does it work?
8
9The top button outputs all possible winning emoji combinations followed by a corresponding "score." Emojis are output one-by-one with a short delay to simulate the "slots" feel.
10
11![IMG](https://i.imgur.com/rUc3IOn.gif)
12
13The bottom button outputs 3 random emojis one by one. The random function takes `timer_read()` as its seed value [(referenced here)](https://beta.docs.qmk.fm/developing-qmk/qmk-reference/ref_functions#software-timers).
14
15![IMG](https://i.imgur.com/4EREsIq.png)
16
17## Unicode Setup
18
19This keymap's default unicode input mode is `UNICODE_MODE_WINCOMPOSE` which requires [WinCompose](https://github.com/samhocevar/wincompose). For other OSes, see [QMK documentation on unicode input modes](https://docs.qmk.fm/#/feature_unicode?id=input-modes).
20
21## Ideas for the future
22
23- [ ] Factor in emoji hierarchy into RNG algorithm
24- [ ] Random/Wildcard emoji
25- [ ] Keep a count for winng combinations
26- [ ] Implement tap dance for easily switching unicode input types
diff --git a/keyboards/spaceman/2_milk/keymaps/encg/rules.mk b/keyboards/spaceman/2_milk/keymaps/encg/rules.mk
deleted file mode 100644
index 502b2def76..0000000000
--- a/keyboards/spaceman/2_milk/keymaps/encg/rules.mk
+++ /dev/null
@@ -1 +0,0 @@
1UNICODEMAP_ENABLE = yes
diff --git a/keyboards/spaceman/2_milk/keymaps/excessbread/keymap.c b/keyboards/spaceman/2_milk/keymaps/excessbread/keymap.c
deleted file mode 100644
index a01b47f271..0000000000
--- a/keyboards/spaceman/2_milk/keymaps/excessbread/keymap.c
+++ /dev/null
@@ -1,8 +0,0 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 [0] = LAYOUT(
5 KC_LGUI,
6 KC_F11
7 )
8};
diff --git a/keyboards/spaceman/2_milk/keymaps/excessbread/readme.md b/keyboards/spaceman/2_milk/keymaps/excessbread/readme.md
deleted file mode 100644
index a6535e62cf..0000000000
--- a/keyboards/spaceman/2_milk/keymaps/excessbread/readme.md
+++ /dev/null
@@ -1,2 +0,0 @@
1# ExcessBread's keymap
2requested by excessbread