Port sharkoon skiller sgk50 s2 to vial (#977)

* Port sharkoon skiller sgk50 s2 to vial

* Fixup

* Fix
This commit is contained in:
dkleber89
2025-12-06 23:10:12 +01:00
committed by GitHub
parent 366a761a9b
commit 58ce372e27
4 changed files with 241 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
#define VIAL_KEYBOARD_UID {0xEE, 0x52, 0xE5, 0xC4, 0x39, 0x8D, 0x63, 0xF7}
// Unlock combo ctrl and enter
#define VIAL_UNLOCK_COMBO_ROWS {5, 3}
#define VIAL_UNLOCK_COMBO_COLS {0, 13}

View File

@@ -0,0 +1,58 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_all(
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PAUS, KC_HOME, KC_END, KC_PGUP, KC_PGDN, KC_DEL,
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_NONUS_HASH, KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6,
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT
),
};
static const uint8_t numblock[] = {
72,
73,
74,
75,
44,
43,
42,
41,
38,
39,
40,
12,
11,
10,
9,
7,
8
};
static const uint8_t arrow[] = {
13,
4,
5,
6
};
bool rgb_matrix_indicators_user() {
for (uint8_t i = 0; i < sizeof(arrow)/sizeof(arrow[0]); i++) {
rgb_matrix_set_color(arrow[i], 30, 0, 0);
}
if (host_keyboard_led_state().num_lock) {
for (uint8_t i = 0; i < sizeof(numblock)/sizeof(numblock[0]); i++) {
rgb_matrix_set_color(numblock[i], 30, 30, 0);
}
}
return true;
}

View File

@@ -0,0 +1,3 @@
VIA_ENABLE = yes
VIAL_ENABLE = yes
VIALRGB_ENABLE = yes

View File

@@ -0,0 +1,171 @@
{
"name":"SKILLER SGK50 S2",
"vendorId":"0x6332",
"productId":"0x3662",
"matrix":{
"rows":6,
"cols":19
},
"layouts":{
"keymap":[
[
"0,0",
"0,1",
"0,2",
"0,3",
"0,4",
"0,5",
"0,6",
"0,7",
"0,8",
"0,9",
"0,10",
"0,11",
"0,12",
"0,13",
"0,14",
"0,15",
"0,16",
"0,17",
"0,18"
],
[
"1,0",
"1,1",
"1,2",
"1,3",
"1,4",
"1,5",
"1,6",
"1,7",
"1,8",
"1,9",
"1,10",
"1,11",
"1,12",
{
"w":2
},
"1,13",
"1,15",
"1,16",
"1,17",
"1,18"
],
[
{
"w":1.5
},
"2,0",
"2,1",
"2,2",
"2,3",
"2,4",
"2,5",
"2,6",
"2,7",
"2,8",
"2,9",
"2,10",
"2,11",
"2,12",
{
"x":0.25,
"w":1.25,
"h":2,
"w2":1.5,
"h2":1,
"x2":-0.25
},
"3,13",
"2,15",
"2,16",
"2,17",
{
"h":2
},
"2,18"
],
[
{
"w":1.75
},
"3,0",
"3,2",
"3,3",
"3,4",
"3,5",
"3,6",
"3,7",
"3,8",
"3,9",
"3,10",
"3,11",
"3,12",
"2,13",
{
"x":1.25
},
"3,15",
"3,16",
"3,17"
],
[
{
"w":1.25
},
"4,0",
"4,1",
"4,2",
"4,3",
"4,4",
"4,5",
"4,6",
"4,7",
"4,8",
"4,9",
"4,10",
"4,11",
{
"w":1.75
},
"4,12",
"4,14",
"4,15",
"4,16",
"4,17",
{
"h":2
},
"4,18"
],
[
{
"w":1.25
},
"5,0",
{
"w":1.25
},
"5,1",
{
"w":1.25
},
"5,2",
{
"w":6.25
},
"5,6",
"5,10",
"5,11",
"5,12",
"5,13",
"5,14",
"5,15",
"5,16",
"5,17"
]
]
},
"lighting": "vialrgb"
}