logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

keymap.h (1891B)


  1. /* Copyright 2024 Vaarai
  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. #pragma once
  17. #include QMK_KEYBOARD_H
  18. /* Trackpad srolling speed adjustment */
  19. #define SCROLL_DIVISOR_H 8.0
  20. #define SCROLL_DIVISOR_V 8.0
  21. /* Trackpad srolling enablement flag */
  22. extern bool set_scrolling;
  23. /* Layers definitions */
  24. enum layers {
  25. _ALPHA,
  26. _NAV,
  27. _NUM,
  28. _ADJUST,
  29. _G0,
  30. _G1
  31. };
  32. /* Custom Keycodes (CK_xxx) */
  33. #define CK_SSHT LSG(KC_S)
  34. #define CK_SELL LSFT(LCTL(KC_LEFT))
  35. #define CK_SELR LSFT(LCTL(KC_RIGHT))
  36. typedef enum {
  37. CK_RKJMP = SAFE_RANGE, /* Warframe rocket/bullet jump */
  38. CK_DPII,
  39. CK_DPID,
  40. CK_SCRL,
  41. } cornia_custom_keycodes_t;
  42. #define SS_ACCENT_A_GRAVE SS_DOWN(X_LALT) SS_TAP(X_P1) SS_TAP(X_P3) SS_TAP(X_P3) SS_UP(X_LALT) /* à */
  43. #define SS_ACCENT_C_CEDIL SS_DOWN(X_LALT) SS_TAP(X_P1) SS_TAP(X_P3) SS_TAP(X_P5) SS_UP(X_LALT) /* ç */
  44. #define SS_ACCENT_E_ACUTE SS_DOWN(X_LALT) SS_TAP(X_P1) SS_TAP(X_P3) SS_TAP(X_P0) SS_UP(X_LALT) /* é */
  45. #define SS_ACCENT_E_GRAVE SS_DOWN(X_LALT) SS_TAP(X_P1) SS_TAP(X_P3) SS_TAP(X_P8) SS_UP(X_LALT) /* è */
  46. #define SS_ACCENT_O_CIRCU SS_DOWN(X_LALT) SS_TAP(X_P1) SS_TAP(X_P4) SS_TAP(X_P7) SS_UP(X_LALT) /* ô */
  47. #define SS_ACCENT_U_GRAVE SS_DOWN(X_LALT) SS_TAP(X_P0) SS_TAP(X_P2) SS_TAP(X_P4) SS_TAP(X_P9) SS_UP(X_LALT) /* ù */