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.

58 lines
3.3 KiB

  1. /* A Swedish XMonad layout for the Dactyl Manuform 5x6 Keyboard */
  2. #include QMK_KEYBOARD_H
  3. #include "keymap_swedish.h"
  4. enum dactyl_layers {
  5. _QWERTY,
  6. _LOWER,
  7. _RAISE,
  8. };
  9. #define RAISE MO(_RAISE)
  10. #define LOWER MO(_LOWER)
  11. #define TERM LGUI(LSFT(KC_ENT))
  12. #define ALTTAB LGUI(KC_TAB)
  13. #define KILL LGUI(LSFT(KC_C))
  14. #define OPEN LGUI(KC_P)
  15. #define KC_QSM LSFT(SE_PLUS)
  16. #define KC_AA SE_AA
  17. #define KC_AE SE_AE
  18. #define KC_OE SE_OSLH
  19. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  20. [_QWERTY] = LAYOUT_5x6(
  21. KC_ESC , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , SE_APOS,
  22. KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_AA ,
  23. KC_LSFT, KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_OE , KC_AE ,
  24. KC_LCTL, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM, KC_DOT , SE_SLSH, SE_MINS,
  25. KC_EXLM, KC_QSM , SE_PLUS, SE_EQL ,
  26. RAISE , KC_SPC , KC_ENT , LOWER ,
  27. ALTTAB , KC_LGUI, KC_BSPC, KC_DEL ,
  28. OPEN , TERM , KILL , KC_LALT
  29. ),
  30. [_LOWER] = LAYOUT_5x6(
  31. SE_TILD, KC_EXLM, SE_AT , KC_HASH, SE_DLR , KC_PERC, SE_CIRC, SE_AMPR, SE_ASTR, SE_SLSH, SE_LPRN, SE_RPRN,
  32. SE_ACUT, _______, _______, _______, _______, _______, _______, _______, _______, _______, SE_LCBR, SE_RCBR,
  33. _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP , KC_RGHT, SE_LBRC, SE_RBRC,
  34. _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, SE_LESS, SE_GRTR,
  35. _______, _______, _______, _______,
  36. _______, _______, _______, _______,
  37. _______, _______, _______, _______,
  38. _______, _______, _______, _______
  39. ),
  40. [_RAISE] = LAYOUT_5x6(
  41. KC_F12 , KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 ,
  42. _______, _______, _______, _______, _______, _______, RESET , _______, _______, _______, KC_MUTE, SE_PIPE,
  43. _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END , KC_VOLU, SE_BSLS,
  44. _______, _______, _______, _______, _______, _______, _______, KC_MPLY, KC_MPRV, KC_MNXT, KC_VOLD, _______,
  45. _______, _______, _______, _______,
  46. _______, _______, _______, _______,
  47. _______, _______, _______, _______,
  48. _______, _______, _______, _______
  49. ),
  50. };