Created
March 23, 2019 23:45
-
-
Save sachee/a215fb3fafad5fec76f7982e50235f3d to your computer and use it in GitHub Desktop.
sachee dactyl keyboard layout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "Dactyl.h" | |
| #include "action_layer.h" | |
| #include "eeconfig.h" | |
| extern keymap_config_t keymap_config; | |
| #define _QWERTY 0 | |
| #define _NUMLAYER 1 | |
| enum custom_keycodes { | |
| QWERTY, | |
| NUMLAYER | |
| }; | |
| #define KC_ KC_TRNS | |
| #define _______ KC_TRNS | |
| // sachee defined | |
| #define KC_NUMNUM TG(RAISE) | |
| #define KC_PAU KC_MPLY | |
| #define KC_NEXT KC_MFFD | |
| #define KC_PREV KC_MRWD | |
| #define KC_BRTUP KC_PAUS | |
| #define KC_BRTDN KC_SLCK | |
| #define KC_HYPESC ALL_T(KC_ESC) | |
| //default defined | |
| #define KC_CAPP LGUI(LSFT(KC_4)) // Capture portion of screen | |
| #define KC_LUP RAISE | |
| #define KC_TOGUP TG(4) | |
| #define KC_RST RESET | |
| #define KC_RGHT RIGHT | |
| const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |
| [_QWERTY] = KC_KEYMAP( | |
| // |----+----+----+----+----+----| |----+----+----+----+----+----| | |
| GRV , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,EQL , | |
| // |----+----+----+----+----+----| |----+----+----+----+----+----| | |
| TAB , Q , W , E , R , T , Y , U , I , O , P ,MINS, | |
| // |----+----+----+----+----+----| |----+----+----+----+----+----| | |
| HYPESC, A , S , D , F , G , H , J , K , L ,SCLN,QUOT, | |
| // |----+----+----+----+----+----| |----+----+----+----+----+----| | |
| LSFT, Z , X , C , V , B , N , M ,COMM,DOT ,SLSH,RSFT, | |
| // |----+----+----+----+----+----| |----+----+----+----+----+----| | |
| CAPP,EQL ,BSLS,LEFT,RGHT, NO , NO ,DOWN, UP ,LBRC,RBRC,SLEP, | |
| // |----+----+----+----+----+----| |----+----+----+----+----+----| | |
| // |----+----| |----+----| | |
| LCTL,LALT, PGUP,RCMD, | |
| // |----+----+----| |----+----+----| | |
| NUMNUM, PGDN, | |
| // | | +----| |----+ | | | |
| BSPC,LCMD,LCTL, RCTL, ENT, SPC | |
| // |----+----+----| |----+----+----| | |
| ), | |
| [_NUMLAYER] = KC_KEYMAP( | |
| // |----+----+----+----+----+----| |----+----+----+----+----+----| | |
| NO, NO , NO ,BRTDN,BRTUP,NO, GRV , NO ,SLSH,ASTR,PMNS,PPLS, | |
| // |----+----+----+----+----+----| |----+----+----+----+----+----| | |
| NO , NO ,PREV,PAU ,NEXT, NO , NO , 7 , 8 , 9 ,PPLS,PMNS, | |
| // |----+----+----+----+----+----| |----+----+----+----+----+----| | |
| NO , NO ,MUTE,VOLD,VOLU, NO , NO , 4 , 5 , 6 ,PPLS, NO , | |
| // |----+----+----+----+----+----| |----+----+----+----+----+----| | |
| NO , NO , NO , NO , NO , NO , NO , 1 , 2 , 3 ,PMNS, NO , | |
| // |----+----+----+----+----+----| |----+----+----+----+----+----| | |
| NO , NO , NO , NO , NO , NO , NO , NO , 0 ,DOT ,ENT , NO , | |
| // |----+----+----+----+----+----| |----+----+----+----+----+----| | |
| // |----+----| |----+----| | |
| RST,LALT, VOLU,RCMD, | |
| // |----+----+----| |----+----+----| | |
| TRNS, VOLD, | |
| // | | +----| |----+ | | | |
| BSPC,LCMD,LCTL, RCTL, ENT, SPC | |
| // |----+----+----| |----+----+----| | |
| ) | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sachee Dactyl Keyboard Layout (My Remix)
A three-layer layout for the Dactyl: QWERTY base with layer-tap thumbs, a number/symbol layer, and a navigation/media layer.
Design Notes
TG()toggle:Backspace(tap) / NUM layer (hold) — left thumbSpace(tap) / NAV layer (hold) — right thumbEnter(tap) / Ctrl (hold) — right thumbEsc(tap) / Hyper (hold) — left pinky home positionRESETandSleepare tucked into far corners so they can't be hit by accident.Base Layer (
_QWERTY)Thumb clusters: transparent (pass through to base layer).
Custom Keycodes
Full
keymap.cRESET tucked in a corner so it can't be hit by accident
*/
[_NAV] = KC_KEYMAP(
// |----+----+----+----+----+----| |----+----+----+----+----+----|
RST , NO , NO ,BRTDN,BRTUP,NO , NO , NO , NO , NO , NO ,SLEP,
// |----+----+----+----+----+----| |----+----+----+----+----+----|
NO , NO ,PREV,PAU ,NEXT, NO , HOME,PGDN,PGUP,END , NO , NO ,
// |----+----+----+----+----+----| |----+----+----+----+----+----|
NO , NO ,MUTE,VOLD,VOLU, NO , LEFT,DOWN, UP ,RGHT, NO , NO ,
// |----+----+----+----+----+----| |----+----+----+----+----+----|
, NO , NO , NO , NO , NO , NO , NO , NO , NO , NO , ,
// |----+----+----+----+----+----| |----+----+----+----+----+----|
NO , NO , NO , NO , NO , NO , NO , NO , NO , NO , NO , NO ,
// |----+----+----+----+----+----| |----+----+----+----+----+----|
// |----+----| |----+----|
, , , ,
// |----+----+----| |----+----+----|
, ,
// | | +----| |----+ | |
, , , , ,
// |----+----+----| |----+----+----|
)
};
Flashing Notes
KC_KEYMAPbecomeKC_TRNSvia the#define KC_ KC_TRNStrick — if your fork of the Dactyl macro is picky about empty entries, replace the blanks withTRNS.#define TAPPING_TERM 175(or tune to taste) inconfig.h.