keymap_uk.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* Copyright 2015-2016 Jack Humbert
  2. *
  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. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #ifndef KEYMAP_UK_H
  17. #define KEYMAP_UK_H
  18. #include "keymap.h"
  19. // Alt gr
  20. #define ALGR(kc) RALT(kc)
  21. #define NO_ALGR KC_RALT
  22. // Normal characters
  23. #define UK_HASH KC_NUHS
  24. #define UK_BSLS KC_NUBS
  25. // Shifted characters
  26. #define UK_NOT LSFT(KC_GRV)
  27. #define UK_QUOT LSFT(KC_2)
  28. #define UK_PND LSFT(KC_3)
  29. #define UK_AT LSFT(KC_QUOT)
  30. #define UK_TILD LSFT(KC_NUHS)
  31. #define UK_PIPE LSFT(KC_NUBS)
  32. // Alt Gr-ed characters
  33. #define UK_BRKP ALGR(KC_GRV)
  34. #define UK_EURO ALGR(KC_4)
  35. #define UK_EACT ALGR(KC_E)
  36. #define UK_UACT ALGR(KC_U)
  37. #define UK_IACT ALGR(KC_I)
  38. #define UK_OACT ALGR(KC_O)
  39. #define UK_AACT ALGR(KC_A)
  40. #endif