Created
February 9, 2019 06:03
-
-
Save newbold/b4c3ee7209d373744ce0241e2694b799 to your computer and use it in GitHub Desktop.
50% Numpad (QMK)
This file contains 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 "launchpad.h" | |
#include "action_layer.h" | |
#include "eeconfig.h" | |
extern keymap_config_t keymap_config; | |
#define _QWERTY 0 | |
#define _FUNC 15 | |
#define _______ KC_TRNS | |
#define XXXXXXX KC_NO | |
// Defines for task manager and such | |
#define CALTDEL LCTL(LALT(KC_DEL)) | |
#define TSKMGR LCTL(LSFT(KC_ESC)) | |
//Tap Dance Declarations | |
enum { | |
TD_7_8 = 0, | |
TD_4_5, | |
TD_1_2, | |
TD_0_ENTER | |
}; | |
//Tap Dance Definitions | |
qk_tap_dance_action_t tap_dance_actions[] = { | |
[TD_7_8] = ACTION_TAP_DANCE_DOUBLE(KC_7, KC_8), | |
[TD_4_5] = ACTION_TAP_DANCE_DOUBLE(KC_4, KC_5), | |
[TD_1_2] = ACTION_TAP_DANCE_DOUBLE(KC_1, KC_2), | |
[TD_0_ENTER] = ACTION_TAP_DANCE_DOUBLE(KC_0, KC_ENTER) | |
}; | |
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |
/* Base | |
* ,-----------------------. | |
* | 7 [8] | 9 | | |
* |-----------+-----------| | |
* | 4 [5] | 6 | | |
* |-----------+-----------| | |
* | 1 [2] | 3 | | |
* |-----------+-----------| | |
* | FUNC | 0 [enter] | | |
* `-----------------------' | |
*/ | |
[_QWERTY] = LAYOUT( \ | |
TD(TD_7_8), KC_9, \ | |
TD(TD_4_5), KC_6, \ | |
TD(TD_1_2), KC_3, \ | |
MO(_FUNC), TD(TD_0_ENTER) \ | |
), | |
/* Function | |
* ,-----------------------. | |
* | Add | Subtract | | |
* |-----------+-----------| | |
* | Multiply | Divide | | |
* |-----------+-----------| | |
* | _______ | _______ | | |
* |-----------+-----------| | |
* | _______ | Escape | | |
* `-----------------------' | |
*/ | |
[_FUNC] = LAYOUT( \ | |
KC_KP_PLUS, KC_KP_MINUS, \ | |
KC_KP_ASTERISK, KC_KP_SLASH, \ | |
_______, _______, \ | |
_______, KC_ESCAPE \ | |
) | |
}; | |
void matrix_init_user(void) { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment