Skip to content

Commit

Permalink
chore: gen ergol for fr hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
daedric committed Jul 15, 2024
1 parent 93ce946 commit 0eccaf2
Show file tree
Hide file tree
Showing 9 changed files with 615 additions and 5 deletions.
3 changes: 3 additions & 0 deletions gen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
python scripts/gen_keymap.py --keymap daedric --autoshift | clang-format | tee keyboards/zsa/moonlander/keymaps/daedric/keymap.c
python scripts/gen_keymap.py | clang-format | tee keyboards/zsa/moonlander/keymaps/ergol/keymap.c
python scripts/gen_keymap.py --host fr | clang-format | tee keyboards/zsa/moonlander/keymaps/ergol-fr/keymap.c
2 changes: 1 addition & 1 deletion keyboards/zsa/moonlander/keymaps/daedric/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MPRV, KC_MNXT, _______, KC_MPLY,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, UC_NEXT, UC_PREV, _______, _______, _______, KC_PGUP, KC_PGDN, _______, _______, _______,
_______, _______, UC_PREV, UC_NEXT, _______, _______, _______, KC_PGUP, KC_PGDN, _______, _______, _______,
_______, _______, _______, _______, _______, _______

// clang-format on
Expand Down
37 changes: 37 additions & 0 deletions keyboards/zsa/moonlander/keymaps/ergol-fr/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/* Copyright 2020 ZSA Technology Labs, Inc <@zsa>
* Copyright 2020 Jack Humbert <[email protected]>
* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <[email protected]>
*
* 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/>.
*/

#pragma once

#define USB_SUSPEND_WAKEUP_DELAY 0

/* Set by Oryx to their default value:
* https://github.com/qmk/qmk_firmware/blob/a4da5f219fe0f202a07afa045fc0c08f6ce1f86b/docs/features/rawhid.md#basic-configuration-basic-configuration
*/
#define RAW_USAGE_PAGE 0xFF60
#define RAW_USAGE_ID 0x61

// As long as I'm using <= 8 layers
// https://github.com/qmk/qmk_firmware/blob/a4da5f219fe0f202a07afa045fc0c08f6ce1f86b/docs/squeezing_avr.md#layers
#define LAYER_STATE_8BIT
#define RGBLIGHT_MAX_LAYERS 8

// Default animation speed
#define RGB_MATRIX_STARTUP_SPD 60

#define UNICODE_SELECTED_MODES UNICODE_MODE_LINUX, UNICODE_MODE_WINCOMPOSE, UNICODE_MODE_MACOS
565 changes: 565 additions & 0 deletions keyboards/zsa/moonlander/keymaps/ergol-fr/keymap.c

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions keyboards/zsa/moonlander/keymaps/ergol-fr/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
LTO_ENABLE = yes
UNICODE_COMMON = yes
UNICODEMAP_ENABLE = yes
KEY_OVERRIDE_ENABLE = yes
2 changes: 1 addition & 1 deletion keyboards/zsa/moonlander/keymaps/ergol/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, UC_PREV, UC_NEXT, QK_BOOT, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______

// clang-format on
Expand Down
3 changes: 2 additions & 1 deletion qmk.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"build_targets": [
["zsa/moonlander", "daedric"],
["zsa/moonlander", "ergol"]
["zsa/moonlander", "ergol-fr"]
]
}
}
2 changes: 1 addition & 1 deletion scripts/gen_keymap.py
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ def gen(self):
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, UC_PREV, UC_NEXT, QK_BOOT, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______
""",
},
Expand Down
2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [ black clang-tools qmk ];
nativeBuildInputs = with pkgs; [ black clang-tools qmk pyright ];
}

0 comments on commit 0eccaf2

Please sign in to comment.