From 1b24e338dfacec1ba264c1bc3713dc2763dd5b60 Mon Sep 17 00:00:00 2001 From: pierreavn Date: Sat, 17 Jun 2023 20:30:04 +0200 Subject: [PATCH] Added 60% with arrows layout --- src/components/sidebar/BoardOptions.js | 1 + src/config/keymaps/keymap_60_arrows.json | 71 ++++++ src/config/keymaps/keymaps.js | 2 + src/config/layouts/layout_60_arrows.json | 276 +++++++++++++++++++++++ src/config/layouts/layouts.js | 2 + 5 files changed, 352 insertions(+) create mode 100644 src/config/keymaps/keymap_60_arrows.json create mode 100644 src/config/layouts/layout_60_arrows.json diff --git a/src/components/sidebar/BoardOptions.js b/src/components/sidebar/BoardOptions.js index 62836e2..c6f8534 100644 --- a/src/components/sidebar/BoardOptions.js +++ b/src/components/sidebar/BoardOptions.js @@ -49,6 +49,7 @@ export default function BoardOptions() { { label: "50%", value: "leftnum", img: icon45 }, { label: "50% ortho", value: "50ortho", img: icon40 }, { label: "60%", value: "60", img: icon60 }, + { label: "60% Arrows", value: "60arrows", img: icon60 }, { label: "60% ISO", value: "60iso", img: icon60 }, { label: "60% WKL", value: "60wkl", img: icon60wkl }, { label: "60% HHKB", value: "60hhkb", img: icon60hhkb }, diff --git a/src/config/keymaps/keymap_60_arrows.json b/src/config/keymaps/keymap_60_arrows.json new file mode 100644 index 0000000..fbb2fc3 --- /dev/null +++ b/src/config/keymaps/keymap_60_arrows.json @@ -0,0 +1,71 @@ +{ + "layout": "LAYOUT", + "layers": [ + [ + "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_BSPC", + "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_BSLS", + "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_LSFT", + "KC_Z", + "KC_X", + "KC_C", + "KC_V", + "KC_B", + "KC_N", + "KC_M", + "KC_COMM", + "KC_DOT", + "KC_RSFT", + "KC_UP", + "KC_SLSH", + "KC_LCTL", + "KC_LGUI", + "KC_LALT", + "KC_SPC", + "MO(1)", + "KC_RCTL", + "KC_LEFT", + "KC_DOWN", + "KC_RGHT" + ] + ] + } + \ No newline at end of file diff --git a/src/config/keymaps/keymaps.js b/src/config/keymaps/keymaps.js index 07bf73d..f793b17 100644 --- a/src/config/keymaps/keymaps.js +++ b/src/config/keymaps/keymaps.js @@ -4,6 +4,7 @@ import keymap_50_ortho from "./keymap_50_ortho.json"; import keymap_40_leftnum from "./keymap_40_leftnum.json"; import keymap_40 from "./keymap_40_default.json"; import keymap_60 from "./keymap_60_default.json"; +import keymap_60_arrows from "./keymap_60_arrows.json"; import keymap_60_hhkb from "./keymap_60_hhkb.json"; import keymap_60_tsangan from "./keymap_60_tsangan.json"; import keymap_60_wkl from "./keymap_60_wkl.json"; @@ -23,6 +24,7 @@ const KEYMAPS = { "60hhkb": keymap_60_hhkb, "60tsangan": keymap_60_tsangan, "60iso": keymap_60_iso, + "60arrows": keymap_60_arrows, 40: keymap_40, 60: keymap_60, 65: keymap_65, diff --git a/src/config/layouts/layout_60_arrows.json b/src/config/layouts/layout_60_arrows.json new file mode 100644 index 0000000..267a67d --- /dev/null +++ b/src/config/layouts/layout_60_arrows.json @@ -0,0 +1,276 @@ +{ + "width": 15, + "height": 5, + "keymaps": [], + "layouts": { + "LAYOUT": { + "key_count": 63, + "layout": [ + { + "x": 0, + "y": 0 + }, + { + "x": 1, + "y": 0 + }, + { + "x": 2, + "y": 0 + }, + { + "x": 3, + "y": 0 + }, + { + "x": 4, + "y": 0 + }, + { + "x": 5, + "y": 0 + }, + { + "x": 6, + "y": 0 + }, + { + "x": 7, + "y": 0 + }, + { + "x": 8, + "y": 0 + }, + { + "x": 9, + "y": 0 + }, + { + "x": 10, + "y": 0 + }, + { + "x": 11, + "y": 0 + }, + { + "x": 12, + "y": 0 + }, + { + "x": 13, + "y": 0, + "w": 2 + }, + { + "x": 0, + "y": 1, + "w": 1.5 + }, + { + "x": 1.5, + "y": 1 + }, + { + "x": 2.5, + "y": 1 + }, + { + "x": 3.5, + "y": 1 + }, + { + "x": 4.5, + "y": 1 + }, + { + "x": 5.5, + "y": 1 + }, + { + "x": 6.5, + "y": 1 + }, + { + "x": 7.5, + "y": 1 + }, + { + "x": 8.5, + "y": 1 + }, + { + "x": 9.5, + "y": 1 + }, + { + "x": 10.5, + "y": 1 + }, + { + "x": 11.5, + "y": 1 + }, + { + "x": 12.5, + "y": 1 + }, + { + "x": 13.5, + "y": 1, + "w": 1.5 + }, + { + "x": 0, + "y": 2, + "w": 1.75 + }, + { + "x": 1.75, + "y": 2 + }, + { + "x": 2.75, + "y": 2 + }, + { + "x": 3.75, + "y": 2 + }, + { + "x": 4.75, + "y": 2 + }, + { + "x": 5.75, + "y": 2 + }, + { + "x": 6.75, + "y": 2 + }, + { + "x": 7.75, + "y": 2 + }, + { + "x": 8.75, + "y": 2 + }, + { + "x": 9.75, + "y": 2 + }, + { + "x": 10.75, + "y": 2 + }, + { + "x": 11.75, + "y": 2 + }, + { + "x": 12.75, + "y": 2, + "w": 2.25 + }, + { + "x": 0, + "y": 3, + "w": 2.25 + }, + { + "x": 2.25, + "y": 3 + }, + { + "x": 3.25, + "y": 3 + }, + { + "x": 4.25, + "y": 3 + }, + { + "x": 5.25, + "y": 3 + }, + { + "x": 6.25, + "y": 3 + }, + { + "x": 7.25, + "y": 3 + }, + { + "x": 8.25, + "y": 3 + }, + { + "x": 9.25, + "y": 3 + }, + { + "x": 10.25, + "y": 3 + }, + { + "x": 11.25, + "y": 3, + "w": 1.75 + }, + { + "x": 13, + "y": 3 + }, + { + "x": 14, + "y": 3 + }, + { + "x": 0, + "y": 4, + "w": 1.25 + }, + { + "x": 1.25, + "y": 4, + "w": 1.25 + }, + { + "x": 2.5, + "y": 4, + "w": 1.25 + }, + { + "x": 3.75, + "y": 4, + "w": 6.25 + }, + { + "x": 10, + "y": 4 + }, + { + "x": 11, + "y": 4 + }, + { + "x": 12, + "y": 4 + }, + { + "x": 13, + "y": 4 + }, + { + "x": 14, + "y": 4 + } + ] + } + } + } + \ No newline at end of file diff --git a/src/config/layouts/layouts.js b/src/config/layouts/layouts.js index e4b7ced..7bcb55d 100644 --- a/src/config/layouts/layouts.js +++ b/src/config/layouts/layouts.js @@ -1,5 +1,6 @@ import layout_40 from "./layout_40_default.json"; import layout_60 from "./layout_60_default.json"; +import layout_60_arrows from "./layout_60_arrows.json"; import layout_60_iso from "./layout_60_ISO.json"; import layout_60_hhkb from "./layout_60_hhkb.json"; import layout_60_tsangan from "./layout_60_tsangan.json"; @@ -22,6 +23,7 @@ const LAYOUTS = { 80: layout_80, 95: layout_95, 100: layout_100, + "60arrows": layout_60_arrows, "60iso": layout_60_iso, "60wkl": layout_60_wkl, "60hhkb": layout_60_hhkb,