Keyboard firmwares for Atmel AVR and Cortex-M
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.

unimap_plain.c 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. Copyright 2016 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 "unimap_trans.h"
  15. #define AC_L1 ACTION_LAYER_TAP_KEY(1, KC_RGUI)
  16. #ifdef KEYMAP_SECTION_ENABLE
  17. const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] __attribute__ ((section (".keymap.keymaps"))) = {
  18. #else
  19. const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] PROGMEM = {
  20. #endif
  21. /* 0:
  22. * ,-----------------------------------------------------------.
  23. * |` | 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| #|Bsp|
  24. * |-----------------------------------------------------------|
  25. * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \ |
  26. * |-----------------------------------------------------------|
  27. * |Caps | A| S| D| F| G| H| J| K| L| ;| '|Enter |
  28. * |-----------------------------------------------------------|
  29. * |Shft| \| Z| X| C| V| B| N| M| ,| .| /|Shift |Esc|
  30. * |-----------------------------------------------------------'
  31. * |Ctrl|Gui |Alt | Space |App |Alt |Gui |Ctrl |
  32. * `-----------------------------------------------------------'
  33. */
  34. [0] = UNIMAP_ALPS64( \
  35. GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, NUHS,BSPC, \
  36. TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, BSLS, \
  37. LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT, ENT, \
  38. LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RSFT,ESC, \
  39. LCTL,LGUI,LALT, SPC, APP, RALT,L1, RCTL),
  40. [1] = UNIMAP_ALPS64( \
  41. ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, INS, DEL, \
  42. CAPS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,PSCR,SLCK,PAUS, UP, TRNS, BSPC, \
  43. TRNS,VOLD,VOLU,MUTE,TRNS,TRNS,PAST,PSLS,HOME,PGUP,LEFT,RGHT, PENT, \
  44. TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,PPLS,PMNS,END, PGDN,DOWN, TRNS,TRNS, \
  45. TRNS,TRNS,TRNS, TRNS, TRNS,TRNS,TRNS,TRNS),
  46. };