Skip to content

Commit

Permalink
Merge pull request #555 from lesshonor/new-keymap/puckbuddy
Browse files Browse the repository at this point in the history
feat: vial keymap for mechwild/puckbuddy
  • Loading branch information
xyzz authored Sep 30, 2023
2 parents 3f16b9c + 3d67cfb commit a714fb7
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 0 deletions.
8 changes: 8 additions & 0 deletions keyboards/mechwild/puckbuddy/keymaps/vial/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright 2022 Kyle McCreery (@kylemccreery)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#define VIAL_KEYBOARD_UID {0x5C, 0x46, 0x5D, 0x32, 0xF6, 0xD3, 0x42, 0xCA}
#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 }
#define VIAL_UNLOCK_COMBO_COLS { 0, 2 }
38 changes: 38 additions & 0 deletions keyboards/mechwild/puckbuddy/keymaps/vial/keymap.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"keyboard": "mechwild/puckbuddy",
"keymap": "vial",
"version": 1,
"layout": "LAYOUT",
"layers": [
[
"KC_MUTE", "KC_TRNS", "MO(2)", "MO(1)", "LGUI(KC_D)",
"MO(1)", "KC_HOME",
"MO(2)", "KC_END",
"KC_BTN3", "KC_BTN1", "KC_BTN2", "KC_BTN2", "KC_BTN1", "DPI_FINE"
],
[
"RGB_TOG", "KC_TRNS", "KC_TRNS", "KC_TRNS", "TAP_TOG",
"DPI_UP", "TAP_UP",
"DPI_DN", "TAP_DN",
"KC_TRNS", "KC_HOME", "KC_PGUP", "KC_PGDN", "KC_END", "KC_TRNS"
],
[
"KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "RGB_TOG",
"KC_TRNS", "RGB_MOD",
"KC_TRNS", "RGB_RMOD",
"KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS"
]
],
"config": {
"features": {
"via": true,
"vial": true,
"encoder_map": true
}
},
"encoders": [
[{"ccw": "KC_VOLD", "cw": "KC_VOLU"}, {"ccw": "KC_PGDN", "cw": "KC_PGUP"}],
[{"ccw": "DPI_DN", "cw": "DPI_UP"}, {"ccw": "TAP_DN", "cw": "TAP_UP"}],
[{"ccw": "KC_TRNS", "cw": "KC_TRNS"}, {"ccw": "KC_TRNS", "cw": "KC_TRNS"}]
]
}
57 changes: 57 additions & 0 deletions keyboards/mechwild/puckbuddy/keymaps/vial/vial.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"lighting": "qmk_rgblight",
"matrix": { "rows": 4, "cols": 4 },
"customKeycodes": [
{
"name": "DPI_UP",
"title": "Increase the DPI of the touchpad.",
"shortName": "DPI\nDown"
},
{
"name": "DPI_DN",
"title": "Decrease the DPI of the touchpad.",
"shortName": "DPI\nUp"
},
{
"name": "DPI_FINE",
"title": "While held, drops the DPI to minimum.",
"shortName": "Sniper\nMode"
},
{
"name": "TAP_UP",
"title": "Increase the tapping term. This affects mod/layer-tap timing.",
"shortname": "Tap Term\nUp"
},
{
"name": "TAP_DN",
"title": "Decrease the tapping term. This affects mod/layer-tap timing.",
"shortname": "Tap Term\nDown"
},
{
"name": "TAP_ON",
"title": "Enable tap to click on touchpad.",
"shortname": "Tap-Click\nOn"
},
{
"name": "TP_OFF",
"title": "Disable tap to click on touchpad.",
"shortname": "Tap-Click\nOff"
},
{
"name": "TAP_TOG",
"title": "Toggle touchpad tap clicking on/off.",
"shortname": "Tap-Click\nToggle"
}
],
"layouts": {
"keymap": [
["0,1\n\n\n\n\n\n\n\n\ne",{"x":6.5},"1,1\n\n\n\n\n\n\n\n\ne"],
[{"y":-0.5,"x":1.25},"0,0",{"x":0.5},"0,1","1,1","2,1",{"x":0.5},"0,2"],
[{"y":-0.5},"0,0\n\n\n\n\n\n\n\n\ne",{"x":6.5},"1,0\n\n\n\n\n\n\n\n\ne"],
[{"y":-0.25,"x":1.25},"1,0",{"x":4},"1,2"],
[{"x":1.25},"2,0",{"x":4},"2,2"],
[{"x":1.25},"3,0",{"x":4},"3,2"],
[{"y":0.25,"x":2.25},"0,3","1,3","2,3","3,3"]
]
}
}

0 comments on commit a714fb7

Please sign in to comment.