diff options
| author | Danilo Vulicevic <danilo.vulicevic@yahoo.com> | 2019-02-14 21:09:27 +0100 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-02-14 12:09:27 -0800 |
| commit | 1e6797b4e7d888f0c0449e3cd577dc83eb4c4525 (patch) | |
| tree | 054868cb8b176df99abdb91b3893e241727eaaf5 /users/billypython/billypython.c | |
| parent | ce465c084bfdfb3dbd24414397b2542176da423d (diff) | |
| download | qmk_firmware-1e6797b4e7d888f0c0449e3cd577dc83eb4c4525.tar.gz qmk_firmware-1e6797b4e7d888f0c0449e3cd577dc83eb4c4525.zip | |
[Keymap] Add my personal userspace and update my keymaps (#5128)
* Add billypython userspace and dz60 keymap
* Disable Bootmagic in dz60:billypython keymap
* Update whitefox:billypython keymap with userspace changes
Also remove numpad layer
Diffstat (limited to 'users/billypython/billypython.c')
| -rw-r--r-- | users/billypython/billypython.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/users/billypython/billypython.c b/users/billypython/billypython.c new file mode 100644 index 000000000..7bdfe33a4 --- /dev/null +++ b/users/billypython/billypython.c | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | #include "billypython.h" | ||
| 2 | |||
| 3 | __attribute__((weak)) | ||
| 4 | bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { | ||
| 5 | return true; | ||
| 6 | } | ||
| 7 | |||
| 8 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 9 | if (!process_record_keymap(keycode, record)) { | ||
| 10 | return false; | ||
| 11 | } | ||
| 12 | |||
| 13 | switch (keycode) { | ||
| 14 | case CLEAR: | ||
| 15 | if (record->event.pressed) { | ||
| 16 | SEND_STRING(SS_LCTRL("a") SS_TAP(X_DELETE)); | ||
| 17 | } | ||
| 18 | return false; | ||
| 19 | |||
| 20 | default: | ||
| 21 | return true; | ||
| 22 | } | ||
| 23 | } | ||
| 24 | |||
| 25 | __attribute__((weak)) | ||
| 26 | uint32_t layer_state_set_keymap(uint32_t state) { | ||
| 27 | return state; | ||
| 28 | } | ||
| 29 | |||
| 30 | uint32_t layer_state_set_user(uint32_t state) { | ||
| 31 | return layer_state_set_keymap(state); | ||
| 32 | } | ||
