1
0

base_numpad.h 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * License (GPL):
  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. * Author: © 2020 by Jos Boersema
  14. *
  15. */
  16. // --------------------------------------v---------------------------------------
  17. // Configuration:
  18. // --------------------------------------v---------------------------------------
  19. /* ➡ Number pad Configuration ⬅
  20. *
  21. * This concerns this Base layer in the shape of a numerical key pad, not the numerical
  22. * key pad layer which is part of the common layer system, which is defined and configured
  23. * elsewhere (see ./user_config.h).
  24. *
  25. * _Activate_ the below to have a single keypad definition on this layer, for the right
  26. * hand. Modifiers are also defined.
  27. * _Remove_ the below to have two keypad definitions on this Base layer, one for each hand.
  28. *
  29. * In both cases, you can reach the accompanying number pad layer with the super-/sub-script
  30. * numbers. For either option, there is a matching * super-/sub-script layer, which is
  31. * automatically compiled with it.
  32. */
  33. #define NUMPAD_BASE_SINGLE // _Activate_ to resemble a one handed numerical keyboard, for right hand.
  34. // _Remove_ to have two numerical key pads, side by side, one for each hand.
  35. //
  36. /* Tip: When in doubt it might be best to choose the single handed layer, because it
  37. * resembles a regular keyboard more, and has modifier combinations.
  38. */
  39. /* ➡ Removing the numbers pad _PAD layer ⬅
  40. *
  41. * You may have no use for this common layer, if you have a numerical
  42. * keypad on the Alternate Base already.
  43. *
  44. * While _PAD layer gives quick uncluttered access to Control, Shift and Alt
  45. * to modify your pointer device input, the _MOV layer does the same. You
  46. * end up with the same functionality, with or without _PAD, in this matter.
  47. *
  48. * This does precisely the same as REMOVE_PAD in ./user_config.h, but this
  49. * setting here overrides any setting in ./user_config.h
  50. */
  51. //#define REMOVES_PAD // _Activate_ to strip out the _PAD layer, _remove_ to have the _PAD layer.
  52. // --------------------------------------^---------------------------------------
  53. // Below here no more comfortable configuration options.....
  54. // --------------------------------------^---------------------------------------
  55. /* Redefine a layer in this file
  56. *
  57. * _Activate_ one or more of the below BASESFILE_LAYER_..., to redefine the layer
  58. * in this file. The version in ./keymap.c will be ignored. Keep in mind to use
  59. * transparent keys (_______) for “hold” layer switch keys on the BASE map, for
  60. * your new layer.
  61. */
  62. // #define BASESFILE_LAYER_ACC
  63. // #define BASESFILE_LAYER_DRA
  64. // #define BASESFILE_LAYER_BON
  65. // #define BASESFILE_LAYER_PAD
  66. // #define BASESFILE_LAYER_MOV
  67. // #define BASESFILE_LAYER_RAR
  68. // #define BASESFILE_LAYER_FUN
  69. // The below sets some things up based on the above #defines.
  70. // Stripping out _PAD layer, sets the #define used global configuration file ./user_config.h
  71. # ifdef REMOVES_PAD // this file
  72. # ifndef REMOVE_PAD // user_config.h
  73. # define REMOVE_PAD // removes _PAD layer
  74. # endif
  75. # endif
  76. // Inserting the _PAD layer, even if stripped in ./user_config.h
  77. # ifndef REMOVES_PAD // this file
  78. # ifdef REMOVE_PAD // user_config.h
  79. # undef REMOVE_PAD // activtaes _PAD layer
  80. # endif
  81. # endif