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.

87 lines
2.5 KiB

  1. /* Copyright 2017 Andreas Lindhé
  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_SWEDISH_H
  17. #define KEYMAP_SWEDISH_H
  18. #include "keymap.h"
  19. // Normal characters
  20. #define SE_HALF KC_GRV
  21. #define SE_PLUS KC_MINS
  22. #define SE_ACUT KC_EQL
  23. #define SE_AM KC_LBRC
  24. #define SE_QUOT KC_RBRC // this is the "umlaut" char on Nordic keyboards, Apple layout
  25. #define SE_AE KC_QUOT // ä
  26. #define SE_OSLH KC_SCLN // ö
  27. #define SE_APOS KC_NUHS
  28. #define SE_LESS KC_NUBS
  29. #define SE_MINS KC_SLSH
  30. // Shifted characters
  31. #define SE_SECT LSFT(SE_HALF)
  32. #define SE_QUO2 LSFT(KC_2)
  33. #define SE_BULT LSFT(KC_4)
  34. #define SE_AMPR LSFT(KC_6)
  35. #define SE_SLSH LSFT(KC_7)
  36. #define SE_LPRN LSFT(KC_8)
  37. #define SE_RPRN LSFT(KC_9)
  38. #define SE_EQL LSFT(KC_0)
  39. #define SE_QUES LSFT(SE_PLUS)
  40. #define SE_GRV LSFT(SE_ACUT)
  41. #define SE_CIRC LSFT(KC_RBRC) // ^
  42. #define SE_GRTR LSFT(SE_LESS)
  43. #define SE_SCLN LSFT(KC_COMM)
  44. #define SE_COLN LSFT(KC_DOT)
  45. #define SE_UNDS LSFT(SE_MINS)
  46. // Alt Gr-ed characters
  47. #define SE_AT ALGR(KC_2)
  48. #define SE_PND ALGR(KC_3)
  49. #define SE_DLR ALGR(KC_4)
  50. #define SE_LCBR ALGR(KC_7)
  51. #define SE_LBRC ALGR(KC_8)
  52. #define SE_RBRC ALGR(KC_9)
  53. #define SE_RCBR ALGR(KC_0)
  54. #define SE_PIPE ALGR(KC_NUBS)
  55. #define SE_EURO ALGR(KC_E)
  56. #define SE_TILD ALGR(SE_QUOT)
  57. #define SE_BSLS ALGR(KC_MINS)
  58. #define SE_MU ALGR(KC_M)
  59. #define SE_AA KC_LBRC // å
  60. #define SE_ASTR LSFT(KC_BSLS) // *
  61. // Norwegian unique MAC characters (not vetted for Swedish)
  62. #define SE_ACUT_MAC KC_EQL // =
  63. #define SE_APOS_MAC KC_NUBS // '
  64. #define SE_AT_MAC KC_BSLS // @
  65. #define SE_BSLS_MAC ALGR(LSFT(KC_7)) // '\'
  66. #define SE_DLR_MAC ALGR(KC_4) // $
  67. #define SE_GRV_MAC ALGR(SE_BSLS) // `
  68. #define SE_GRTR_MAC LSFT(KC_GRV) // >
  69. #define SE_LCBR_MAC ALGR(LSFT(KC_8)) // {
  70. #define SE_LESS_MAC KC_GRV // <
  71. #define SE_PIPE_MAC ALGR(KC_7) // |
  72. #define SE_RCBR_MAC ALGR(LSFT(KC_9)) // }
  73. #endif