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.

32 lines
1.2 KiB

  1. # Userspace: sharing code between keymaps
  2. If you use more than one keyboard with a similar keymap, you might see the benefit in being able to share code between them. Create your own folder in `users/` named the same as your keymap (ideally your github username, `<name>`) with the following structure:
  3. * `/users/<name>/` (added to the path automatically)
  4. * `readme.md`
  5. * `rules.mk` (included automatically)
  6. * `<name>.h` (optional)
  7. * `<name>.c` (optional)
  8. `<name>.c` will need to be added to the SRC in `rules.mk` like this:
  9. SRC += <name>.c
  10. Additional files may be added in the same way - it's recommended you have one named `<name>`.c/.h though.
  11. All this only happens when you build a keymap named `<name>`, like this:
  12. make planck:<name>
  13. For example,
  14. make planck:jack
  15. Will include the `/users/jack/` folder in the path, along with `/users/jack/rules.mk`.
  16. ## Readme
  17. Please include authorship (your name, github username, email), and optionally [a license that's GPL compatible](https://www.gnu.org/licenses/license-list.html#GPLCompatibleLicenses).
  18. ## Example
  19. For a brief example, checkout `/users/_example/` until we have more reasonable and useful examples.