Skip to content

Commit

Permalink
Add support for keyhive absinthe (qmk#445)
Browse files Browse the repository at this point in the history
* add reviung53 vial files

* Revert "add reviung53 vial files"

This reverts commit 074be536deda760843efda31f0c5ee9dbbb5a5e7.

* add absinthe vial files

* enable lto and disable qmk settings

* set vial tap dance entries

* prettify

* correct formatting

* Remove via specific lines

* Add lighting

* Update keyboards/keyhive/absinthe/keymaps/vial/keymap.c

Co-authored-by: Less/Rikki <[email protected]>

* Update keyboards/keyhive/absinthe/keymaps/vial/rules.mk

Co-authored-by: Less/Rikki <[email protected]>

---------

Co-authored-by: Less/Rikki <[email protected]>
  • Loading branch information
DPoplin and lesshonor authored May 14, 2023
1 parent b178217 commit a3f281f
Show file tree
Hide file tree
Showing 4 changed files with 290 additions and 0 deletions.
8 changes: 8 additions & 0 deletions keyboards/keyhive/absinthe/keymaps/vial/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */

#pragma once

#define VIAL_KEYBOARD_UID {0x7C, 0x37, 0x95, 0x7D, 0x34, 0xB0, 0x89, 0x8B}
#define VIAL_UNLOCK_COMBO_ROWS { 0 , 5 }
#define VIAL_UNLOCK_COMBO_COLS { 0 , 6 }
#define VIAL_TAP_DANCE_ENTRIES 4
56 changes: 56 additions & 0 deletions keyboards/keyhive/absinthe/keymaps/vial/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/* Copyright 2021 alittlepeace
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_default(
KC_GESC, 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_BSLS, KC_GRV, KC_INS, KC_HOME, KC_PGUP,
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_BSPC, KC_DEL, KC_END, KC_PGDN,
KC_LCTL, 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_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), KC_UP,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT),

[1] = LAYOUT_default(
_______, 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_PSCR, KC_SLCK, KC_PAUS,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______),

[2] = LAYOUT_default(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______),

[3] = LAYOUT_default(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______)

};

#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[0] = { ENCODER_CCW_CW(KC_WH_U, KC_WH_D) },
[1] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[2] = { ENCODER_CCW_CW(KC_WH_U, KC_WH_D) },
[3] = { ENCODER_CCW_CW(KC_WH_U, KC_WH_D) }
};
#endif
7 changes: 7 additions & 0 deletions keyboards/keyhive/absinthe/keymaps/vial/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
VIA_ENABLE = yes
MOUSEKEY_ENABLE = yes
VIAL_ENABLE = yes
LTO_ENABLE = yes
QMK_SETTINGS = no

ENCODER_MAP_ENABLE = yes
219 changes: 219 additions & 0 deletions keyboards/keyhive/absinthe/keymaps/vial/vial.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
{
"name": "Absinthe",
"vendorId": "0xB00B",
"productId": "0xFEED",
"lighting": "qmk_backlight",
"matrix": {
"rows": 9,
"cols": 9
},
"layouts": {
"labels": [
"Full Backspace",
"Full Right Shift",
"ANSI"
],
"keymap": [
[
{
"c": "#777777"
},
"0,0",
{
"c": "#cccccc"
},
"1,0",
"0,1",
"1,1",
"0,2",
"1,2",
"0,3",
"1,3",
"0,4",
"1,4",
"0,5",
"1,5",
"0,6",
"1,6\n\n\n0,0",
"0,7\n\n\n0,0",
{
"x": 0.5
},
"1,7",
"0,8",
"1,8",
{
"x": 0.75,
"c": "#aaaaaa",
"w": 2
},
"1,6\n\n\n0,1"
],
[
{
"w": 1.5
},
"2,0",
{
"c": "#cccccc"
},
"2,1",
"3,1",
"2,2",
"3,2",
"2,3",
"3,3",
"2,4",
"3,4",
"2,5",
"3,5",
"2,6",
"3,6",
{
"w": 1.5
},
"2,7",
{
"x": 0.5
},
"3,7",
"2,8",
"3,8"
],
[
{
"c": "#aaaaaa",
"w": 1.75
},
"4,0",
{
"c": "#cccccc"
},
"4,1",
"5,1",
"4,2",
"5,2",
"4,3",
"5,3",
"4,4",
"5,4",
"4,5",
"5,5",
"4,6",
{
"c": "#777777",
"w": 2.25
},
"5,6"
],
[
{
"c": "#aaaaaa",
"w": 2.25
},
"6,0",
{
"c": "#cccccc"
},
"6,1",
"7,1",
"6,2",
"7,2",
"6,3",
"7,3",
"6,4",
"7,4",
"6,5",
"7,5",
{
"c": "#aaaaaa",
"w": 1.75
},
"6,6\n\n\n1,0",
"6,7\n\n\n1,0",
{
"x": 1.5,
"c": "#777777"
},
"6,8",
{
"x": 1.5,
"c": "#aaaaaa",
"w": 2.75
},
"6,6\n\n\n1,1"
],
[
{
"w": 1.5
},
"8,0\n\n\n2,0",
"8,1\n\n\n2,0",
{
"w": 1.5
},
"8,2\n\n\n2,0",
{
"c": "#cccccc",
"w": 7
},
"8,3\n\n\n2,0",
{
"c": "#aaaaaa",
"w": 1.5
},
"7,6\n\n\n2,0",
"8,6\n\n\n2,0",
{
"w": 1.5
},
"8,7\n\n\n2,0",
{
"x": 0.5,
"c": "#777777"
},
"7,7",
"8,8",
"7,8"
],
[
{
"y": 0.5,
"c": "#aaaaaa",
"w": 1.25
},
"8,0\n\n\n2,1",
{
"w": 1.25
},
"8,1\n\n\n2,1",
{
"w": 1.25
},
"8,2\n\n\n2,1",
{
"c": "#cccccc",
"w": 6.25
},
"8,3\n\n\n2,1",
{
"c": "#aaaaaa",
"w": 1.25
},
"8,5\n\n\n2,1",
{
"w": 1.25
},
"7,6\n\n\n2,1",
{
"w": 1.25
},
"8,6\n\n\n2,1",
{
"w": 1.25
},
"8,7\n\n\n2,1"
]
]
}
}

0 comments on commit a3f281f

Please sign in to comment.