Browse Source

add rs40 layout, update rpi config

master
arnaucube 4 months ago
parent
commit
7e951043b5
4 changed files with 67 additions and 0 deletions
  1. +10
    -0
      corne_keymap.c
  2. +8
    -0
      raspberry/install-raspberry-minimum.sh
  3. +11
    -0
      raspberry/netplan-config.yaml
  4. +38
    -0
      rs40_keymap.c

keymap.c → corne_keymap.c

@ -21,12 +21,22 @@ along with this program. If not, see .
// clone repo https://github.com/qmk/qmk_firmware into ~/qmk_firmware
// copy this file into ~/qmk_firmware/keyboards/crkbd/keymaps/default/keymap.c
// copy qmk.ini into ~/
//
// compile the keymap:
// > qmk compile -kb crkbd -km default
//
// once keyboard connected, execute:
// > qmk flash
//
// or if previous doesn't work, use:
// > qmk flash -kb crkbd -km default
//
// and lately it needs the '-bl dfu' too:
// > qmk flash -bl dfu -kb crkbd -km default
//
// If the right side does not work or acts as it were the left side, in
// keyboards/crkbd/keymaps/default/config.h add:
// #define SPLIT_USB_DETECT
#include QMK_KEYBOARD_H

+ 8
- 0
raspberry/install-raspberry-minimum.sh

@ -25,3 +25,11 @@ cp ../.tmux.conf ~/.tmux.conf
echo "append .bashrc of this repo lines to the .bashrc system file"
cat ../.bashrc >> ~/.bashrc
# Additionally, fix the IP:
# vim /etc/dhcpcd.conf:
#
# interface eth0
# static ip_address=192.168.1.150/24
# static routers=192.168.1.1
# static domain_name_servers=192.168.1.1

+ 11
- 0
raspberry/netplan-config.yaml

@ -1,3 +1,14 @@
# UPDATE: for newer systems better directly use:
# vim /etc/dhcpcd.conf:
#
# interface eth0
# static ip_address=192.168.1.150/24
# static routers=192.168.1.1
# static domain_name_servers=192.168.1.1
#
# now reboot the rpi
# static ip configuration
# /etc/netplan/50-cloud-init.yaml

+ 38
- 0
rs40_keymap.c

@ -0,0 +1,38 @@
// Copyright 2023 Audite Marlow (@auditemarlow)
// SPDX-License-Identifier: GPL-3.0
// Notes (Arnau):
// - place this file at `qmk_firmware/keyboards/kj_modify/rs40/keymaps/default/keymap.c`
// - build with `make kj_modify/rs40:default`
// - flash with `make kj_modify/rs40:default:flash`
// In order to flash, plug the keyboard while having pressed the 0,0 key (ESC/Tab) to enter the flash mode.
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
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_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RSFT,
KC_LCTL, KC_LGUI, MO(1), KC_SPC, KC_ENT, MO(2), KC_RALT, KC_SLSH
),
[1] = LAYOUT(
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
KC_LCTL, KC_MUTE, KC_VOLD, KC_VOLU,XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, XXXXXXX,
KC_LSFT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, KC_LGUI, _______, KC_SPC, KC_ENT, MO(3), KC_RALT, XXXXXXX
),
[2] = LAYOUT(
KC_ESC, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL,
_______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
_______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, KC_TILD,
_______, KC_LGUI, MO(3), KC_SPC, KC_ENT, XXXXXXX, KC_SCLN, KC_GRV
),
[3] = LAYOUT(
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,XXXXXXX, XXXXXXX, KC_F12,
XXXXXXX, _______, _______, _______, _______, _______, _______,_______, _______, _______, _______,
_______, KC_LGUI, _______, KC_SPC, KC_ENT, XXXXXXX, KC_RALT, XXXXXXX
),
};

Loading…
Cancel
Save