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.

55 lines
1.5 KiB

  1. /*
  2. Copyright 2022 Hector Galindo <hi@hsuchil.com>
  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. */
  14. #pragma once
  15. enum custom_user_layers {
  16. _BSE,
  17. _LOW,
  18. _HGH,
  19. _FNC,
  20. NEW_SAFE_LAYER_RANGE,
  21. };
  22. enum custom_user_keycodes {
  23. OLD_SAFE_RANGE = SAFE_RANGE,
  24. TOG_MAC, // Swaps LGUI<->LALT and LGUI<->RCTL
  25. NEW_SAFE_RANGE // Set a new safe range for keymap-specific custom keycodes
  26. };
  27. #define L_LOW MO(_LOW)
  28. #define L_HGH MO(_HGH)
  29. #define L_FNC MO(_FNC)
  30. #define L_BLOW LT(_LOW, KC_B) // B if tapped, LOW if held.
  31. #define L_BHGH LT(_HGH, KC_B) // B if tapped, HGH if held.
  32. #define L_BFNC LT(_FNC, KC_B) // B if tapped, FNC if held.
  33. #define L_LWESC LT(_LOW, KC_ESC) // ESC if tapped, LOW if held.
  34. #define LCT_ESC LCTL_T(KC_ESC) // ESC if tapped, LCTL if held.
  35. #define RCT_ESC RCTL_T(KC_ESC) // ESC if tapped, RCTL if held.
  36. #define RSFT_UP RSFT_T(KC_UP)
  37. // Tap Dance
  38. enum tap_dance_keycodes {
  39. _TD_RSHIFT_UP
  40. };
  41. #define TD_RSFTUP TD(_TD_RSHIFT_UP)