Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
6.3 kB
5
Indexable
Never
#include QMK_KEYBOARD_H
#include "keymap_french.h"
#include "sendstring_french.h"


enum unicode_names {
    BANG,
    IRONY,
    SNEK
};

const uint32_t unicode_map[] PROGMEM = {
    [BANG] = 0x00C6,
    [IRONY] = 0x00C7,
    [SNEK] = 0x00C9,
};



// Layer Declarations
enum {
    Speech       = 0,
    Num_Arrows,
    Special,
    ReGeBe,
    Gaming,
};





const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

     [Speech] = LAYOUT(
          KC_ESC,           FR_AMPR,        FR_EACU,         FR_DQUO,        FR_QUOT,       FR_LPRN,                                              FR_MINS,        FR_EGRV,        FR_UNDS,        FR_CCED,        FR_AGRV,       FR_RPRN,
          KC_TAB,           FR_A,           FR_Z,            FR_E,           FR_R,          FR_T,                                                 FR_Y,           FR_U,           FR_I,           FR_O,           FR_P,          FR_CIRC,
          KC_LSFT,          FR_Q,           FR_S,            FR_D,           FR_F,          FR_G,                                                 FR_H,           FR_J,           FR_K,           FR_L,           FR_M,          KC_BSPC,
          KC_LCTL,          FR_W,           FR_X,            FR_C,           FR_V,          FR_B,           FR_LPRN,           FR_RPRN,           FR_N,           FR_COMM,        FR_SCLN,        FR_COLN,        FR_EXLM,       KC_DEL,
                                  KC_LALT,           KC_LGUI,        MO(Num_Arrows),        KC_SPC,                                                      KC_ENT,       MO(Special),    KC_RALT,         KC_APP),


     [Num_Arrows] = LAYOUT(
          FR_LPRN,          FR_RPRN,        KC_P7,           KC_P8,          KC_P9,         KC_PMNS,                                              KC_F7,          KC_F8,          KC_F9,          KC_F10,         KC_F11,        KC_F12,
          FR_LBRC,          FR_RBRC,        KC_P4,           KC_P5,          KC_P6,         KC_PPLS,                                              KC_HOME,        KC_DEL,         KC_UP,          KC_INS,         KC_PGUP,       KC_NO,
          KC_TRNS,          KC_NO,          KC_P1,           KC_P2,          KC_P3,         KC_PSLS,                                              KC_END,         KC_LEFT,        KC_DOWN,        KC_RGHT,        KC_PGDN,       KC_NO,
          KC_TRNS,          KC_NO,          FR_SCLN,         KC_P0,          FR_EQL,        KC_PAST,         KC_TRNS,           KC_TRNS,          KC_NO,          KC_NO,          KC_NO,          KC_NO,          KC_NO,         KC_TRNS,
                                    KC_TRNS,           KC_TRNS,        KC_TRNS,       KC_TRNS,                                                             KC_TRNS,          MO(ReGeBe),     KC_TRNS,          KC_TRNS),

     [Special] = LAYOUT(
          KC_F1,            KC_F2,           KC_F3,           KC_F4,         KC_F5,         KC_F6,                                                KC_F7,          KC_F8,          KC_F9,          KC_F10,        KC_F11,        KC_F12,
          X(BANG),          X(IRONY),        X(SNEK),         KC_TRNS,       KC_TRNS,       KC_TRNS,                                              KC_TRNS,        KC_TRNS,        KC_TRNS,        KC_TRNS,       KC_TRNS,       KC_TRNS,
          KC_TRNS,          KC_TRNS,         KC_TRNS,         KC_TRNS,       KC_TRNS,       KC_TRNS,                                              KC_TRNS,        KC_TRNS,        KC_TRNS,        KC_TRNS,       KC_TRNS,       KC_TRNS,
          KC_TRNS,          KC_TRNS,         KC_TRNS,         KC_TRNS,       KC_TRNS,       KC_TRNS,         KC_TRNS,           KC_TRNS,          KC_TRNS,        KC_TRNS,        KC_TRNS,        KC_TRNS,       KC_TRNS,       KC_TRNS,
                                  KC_TRNS,           KC_TRNS,        TO(Gaming), KC_TRNS,                                                             KC_TRNS,          KC_TRNS,          KC_TRNS,         KC_TRNS),


     [ReGeBe] = LAYOUT(
          KC_TRNS,           KC_TRNS,          KC_TRNS,        KC_TRNS,       KC_TRNS,       KC_TRNS,                                             KC_TRNS,        KC_TRNS,       KC_TRNS,         KC_TRNS,       KC_NO,        KC_NO, 
          KC_TRNS,           KC_TRNS,          KC_TRNS,        KC_TRNS,       KC_TRNS,       KC_TRNS,                                             KC_TRNS,        KC_TRNS,       KC_TRNS,         KC_TRNS,       KC_NO,        KC_NO,
          KC_TRNS,           KC_TRNS,          KC_TRNS,        KC_TRNS,       KC_TRNS,       KC_TRNS,                                             KC_TRNS,        KC_TRNS,       RGB_TOG,         RGB_HUI,       RGB_SAI,      RGB_VAI,
          KC_TRNS,           KC_TRNS,          KC_TRNS,        KC_TRNS,       KC_TRNS,       KC_TRNS,          KC_TRNS,             KC_TRNS,      KC_TRNS,        KC_TRNS,       RGB_MOD,         RGB_HUD,       RGB_SAD,      RGB_VAD,
                                   KC_TRNS,          KC_TRNS,        KC_TRNS,       KC_TRNS,                                                            KC_TRNS,        KC_TRNS,        KC_TRNS,          KC_TRNS),
 

     [Gaming] = LAYOUT(
          KC_ESC,           FR_AMPR,         FR_EACU,        FR_DQUO,        FR_QUOT,        FR_LPRN,                                             KC_NO,          KC_NO,         KC_NO,           KC_NO,         KC_NO,        KC_NO,
          KC_NO,            KC_TAB,          KC_Q,           FR_Z,           KC_E,           KC_R,                                                KC_NO,          KC_NO,         KC_NO,           KC_NO,         KC_NO,        KC_NO,
          KC_LSFT,          KC_NO,           KC_A,           FR_S,           KC_D,           KC_F,                                                KC_NO,          KC_NO,         KC_NO,           KC_NO,         KC_NO,        KC_NO,
          KC_LCTL,          KC_LSFT,         KC_Z,           FR_X,           KC_C,           KC_V,           KC_TRNS,             TO(Speech),     KC_NO,          KC_NO,         KC_NO,           KC_NO,         KC_NO,        KC_NO,
                                    KC_LALT,           KC_LGUI,         KC_NO,         KC_SPC,                                                           KC_NO,          KC_TRNS,       KC_TRNS,         KC_NO),
};