You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

keymap_spacefn.c 3.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. Copyright 2014 Jun Wako <[email protected]>
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #include <stdint.h>
  15. #include "keycode.h"
  16. #include "keymap_common.h"
  17. const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  18. /* Default:
  19. * M0110 M0120
  20. * ,---------------------------------------------------------. ,---------------.
  21. * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backs| |Nlk| -| +| *|
  22. * |---------------------------------------------------------| |---------------|
  23. * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \| | 7| 8| 9| /|
  24. * |---------------------------------------------------------| |---------------|
  25. * |Ctrl | A| S| D| F| G| H| J| K| L| ;| '|Return| | 4| 5| 6| ,|
  26. * |---------------------------------------------------------| |---------------|
  27. * |Shift | Z| X| C| V| B| N| M| ,| ,| /|Shift | | 1| 2| 3| |
  28. * `---------------------------------------------------------' |-----------|Ent|
  29. * |Opt|Mac | Space |Mac |Opt| | 0| .| |
  30. * `-----------------------------------------------' `---------------'
  31. * M0110A
  32. * ,---------------------------------------------------------. ,---------------.
  33. * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Bcksp| |Nlk| =| /| *|
  34. * |---------------------------------------------------------| |---------------|
  35. * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| | | 7| 8| 9| -|
  36. * |-----------------------------------------------------' | |---------------|
  37. * |Caps | A| S| D| F| G| H| J| K| L| ;| '|Return| | 4| 5| 6| +|
  38. * |---------------------------------------------------------| |---------------|
  39. * |Shift | Z| X| C| V| B| N| M| ,| ,| /|Shft|Up | | 1| 2| 3| |
  40. * |---------------------------------------------------------' |-----------|Ent|
  41. * |Opt |Mac | Space | \|Lft|Rgt|Dn | | 0| .| |
  42. * `---------------------------------------------------------' `---------------'
  43. */
  44. [0] = KEYMAP(
  45. GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, NLCK,PEQL,PSLS,PAST,
  46. TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, P7, P8, P9, PMNS,
  47. LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT, ENT, P4, P5, P6, PPLS,
  48. LSFT,Z, X, C, V, B, N, M, COMM,DOT, SLSH, UP, P1, P2, P3, PENT,
  49. LALT,LGUI, FN0, RGUI,BSLS,LEFT,RGHT,DOWN, P0, PDOT
  50. ),
  51. [1] = KEYMAP(
  52. ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, DEL, NLCK,EQL, PSLS,PAST,
  53. TRNS,TRNS,TRNS,ESC, TRNS,TRNS,TRNS,HOME,UP, END, PSCR,SLCK,PAUS, P7, P8, P9, PMNS,
  54. LCTL,TRNS,TRNS,TRNS,TRNS,TRNS,PGUP,LEFT,DOWN,RGHT,TRNS,TRNS, TRNS, P4, P5, P6, PPLS,
  55. TRNS,TRNS,TRNS,TRNS,TRNS,SPC, PGDN,GRV, FN1, TRNS,APP, PGUP, P1, P2, P3, PENT,
  56. TRNS,TRNS, TRNS, TRNS,INS, HOME,END, PGDN, P0, PDOT
  57. ),
  58. };
  59. /*
  60. * Fn action definition
  61. */
  62. const uint16_t fn_actions[] PROGMEM = {
  63. [0] = ACTION_LAYER_TAP_KEY(1, KC_SPACE),
  64. [1] = ACTION_MODS_KEY(MOD_LSFT, KC_GRV), // tilde
  65. };