aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/jc65/v32a/keymaps/naut
diff options
context:
space:
mode:
authorGravatar Jason Barnachea <jrbarnachea@gmail.com>2018-02-10 14:24:54 -0800
committerGravatar Jack Humbert <jack.humb@gmail.com>2018-02-10 17:24:54 -0500
commita972b262748efe977d9a0f8f47fdc36dc9c787e3 (patch)
tree84a8e6bd8c49a740b48d2c1e9ca051cf9ae9d1a4 /keyboards/jc65/v32a/keymaps/naut
parent8c2ae4a4701439e98569dc2f2acee7016b4c0f20 (diff)
downloadqmk_firmware-a972b262748efe977d9a0f8f47fdc36dc9c787e3.tar.gz
Add JC65 ps2avrGB keyboard (#2351)
* Adds JC65 ps2avrGB keyboard * Adds default keymap * Adds personal keymap * Backlight On/off support Migrated code from the BFake. Functionality only on BL_ON, BL_OFF, BL_TOGG. * Backlighting config adjustment Only 1 level supported. * Personal keymap update BL toggle added and RGB layer updates. * Renamed jc65 ps2avrgb directory Renamed directory for more clarity. * Default keymap and default rules * Personal keymap and personal rules * Group JC65 QMK and PS2 versions Group JC65 QMK and PS2 versions, Split directories, Readme for parent folder. * Default keycaps and personal keymaps re-added Default and personal keymaps re-added. Keymaps, Readme, Rules.mk, and config.h * v32a default keymap rules Default to no. * RGB and Backlight default settings Set to yes. * Rules.mk defaults for personal keymap Rules.mk defaults for personal keymap * Revised keyboard readme make paths Revised. * Path correction * jc65 default folder set set default pcb to qmk version * default rules for v32a set to enable backlight and rgb by default.
Diffstat (limited to 'keyboards/jc65/v32a/keymaps/naut')
-rw-r--r--keyboards/jc65/v32a/keymaps/naut/keymap.c81
-rw-r--r--keyboards/jc65/v32a/keymaps/naut/readme.md16
-rw-r--r--keyboards/jc65/v32a/keymaps/naut/rules.mk2
3 files changed, 99 insertions, 0 deletions
diff --git a/keyboards/jc65/v32a/keymaps/naut/keymap.c b/keyboards/jc65/v32a/keymaps/naut/keymap.c
new file mode 100644
index 000000000..90c5a221b
--- /dev/null
+++ b/keyboards/jc65/v32a/keymaps/naut/keymap.c
@@ -0,0 +1,81 @@
+#include "v32a.h"
+
+// Define Layers
+#define _BASE 0
+#define _FNX 1
+#define _MAC 2
+#define _RGB 3
+
+// Define Macros
+#define M_PRTS M(0)
+#define M_PRTA M(1)
+#define M_MSSN M(2)
+#define M_APPS M(3)
+#define M_SPOT M(4)
+#define M_LEFT M(5)
+#define M_RGHT M(6)
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ // Base Layer
+ [_BASE] = KEYMAP(
+ KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL,KC_BSLS, KC_GRV, KC_INS,
+ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC,KC_RBRC, KC_BSPC, KC_DEL,
+ KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L,KC_SCLN,KC_QUOT, KC_NO, KC_ENT,KC_PGUP,
+ KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M,KC_COMM, KC_DOT,KC_SLSH, KC_RSFT, KC_UP,KC_PGDN,
+ MO(1),KC_LALT,KC_LGUI, KC_SPC, KC_SPC, KC_SPC, KC_RGUI, KC_NO,KC_RALT,KC_LEFT,KC_DOWN,KC_RGHT
+ ),
+ // Fn Layer
+ [_FNX] = KEYMAP(
+ KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,KC_TRNS,KC_TRNS, TG(3),
+ KC_CAPS,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,K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, KC_NO, TO(0),
+ KC_NO,RGB_HUD,RGB_HUI, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,BL_TOGG,
+ KC_NO,RGB_SAD,RGB_SAI, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,RGB_TOG,
+ KC_NO, KC_NO,RGB_VAD,RGB_VAI, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,RGB_MOD,RGB_RMOD, KC_NO,RGB_M_P,RGB_M_R,
+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,RGB_M_G,RGB_M_SW
+ ),
+};
+
+// The Macros
+const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
+ if (record->event.pressed) {
+ switch(id) {
+ case 0:
+ return MACRO(D(LGUI), D(LSFT), T(3), U(LSFT), U(LGUI), END); //Mac print screen
+ break;
+ case 1:
+ return MACRO(D(LGUI), D(LSFT), T(4), U(LSFT), U(LGUI), END); //Mac print area
+ break;
+ case 2:
+ return MACRO(D(LCTL), T(UP), U(LCTL), END); //Mac mission control
+ break;
+ case 3:
+ return MACRO(D(LCTL), T(DOWN), U(LCTL), END); //Mac applications
+ break;
+ case 4:
+ return MACRO(D(LGUI), T(SPC), U(LGUI), END); //Mac spotlight search
+ break;
+ case 5:
+ return MACRO(D(LCTL), T(LEFT), U(LCTL), END); //Mac mission left
+ break;
+ case 6:
+ return MACRO(D(LGUI), T(RGHT), U(LGUI), END); //Mac mission right
+ break;
+ }
+ }
+ return MACRO_NONE;
+}; \ No newline at end of file
diff --git a/keyboards/jc65/v32a/keymaps/naut/readme.md b/keyboards/jc65/v32a/keymaps/naut/readme.md
new file mode 100644
index 000000000..e7d109666
--- /dev/null
+++ b/keyboards/jc65/v32a/keymaps/naut/readme.md
@@ -0,0 +1,16 @@
+Naut's Keymap
+=======
+
+Layer 1: HHKB Split backspace, 6.25u space, control on caps, Fn on L-Ctl.
+
+Layer 2: F Row on numrow, caps on tab, media shortcuts on arrows
+
+Layer 3: Mac Media buttons on numrow
+
+Layer 4: RGB control
+
+Keymap Maintainer: [Jason Barnachea](https://github.com/nautxx)
+
+Difference from base layout: HHKBish layout. HHKB Fn layer. Mac media layer. RGB control layer.
+
+Intended usage: Daily driver for keyboard peacocking.
diff --git a/keyboards/jc65/v32a/keymaps/naut/rules.mk b/keyboards/jc65/v32a/keymaps/naut/rules.mk
new file mode 100644
index 000000000..d7463419b
--- /dev/null
+++ b/keyboards/jc65/v32a/keymaps/naut/rules.mk
@@ -0,0 +1,2 @@
+RGBLIGHT_ENABLE = yes
+BACKLIGHT_ENABLE = yes