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 17 #pragma once 18 19 #include QMK_KEYBOARD_H 20 21 /* Trackpad srolling speed adjustment */ 22 #define SCROLL_DIVISOR_H 8.0 23 #define SCROLL_DIVISOR_V 8.0 24 25 /* Trackpad srolling enablement flag */ 26 extern bool set_scrolling; 27 28 /* Layers definitions */ 29 enum layers { 30 _ALPHA, 31 _NAV, 32 _NUM, 33 _ADJUST, 34 _G0, 35 _G1 36 }; 37 38 /* Custom Keycodes (CK_xxx) */ 39 #define CK_SSHT LSG(KC_S) 40 #define CK_SELL LSFT(LCTL(KC_LEFT)) 41 #define CK_SELR LSFT(LCTL(KC_RIGHT)) 42 43 typedef enum { 44 CK_RKJMP = SAFE_RANGE, /* Warframe rocket/bullet jump */ 45 CK_DPII, 46 CK_DPID, 47 CK_SCRL, 48 } cornia_custom_keycodes_t; 49 50 #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) /* à */ 51 #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) /* ç */ 52 #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) /* é */ 53 #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) /* è */ 54 #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) /* ô */ 55 #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) /* ù */