Update planck
This commit is contained in:
parent
39662482d0
commit
e1c0d1781c
3 changed files with 26 additions and 25 deletions
|
@ -1,16 +1,20 @@
|
|||
ifndef QMK_DIR
|
||||
$(error QMK_DIR is not defined)
|
||||
endif
|
||||
QMK_REPO_DIR ?= ${HOME}/.local/share/qmk_firmware
|
||||
KB_DIR ?= ${QMK_REPO_DIR}/keyboards/planck/keymaps/lytedev
|
||||
|
||||
MY_KEYMAP_DIR = "${QMK_DIR}/keyboards/planck/keymaps/lytedev"
|
||||
default: build-and-flash
|
||||
|
||||
all:
|
||||
@rm -rf "${MY_KEYMAP_DIR}"
|
||||
@mkdir -p "${MY_KEYMAP_DIR}"
|
||||
@cp keymap.mk "${MY_KEYMAP_DIR}/Makefile"
|
||||
@cp keymap.c "${MY_KEYMAP_DIR}/keymap.c"
|
||||
@make -C "${MY_KEYMAP_DIR}"
|
||||
${QMK_REPO_DIR}:
|
||||
@git clone https://github.com/lytedev/qmk_firmware.git "${QMK_REPO_DIR}"
|
||||
@cd "${QMK_REPO_DIR}" && make git-submodule
|
||||
|
||||
dfu:
|
||||
@make -C "${MY_KEYMAP_DIR}" dfu
|
||||
repo_keymap_files:
|
||||
@rm -rf "${KB_DIR}"
|
||||
@mkdir -p "${KB_DIR}"
|
||||
@cp keymap.c "${KB_DIR}/"
|
||||
@cp keymap.mk "${KB_DIR}/Makefile"
|
||||
|
||||
build-and-flash: ${QMK_REPO_DIR} repo_keymap_files
|
||||
@cd "${QMK_REPO_DIR}" && sudo make planck:lytedev:dfu
|
||||
|
||||
build: ${QMK_REPO_DIR} repo_keymap_files
|
||||
@docker run -e keymap=lytedev -e keyboard=planck --rm -v "${QMK_REPO_DIR}":/qmk:rw edasque/qmk_firmware
|
||||
|
|
|
@ -54,7 +54,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
{KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC},
|
||||
{KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT},
|
||||
{KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT },
|
||||
{KC_LCTL, KC_LCTL, KC_LGUI, KC_LALT, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT}
|
||||
{KC_LCTL, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT}
|
||||
},
|
||||
|
||||
/* Colemak
|
||||
|
|
|
@ -1,25 +1,22 @@
|
|||
# Planck
|
||||
========
|
||||
|
||||
This contains my `qmk_firmware`-compatible Planck keymap.
|
||||
|
||||
## Dependencies
|
||||
===============
|
||||
|
||||
* Docker
|
||||
|
||||
## Flashing
|
||||
===========
|
||||
|
||||
* Clone and setup the repository at https://github.com/jackhumbert/qmk_firmware.git - pay special attention to the dependencies (for arch users, `pacman -S avr-libc avr-gcc` and `dfu-programmer` in the AUR)
|
||||
* Run the following command, setting `QMK_DIR` to the directory of the repo you cloned in the last step:
|
||||
|
||||
QMK_DIR="$HOME/qmk_firmware" make
|
||||
|
||||
* And then flash your keyboard by pressing the reset button in the bottom of it (or the `RESET` key if you have it programmed in) and run (don't forget to set `QMK_DIR` to the directory of the repo we cloned in the first step!):
|
||||
|
||||
QMK_DIR="$HOME/qmk_firmware" sudo make dfu
|
||||
|
||||
**Tip**: If you don't have an extra keyboard to send the `make dfu` command, just prepend `sleep 10 &&` to it to give yourself 10 seconds to hit the flash button.
|
||||
|
||||
That should be it! Your Planck keyboard should now be flashed with this layout.
|
||||
`make dfu`
|
||||
|
||||
Don't forget to press the flash button on your keyboard!
|
||||
|
||||
## Modifying
|
||||
============
|
||||
|
||||
Just modify `keymap.c` and repeat the steps above for flashing! Easy.
|
||||
|
||||
|
|
Loading…
Reference in a new issue