summaryrefslogtreecommitdiff
path: root/keyboards/yeehaw
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2024-08-26 07:51:22 +1000
committerGitHub <noreply@github.com>2024-08-26 07:51:22 +1000
commit45dc2499dc369ce0ac7a4868a01ffb18fbaf0384 (patch)
treede553a634ad4140405db6e325ad7bfb814b9a3ce /keyboards/yeehaw
parent8f6d2ac53cdde6d0befc9f86c326f56620dcfcc0 (diff)
Remove all via-enabled keymaps, including `via`. (#24322)
Diffstat (limited to 'keyboards/yeehaw')
-rw-r--r--keyboards/yeehaw/keymaps/via/keymap.c91
-rw-r--r--keyboards/yeehaw/keymaps/via/rules.mk1
2 files changed, 0 insertions, 92 deletions
diff --git a/keyboards/yeehaw/keymaps/via/keymap.c b/keyboards/yeehaw/keymaps/via/keymap.c
deleted file mode 100644
index 5fce32da8a..0000000000
--- a/keyboards/yeehaw/keymaps/via/keymap.c
+++ /dev/null
@@ -1,91 +0,0 @@
1 /* Copyright 2021 Caleb Lightfoot
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
19
20enum custom_keycodes {
21 YEEHAW = SAFE_RANGE,
22 SQUASHKB,
23};
24
25const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
26
27 [0] = LAYOUT(
28 KC_VOLU,
29 KC_VOLD,
30 KC_MPRV, YEEHAW, KC_UP, SQUASHKB,
31 MO(1), KC_MNXT, KC_LEFT, KC_DOWN, KC_RIGHT,
32 KC_MPLY, LCTL(KC_S),
33 UG_TOGG
34 ),
35
36 [1] = LAYOUT(
37 UG_HUEU,
38 UG_HUED,
39 UG_SATU, UG_VALU, UG_VALD, UG_SPDU,
40KC_TRNS, UG_SATD, RGB_M_P, UG_NEXT, UG_SPDD,
41 KC_TRNS, KC_TRNS,
42 QK_BOOT
43 ),
44
45 [2] = LAYOUT(
46 KC_TRNS,
47 KC_TRNS,
48 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
49KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
50 KC_TRNS, KC_TRNS,
51 KC_TRNS
52 ),
53
54 [3] = LAYOUT(
55 KC_TRNS,
56 KC_TRNS,
57 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
58KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
59 KC_TRNS, KC_TRNS,
60 KC_TRNS
61 ),
62
63};
64
65bool encoder_update_user(uint8_t index, bool clockwise) {
66 if (index == 0) { /* First encoder */
67 if (clockwise) {
68 tap_code(KC_VOLU);
69 } else {
70 tap_code(KC_VOLD);
71 }
72 }
73 return true;
74}
75
76bool process_record_user(uint16_t keycode, keyrecord_t *record) {
77 switch (keycode) {
78 case YEEHAW:
79 if (record->event.pressed) {
80 SEND_STRING("yeehaw!");
81 }
82 break;
83
84 case SQUASHKB:
85 if (record->event.pressed) {
86 SEND_STRING("https://squashkb.com");
87 }
88 break;
89 }
90 return true;
91};
diff --git a/keyboards/yeehaw/keymaps/via/rules.mk b/keyboards/yeehaw/keymaps/via/rules.mk
deleted file mode 100644
index 036bd6d1c3..0000000000
--- a/keyboards/yeehaw/keymaps/via/rules.mk
+++ /dev/null
@@ -1 +0,0 @@
1VIA_ENABLE = yes \ No newline at end of file