aboutsummaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorBrosseau Valentin <c4software@gmail.com>2018-02-02 07:00:39 +0100
committerJack Humbert <jack.humb@gmail.com>2018-02-02 01:00:39 -0500
commit3cf752f83f1bd8fbdeab18563f9ec39bb1aa205a (patch)
treef8617073bbee4827c9989d1b4adaea777aa93e59 /keyboards
parent087fa37b7af7873cec74752bcbca3455a4b66cb5 (diff)
downloadqmk_firmware-3cf752f83f1bd8fbdeab18563f9ec39bb1aa205a.tar.gz
qmk_firmware-3cf752f83f1bd8fbdeab18563f9ec39bb1aa205a.zip
Xd75 : Bépo layout for the XD75 (#2166)
* Add xd75 layout * Add Readme * Update layout * Remove Backlight keys * Move ENTER / BACKSP / DEL * Commit my bepo layout instead of the qwerty version since i will not use it * Use 0 instead of 00 * Fix TODO key * Update the readme * Replace wrong key placment * Update center column * Update the layout with 2-u key * Adjust the fn layer * Adjust the main layer * Adjust the fn layer
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/xd75/keymaps/c4software_bepo/README.md37
-rw-r--r--keyboards/xd75/keymaps/c4software_bepo/config.h24
-rw-r--r--keyboards/xd75/keymaps/c4software_bepo/keymap.c90
-rw-r--r--keyboards/xd75/keymaps/c4software_bepo/rules.mk18
4 files changed, 169 insertions, 0 deletions
diff --git a/keyboards/xd75/keymaps/c4software_bepo/README.md b/keyboards/xd75/keymaps/c4software_bepo/README.md
new file mode 100644
index 000000000..7a852962a
--- /dev/null
+++ b/keyboards/xd75/keymaps/c4software_bepo/README.md
@@ -0,0 +1,37 @@
1# c4software Custom Keyboard
2
3Layout for Bépo Dev
4
5```
6/* Native BepoDev for compatible computer
7 * .--------------------------------------------------------------------------------------------------------------------------------------.
8 * | ESC | " | < | > | ( | ) | % | VOL- | VOL+ | @ | + | - | / | * | = |
9 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------|
10 * | TAB | B | E_ACUT | P | O | $ | E_GRAV | DEL | E_CIRC | V | D | L | J | Z | C_CEDIL|
11 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------|
12 * | RALT | A | U | I | E | , | | | C | T | S | R | N | M | W |
13 * |--------+--------+--------+--------+--------+--------+ BACKSP + ENTER +--------+--------+--------+--------------------------+--------|
14 * | LSHIFT | A_GRAV | Y | X | . | K | | | ’ | Q | G | H | F | UP | RSHIFT |
15 * |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+--------+-----------------+--------+--------|
16 * | LALT | LCTRL | FN | LGUI | SPACE | RALT | SPACE | RGUI | FN | LEFT | DOWN | RIGHT |
17 * '--------------------------------------------------------------------------------------------------------------------------------------'
18 */
19 ```
20
21 The FN layer :
22
23 ```
24/* FUNCTION
25 * .--------------------------------------------------------------------------------------------------------------------------------------.
26 * | | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | P/ | P* | F9 | F10 | F11 | F12 |
27 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
28 * | | | | | | | | | P7 | P8 | P9 | - | RGB_TOG| RGB_MOD| RGB_HUI|
29 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
30 * | | PREV | PLAY | NEXT | STOP | | | | P4 | P5 | P6 | + | RGB_SAI| RGB_SAD| RGB_VAI|
31 * |--------+--------+--------+--------+--------+--------+ + +--------+--------+--------+--------+--------+--------+--------|
32 * | | VOL- | MUTE | VOL+ | | | | | P1 | P2 | P3 | ENT | RGB_VAD| Home | RGB_HUD|
33 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
34 * | RESET | | FN | | | | P0 | . | FN | | End | |
35 * '--------------------------------------------------------------------------------------------------------------------------------------'
36 */
37 ``` \ No newline at end of file
diff --git a/keyboards/xd75/keymaps/c4software_bepo/config.h b/keyboards/xd75/keymaps/c4software_bepo/config.h
new file mode 100644
index 000000000..015377b5f
--- /dev/null
+++ b/keyboards/xd75/keymaps/c4software_bepo/config.h
@@ -0,0 +1,24 @@
1/* Copyright 2017 Benjamin Kesselring
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#ifndef CONFIG_USER_H
18#define CONFIG_USER_H
19
20#include "../../config.h"
21
22// place overrides here
23
24#endif
diff --git a/keyboards/xd75/keymaps/c4software_bepo/keymap.c b/keyboards/xd75/keymaps/c4software_bepo/keymap.c
new file mode 100644
index 000000000..28f032a7f
--- /dev/null
+++ b/keyboards/xd75/keymaps/c4software_bepo/keymap.c
@@ -0,0 +1,90 @@
1/* Copyright 2017 Valentin Brosseau
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include "xd75.h"
17#include "keymap_bepo.h"
18
19// Layer shorthand
20#define _BP 0
21#define _FN 1
22
23const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
24
25/* Native BepoDev for compatible computer
26 * .--------------------------------------------------------------------------------------------------------------------------------------.
27 * | ESC | " | < | > | ( | ) | % | VOL- | VOL+ | @ | + | - | / | * | = |
28 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------|
29 * | TAB | B | E_ACUT | P | O | $ | E_GRAV | DEL | E_CIRC | V | D | L | J | Z | C_CEDIL|
30 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------|
31 * | RALT | A | U | I | E | , | | | C | T | S | R | N | M | W |
32 * |--------+--------+--------+--------+--------+--------+ BACKSP + ENTER +--------+--------+--------+--------------------------+--------|
33 * | LSHIFT | A_GRAV | Y | X | . | K | | | ’ | Q | G | H | F | UP | RSHIFT |
34 * |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+--------+-----------------+--------+--------|
35 * | LALT | LCTRL | FN | LGUI | SPACE | RALT | SPACE | RGUI | FN | LEFT | DOWN | RIGHT |
36 * '--------------------------------------------------------------------------------------------------------------------------------------'
37 */
38
39 [_BP] = { /* BepoDev */
40 { KC_ESC, BP_DQOT, BP_LGIL, BP_RGIL, BP_LPRN, BP_RPRN, BP_PERCENT, KC_VOLD, KC_VOLU, BP_AT, BP_PLUS, BP_MINUS, BP_SLASH, BP_ASTR, BP_EQUAL },
41 { KC_TAB, BP_B, BP_E_ACUTE, BP_P, BP_O, BP_DOLLAR, BP_E_GRAVE, KC_DEL, BP_DCRC, BP_V, BP_D, BP_L, BP_J, BP_Z, BP_CCED },
42 { KC_RALT, BP_A, BP_U, BP_I, BP_E, BP_COMMA, KC_BSPC, KC_ENT, BP_C, BP_T, BP_S, BP_R, BP_N, BP_M, BP_W },
43 { KC_LSFT, BP_A_GRAVE, BP_Y, BP_X, BP_DOT, BP_K, KC_TRNS, KC_TRNS, BP_APOS, BP_Q, BP_G, BP_H, BP_F, KC_UP, KC_RSFT },
44 { KC_LALT, KC_LCTL, MO(_FN), KC_LGUI, KC_TRNS, KC_SPC, KC_TRNS, KC_RALT, KC_SPC, KC_TRNS, KC_RGUI, MO(_FN), KC_LEFT, KC_DOWN, KC_RGHT },
45 },
46
47/* FUNCTION
48 * .--------------------------------------------------------------------------------------------------------------------------------------.
49 * | | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | P/ | P* | F9 | F10 | F11 | F12 |
50 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
51 * | | | | | | | | | P7 | P8 | P9 | - | RGB_TOG| RGB_MOD| RGB_HUI|
52 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
53 * | | PREV | PLAY | NEXT | STOP | | | | P4 | P5 | P6 | + | RGB_SAI| RGB_SAD| RGB_VAI|
54 * |--------+--------+--------+--------+--------+--------+ + +--------+--------+--------+--------+--------+--------+--------|
55 * | | VOL- | MUTE | VOL+ | | | | | P1 | P2 | P3 | ENT | RGB_VAD| Home | RGB_HUD|
56 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
57 * | RESET | | FN | | | | P0 | . | FN | | End | |
58 * '--------------------------------------------------------------------------------------------------------------------------------------'
59 */
60
61 [_FN] = { /* FUNCTION */
62 { KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_SLSH, KC_ASTR, KC_F9, KC_F10, KC_F11, KC_F12 },
63 { KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P7, KC_P8, KC_P9, KC_MINS, RGB_TOG, RGB_MOD, RGB_HUI },
64 { KC_TRNS, KC_MPRV, KC_MPLY, KC_MNXT, KC_MSTP, KC_TRNS, KC_TRNS, KC_TRNS, KC_P4, KC_P5, KC_P6, KC_PLUS, RGB_SAI, RGB_SAD, RGB_VAI },
65 { KC_TRNS, KC_VOLD, KC_MUTE, KC_VOLU, KC_APP, KC_TRNS, KC_TRNS, KC_TRNS, KC_P1, KC_P2, KC_P3, KC_ENT, RGB_VAD, KC_HOME, RGB_HUD },
66 { RESET, KC_TRNS, MO(_FN), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_KP_0, KC_TRNS, KC_PDOT, MO(_FN), KC_TRNS, KC_END, KC_TRNS },
67 }
68};
69
70const uint16_t PROGMEM fn_actions[] = {
71
72};
73
74const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
75{
76 // MACRODOWN only works in this function
77 switch(id) {
78 case 0:
79 if (record->event.pressed) {
80 register_code(KC_RSFT);
81 #ifdef BACKLIGHT_ENABLE
82 backlight_step();
83 #endif
84 } else {
85 unregister_code(KC_RSFT);
86 }
87 break;
88 }
89 return MACRO_NONE;
90};
diff --git a/keyboards/xd75/keymaps/c4software_bepo/rules.mk b/keyboards/xd75/keymaps/c4software_bepo/rules.mk
new file mode 100644
index 000000000..d4e08cfb2
--- /dev/null
+++ b/keyboards/xd75/keymaps/c4software_bepo/rules.mk
@@ -0,0 +1,18 @@
1# Copyright 2013 Jun Wako <wakojun@gmail.com>
2#
3# This program is free software: you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation, either version 2 of the License, or
6# (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program. If not, see <http://www.gnu.org/licenses/>.
15
16ifndef QUANTUM_DIR
17 include ../../../../Makefile
18endif