Skip to content

Instantly share code, notes, and snippets.

@sachee
Created March 23, 2019 23:45
Show Gist options
  • Save sachee/a215fb3fafad5fec76f7982e50235f3d to your computer and use it in GitHub Desktop.
Save sachee/a215fb3fafad5fec76f7982e50235f3d to your computer and use it in GitHub Desktop.
sachee dactyl keyboard layout
#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