aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-10-27 15:00:38 +0000
committerQMK Bot <hello@qmk.fm>2021-10-27 15:00:38 +0000
commite8d68cc8f2a857b18d64fc6838fe29cb0b217feb (patch)
tree59c1c7b0c70d15b548530c4e60debed4659031c2
parent75228c78c5fd9dcdd7b4f734a11f4f4b013b4815 (diff)
parent77877990ff2728af34508bf98e3f9121346292c6 (diff)
downloadqmk_firmware-e8d68cc8f2a857b18d64fc6838fe29cb0b217feb.tar.gz
qmk_firmware-e8d68cc8f2a857b18d64fc6838fe29cb0b217feb.zip
Merge remote-tracking branch 'origin/master' into develop
-rw-r--r--keyboards/anavi/macropad8/keymaps/vlc/keymap.c138
-rw-r--r--keyboards/mechanickeys/undead60m/config.h (renamed from keyboards/undead60m/config.h)30
-rw-r--r--keyboards/mechanickeys/undead60m/info.json16
-rw-r--r--keyboards/mechanickeys/undead60m/keymaps/default/keymap.c (renamed from keyboards/undead60m/keymaps/default/keymap.c)2
-rw-r--r--keyboards/mechanickeys/undead60m/keymaps/via/keymap.c (renamed from keyboards/undead60m/keymaps/via/keymap.c)2
-rw-r--r--keyboards/mechanickeys/undead60m/keymaps/via/rules.mk (renamed from keyboards/undead60m/keymaps/via/rules.mk)0
-rw-r--r--keyboards/mechanickeys/undead60m/readme.md (renamed from keyboards/undead60m/readme.md)0
-rw-r--r--keyboards/mechanickeys/undead60m/rules.mk (renamed from keyboards/undead60m/rules.mk)0
-rw-r--r--keyboards/mechanickeys/undead60m/undead60m.c (renamed from keyboards/undead60m/undead60m.c)4
-rw-r--r--keyboards/mechanickeys/undead60m/undead60m.h (renamed from keyboards/undead60m/undead60m.h)2
-rw-r--r--keyboards/undead60m/info.json16
11 files changed, 174 insertions, 36 deletions
diff --git a/keyboards/anavi/macropad8/keymaps/vlc/keymap.c b/keyboards/anavi/macropad8/keymaps/vlc/keymap.c
new file mode 100644
index 000000000..3e15a8186
--- /dev/null
+++ b/keyboards/anavi/macropad8/keymaps/vlc/keymap.c
@@ -0,0 +1,138 @@
1 /* Copyright 2021 Marc Nause <marc.nause@gmx.de>
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
19enum custom_layers {
20 _PLAY,
21 _FRAME,
22 _DVD,
23 _FN
24};
25
26#define KC_X0 LT(_FN, KC_ESC)
27
28#ifdef RGBLIGHT_ENABLE
29// How long (in ms) to wait between animation steps for the rainbow mode
30const uint8_t RGBLED_RAINBOW_MOOD_INTERVALS[] PROGMEM = {60, 30, 15};
31// How long (in milliseconds) to wait between animation steps for each of the "Swirling rainbow" animations
32const uint8_t RGBLED_RAINBOW_SWIRL_INTERVALS[] PROGMEM = {20, 10, 4};
33#endif
34
35/*
36 * The keymap contains 3 layers for vlc hotkeys and a 4th layer
37 * for controlling the backlighting and the underlighting.
38 *
39 * See https://wiki.videolan.org/QtHotkeys/ for VLC hotkeys
40 *
41 * - Layer for VLC media play hotkeys:
42 * Space - Play/pause
43 * P - Previous track
44 * S - Stop
45 * N - Next track
46 * + - Slower
47 * - - Faster
48 * = - Normal rate
49 *
50 * - Layer for VLC frame control hotkeys:
51 * Shift + right arrow - Jump 5 seconds forward
52 * Alt + right arrow - Jump 10 seconds forward
53 * Control + right arrow - Jump 1 minute forward
54 * E - Next frame
55 * Shift + left arrow - Jump 5 seconds back
56 * Alt + left arrow - Jump 10 seconds back
57 * Control + left arrow - Jump 1 minute back
58 *
59 * - Layer for VLC DVD hotkeys:
60 * Shift + M - Disc menu
61 * Arrow up - Navigate menu (up)
62 * Enter - Select menu entry
63 * Shift + V - Toggle subtitles
64 * Arrow left - Navigate menu (left)
65 * Arrow down - Navigate menu (down)
66 * Arrow right - Navigate menu (right)
67 */
68
69const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
70 [_PLAY] = LAYOUT_ortho_2x4(
71 KC_SPC, KC_P, KC_S, KC_N,
72 KC_KP_PLUS, KC_KP_MINUS, KC_KP_EQUAL, TO(_FRAME)
73 ),
74
75 [_FRAME] = LAYOUT_ortho_2x4(
76 LSFT(KC_RIGHT), LALT(KC_RIGHT), LCTL(KC_RIGHT), KC_E,
77 LSFT(KC_LEFT), LALT(KC_LEFT), LCTL(KC_LEFT), TO(_DVD)
78 ),
79
80 [_DVD] = LAYOUT_ortho_2x4(
81 LSFT(KC_M), KC_UP, KC_ENTER, LSFT(KC_V),
82 KC_LEFT, KC_DOWN, KC_RIGHT, TO(_FN)
83 ),
84
85 [_FN] = LAYOUT_ortho_2x4(
86 RGB_TOG, RGB_MOD, RGB_M_R, RGB_M_SN,
87 BL_TOGG, BL_STEP, BL_BRTG, TO(_PLAY)
88 )
89};
90
91#ifdef OLED_ENABLE
92oled_rotation_t oled_init_user(oled_rotation_t rotation) {
93 return OLED_ROTATION_180; // flips the display 180 degrees if offhand
94}
95
96void oled_task_user(void) {
97 // Host Keyboard Layer Status
98 oled_write_ln_P(PSTR("ANAVI Macro Pad 8"), false);
99 oled_write_P(PSTR("Layer: "), false);
100
101 switch (get_highest_layer(layer_state)) {
102 case _PLAY:
103 oled_write_ln_P(PSTR("VLC Play"), false);
104 break;
105 case _FRAME:
106 oled_write_ln_P(PSTR("VLC Frame"), false);
107 break;
108 case _DVD:
109 oled_write_ln_P(PSTR("VLC DVD"), false);
110 break;
111 case _FN:
112 oled_write_ln_P(PSTR("FN "), false);
113 break;
114 default:
115 // Or use the write_ln shortcut over adding '\n' to the end of your string
116 oled_write_ln_P(PSTR("N/A"), false);
117 }
118
119 // Host Keyboard LED Status
120 led_t led_state = host_keyboard_led_state();
121 oled_write_P(PSTR("Num Lock: "), false);
122 oled_write_ln_P(led_state.num_lock ? PSTR("On") : PSTR("Off"), false);
123 oled_write_P(PSTR("Caps Lock: "), false);
124 oled_write_ln_P(led_state.caps_lock ? PSTR("On") : PSTR("Off"), false);
125 oled_write_P(PSTR("Scroll Lock: "), false);
126 oled_write_ln_P(led_state.scroll_lock ? PSTR("On") : PSTR("Off"), false);
127 oled_write_P(PSTR("Backlit: "), false);
128 oled_write_ln_P(is_backlight_enabled() ? PSTR("On") : PSTR("Off"), false);
129#ifdef RGBLIGHT_ENABLE
130 static char rgbStatusLine1[26] = {0};
131 snprintf(rgbStatusLine1, sizeof(rgbStatusLine1), "RGB Mode: %d", rgblight_get_mode());
132 oled_write_ln(rgbStatusLine1, false);
133 static char rgbStatusLine2[26] = {0};
134 snprintf(rgbStatusLine2, sizeof(rgbStatusLine2), "h:%d s:%d v:%d", rgblight_get_hue(), rgblight_get_sat(), rgblight_get_val());
135 oled_write_ln(rgbStatusLine2, false);
136#endif
137}
138#endif
diff --git a/keyboards/undead60m/config.h b/keyboards/mechanickeys/undead60m/config.h
index a307b5db6..e819cf997 100644
--- a/keyboards/undead60m/config.h
+++ b/keyboards/mechanickeys/undead60m/config.h
@@ -1,18 +1,18 @@
1/* 1/* Copyright 2021 jfescobar18
2Copyright 2021 Franciso Escobar 2 *
3This program is free software: you can redistribute it and/or modify 3 * This program is free software: you can redistribute it and/or modify
4it under the terms of the GNU General Public License as published by 4 * it under the terms of the GNU General Public License as published by
5the Free Software Foundation, either version 2 of the License, or 5 * the Free Software Foundation, either version 2 of the License, or
6(at your option) any later version. 6 * (at your option) any later version.
7 7 *
8This program is distributed in the hope that it will be useful, 8 * This program is distributed in the hope that it will be useful,
9but WITHOUT ANY WARRANTY; without even the implied warranty of 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11GNU General Public License for more details. 11 * GNU General Public License for more details.
12 12 *
13You should have received a copy of the GNU General Public License 13 * You should have received a copy of the GNU General Public License
14along with this program. If not, see <http://www.gnu.org/licenses/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15*/ 15*/
16 16
17#pragma once 17#pragma once
18 18
diff --git a/keyboards/mechanickeys/undead60m/info.json b/keyboards/mechanickeys/undead60m/info.json
new file mode 100644
index 000000000..e1fd210aa
--- /dev/null
+++ b/keyboards/mechanickeys/undead60m/info.json
@@ -0,0 +1,16 @@
1{
2 "keyboard_name": "Undead-60M",
3 "url": "",
4 "maintainer": "qmk",
5 "layouts": {
6 "LAYOUT": {
7 "layout": [
8 {"label": "F1", "x": 0, "y": 0}, {"label": "F2", "x": 1, "y": 0}, {"label": "Esc", "x": 2.5, "y": 0}, {"label": "1", "x": 3.5, "y": 0}, {"label": "2", "x": 4.5, "y": 0}, {"label": "3", "x": 5.5, "y": 0}, {"label": "4", "x": 6.5, "y": 0}, {"label": "5", "x": 7.5, "y": 0}, {"label": "6", "x": 8.5, "y": 0}, {"label": "7", "x": 9.5, "y": 0}, {"label": "8", "x": 10.5, "y": 0}, {"label": "9", "x": 11.5, "y": 0}, {"label": "0", "x": 12.5, "y": 0}, {"label": "-", "x": 13.5, "y": 0}, {"label": "=", "x": 14.5, "y": 0}, {"label": "Backspace", "x": 15.5, "y": 0, "w": 2},
9 {"label": "F2", "x": 0, "y": 1}, {"label": "F3", "x": 1, "y": 1}, {"label": "Tab", "x": 2.5, "y": 1, "w": 1.5} , {"label": "Q", "x": 4, "y": 1}, {"label": "W", "x": 5, "y": 1}, {"label": "E", "x": 6, "y": 1}, {"label": "R", "x": 7, "y": 1}, {"label": "T", "x": 8, "y": 1}, {"label": "Y", "x": 9, "y": 1}, {"label": "U", "x": 10, "y": 1}, {"label": "I", "x": 11, "y": 1}, {"label": "O", "x": 12, "y": 1}, {"label": "P", "x": 13, "y": 1}, {"label": "[", "x": 14, "y": 1}, {"label": "]", "x": 15, "y": 1}, {"label": "|", "x": 16, "y": 1, "w": 1.5},
10 {"label": "F4", "x": 0, "y": 2}, {"label": "F5", "x": 1, "y": 2}, {"label": "Caps", "x": 2.5, "y": 2, "w": 1.75}, {"label": "A", "x": 4.25, "y": 2}, {"label": "S", "x": 5.25, "y": 2}, {"label": "D", "x": 6.25, "y": 2}, {"label": "F", "x": 7.25, "y": 2}, {"label": "G", "x": 8.25, "y": 2}, {"label": "H", "x": 9.25, "y": 2}, {"label": "J", "x": 10.25, "y": 2}, {"label": "K", "x": 11.25, "y": 2}, {"label": "L", "x": 12.25, "y": 2}, {"label": ";", "x": 13.25, "y": 2}, {"label": "'", "x": 14.25, "y": 2}, {"label": "Enter", "x": 15.25, "y": 2, "w": 2.25},
11 {"label": "F6", "x": 0, "y": 3}, {"label": "F7", "x": 1, "y": 3}, {"label": "Shift", "x": 2.5, "y": 3, "w": 2.25}, {"label": "Z", "x": 4.5, "y": 3}, {"label": "X", "x": 5.5, "y": 3}, {"label": "C", "x": 6.5, "y": 3}, {"label": "V", "x": 7.5, "y": 3}, {"label": "B", "x": 8.5, "y": 3}, {"label": "N", "x": 9.5, "y": 3}, {"label": "M", "x": 10.5, "y": 3}, {"label": ",", "x": 11.5, "y": 3}, {"label": ".", "x": 12.5, "y": 3}, {"label": "/", "x": 13.5, "y": 3}, {"label": "Shift", "x": 14.5, "y": 3, "w": 2.75},
12 {"label": "F1", "x": 0, "y": 4}, {"label": "F2", "x": 1, "y": 4}, {"label": "Ctrl", "x": 2.5, "y": 4, "w": 1.25}, {"label": "OS", "x": 3.75, "y": 4, "w": 1.25}, {"label": "Alt", "x": 5, "y": 4, "w": 1.25}, {"label": "Space", "x": 6.25, "y": 4}, {"label": "Alt", "x": 12.5, "y": 4, "w": 1.25}, {"label": "OS", "x": 13.75, "y": 4, "w": 1.25}, {"label": "Ctrl", "x": 15, "y": 4, "w": 1.25}, {"label": "Fn", "x": 16.25, "y": 4, "w": 1.25}
13 ]
14 }
15 }
16}
diff --git a/keyboards/undead60m/keymaps/default/keymap.c b/keyboards/mechanickeys/undead60m/keymaps/default/keymap.c
index 7760a671e..084049f09 100644
--- a/keyboards/undead60m/keymaps/default/keymap.c
+++ b/keyboards/mechanickeys/undead60m/keymaps/default/keymap.c
@@ -1,4 +1,4 @@
1/* Copyright 2021 Francisco Escobar 1/* Copyright 2021 jfescobar18
2 * 2 *
3 * This program is free software: you can redistribute it and/or modify 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 4 * it under the terms of the GNU General Public License as published by
diff --git a/keyboards/undead60m/keymaps/via/keymap.c b/keyboards/mechanickeys/undead60m/keymaps/via/keymap.c
index 9ab159ab1..1bd56eadb 100644
--- a/keyboards/undead60m/keymaps/via/keymap.c
+++ b/keyboards/mechanickeys/undead60m/keymaps/via/keymap.c
@@ -1,4 +1,4 @@
1/* Copyright 2021 Francisco Escobar 1/* Copyright 2021 jfescobar18
2 * 2 *
3 * This program is free software: you can redistribute it and/or modify 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 4 * it under the terms of the GNU General Public License as published by
diff --git a/keyboards/undead60m/keymaps/via/rules.mk b/keyboards/mechanickeys/undead60m/keymaps/via/rules.mk
index 036bd6d1c..036bd6d1c 100644
--- a/keyboards/undead60m/keymaps/via/rules.mk
+++ b/keyboards/mechanickeys/undead60m/keymaps/via/rules.mk
diff --git a/keyboards/undead60m/readme.md b/keyboards/mechanickeys/undead60m/readme.md
index 6f62d3033..6f62d3033 100644
--- a/keyboards/undead60m/readme.md
+++ b/keyboards/mechanickeys/undead60m/readme.md
diff --git a/keyboards/undead60m/rules.mk b/keyboards/mechanickeys/undead60m/rules.mk
index 1bc6b6534..1bc6b6534 100644
--- a/keyboards/undead60m/rules.mk
+++ b/keyboards/mechanickeys/undead60m/rules.mk
diff --git a/keyboards/undead60m/undead60m.c b/keyboards/mechanickeys/undead60m/undead60m.c
index 5cedd10e8..1bda4b1bd 100644
--- a/keyboards/undead60m/undead60m.c
+++ b/keyboards/mechanickeys/undead60m/undead60m.c
@@ -1,4 +1,4 @@
1 /* Copyright 2021 Francisco Escobar 1/* Copyright 2021 jfescobar18
2 * 2 *
3 * This program is free software: you can redistribute it and/or modify 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 4 * it under the terms of the GNU General Public License as published by
@@ -12,7 +12,7 @@
12 * 12 *
13 * You should have received a copy of the GNU General Public License 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/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15*/
16 16
17#include "undead60m.h" 17#include "undead60m.h"
18bool encoder_update_kb(uint8_t index, bool clockwise) { 18bool encoder_update_kb(uint8_t index, bool clockwise) {
diff --git a/keyboards/undead60m/undead60m.h b/keyboards/mechanickeys/undead60m/undead60m.h
index 2d71e9640..4bc665ffd 100644
--- a/keyboards/undead60m/undead60m.h
+++ b/keyboards/mechanickeys/undead60m/undead60m.h
@@ -1,4 +1,4 @@
1/* Copyright 2021 Francisco Escobar 1/* Copyright 2021 jfescobar18
2 * 2 *
3 * This program is free software: you can redistribute it and/or modify 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 4 * it under the terms of the GNU General Public License as published by
diff --git a/keyboards/undead60m/info.json b/keyboards/undead60m/info.json
deleted file mode 100644
index 81f5a220a..000000000
--- a/keyboards/undead60m/info.json
+++ /dev/null
@@ -1,16 +0,0 @@
1{
2 "keyboard_name": "Undead-60M",
3 "url": "",
4 "maintainer": "qmk",
5 "layouts": {
6 "LAYOUT": {
7 "layout": [
8 {"label": "F1", "x": 0, "y": 0}, {"label": "F2", "x": 1, "y": 0}, {"label": "Esc", "x": 3.5, "y": 0}, {"label": "1", "x": 4.5, "y": 0}, {"label": "2", "x": 5.5, "y": 0}, {"label": "3", "x": 6.5, "y": 0}, {"label": "4", "x": 7.5, "y": 0}, {"label": "5", "x": 8.5, "y": 0}, {"label": "6", "x": 9.5, "y": 0}, {"label": "7", "x": 10.5, "y": 0}, {"label": "8", "x": 11.5, "y": 0}, {"label": "9", "x": 12.5, "y": 0}, {"label": "0", "x": 13.5, "y": 0}, {"label": "-", "x": 14.5, "y": 0}, {"label": "=", "x": 15.5, "y": 0}, {"label": "Backspace", "x": 16.5, "y": 0},
9 {"label": "F2", "x": 0, "y": 1}, {"label": "F3", "x": 1, "y": 1}, {"label": "Tab", "x": 3.5, "y": 1}, {"label": "Q", "x": 5, "y": 1}, {"label": "W", "x": 6, "y": 1}, {"label": "E", "x": 7, "y": 1}, {"label": "R", "x": 8, "y": 1}, {"label": "T", "x": 9, "y": 1}, {"label": "Y", "x": 10, "y": 1}, {"label": "U", "x": 11, "y": 1}, {"label": "I", "x": 12, "y": 1}, {"label": "O", "x": 13, "y": 1}, {"label": "P", "x": 14, "y": 1}, {"label": "[", "x": 15, "y": 1}, {"label": "]", "x": 16, "y": 1}, {"label": "|", "x": 17, "y": 1},
10 {"label": "F4", "x": 0, "y": 2}, {"label": "F5", "x": 1, "y": 2}, {"label": "Caps", "x": 3.5, "y": 2}, {"label": "A", "x": 5.25, "y": 2}, {"label": "S", "x": 6.25, "y": 2}, {"label": "D", "x": 7.25, "y": 2}, {"label": "F", "x": 8.25, "y": 2}, {"label": "G", "x": 9.25, "y": 2}, {"label": "H", "x": 10.25, "y": 2}, {"label": "J", "x": 11.25, "y": 2}, {"label": "K", "x": 12.25, "y": 2}, {"label": "L", "x": 13.25, "y": 2}, {"label": ";", "x": 14.25, "y": 2}, {"label": "'", "x": 15.25, "y": 2}, {"label": "Enter", "x": 16.25, "y": 2},
11 {"label": "F6", "x": 0, "y": 3}, {"label": "F7", "x": 1, "y": 3}, {"label": "Shift", "x": 3.5, "y": 3}, {"label": "Z", "x": 5.5, "y": 3}, {"label": "X", "x": 6.5, "y": 3}, {"label": "C", "x": 7.5, "y": 3}, {"label": "V", "x": 8.5, "y": 3}, {"label": "B", "x": 9.5, "y": 3}, {"label": "N", "x": 10.5, "y": 3}, {"label": "M", "x": 11.5, "y": 3}, {"label": ",", "x": 12.5, "y": 3}, {"label": ".", "x": 13.5, "y": 3}, {"label": "/", "x": 14.5, "y": 3}, {"label": "Shift", "x": 15.5, "y": 3},
12 {"label": "F1", "x": 0, "y": 4}, {"label": "F2", "x": 1, "y": 4}, {"label": "Ctrl", "x": 3.5, "y": 4}, {"label": "OS", "x": 4.75, "y": 4}, {"label": "Alt", "x": 6, "y": 4}, {"label": "Space", "x": 7.25, "y": 4}, {"label": "Alt", "x": 13.5, "y": 4}, {"label": "OS", "x": 14.75, "y": 4}, {"label": "Ctrl", "x": 16, "y": 4}, {"label": "Fn", "x": 17.25, "y": 4}
13 ]
14 }
15 }
16}