diff options
Diffstat (limited to 'users/sigma/sigma.h')
| -rw-r--r-- | users/sigma/sigma.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/users/sigma/sigma.h b/users/sigma/sigma.h new file mode 100644 index 000000000..e47e889b8 --- /dev/null +++ b/users/sigma/sigma.h | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2018 Yann Hodique <yann.hodique@gmail.com> @sigma | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | #pragma once | ||
| 18 | |||
| 19 | #include "quantum.h" | ||
| 20 | #include "version.h" | ||
| 21 | #include "eeprom.h" | ||
| 22 | |||
| 23 | // Define os types | ||
| 24 | enum os_types | ||
| 25 | { | ||
| 26 | _OS_MACOS = 0, | ||
| 27 | _OS_LINUX, | ||
| 28 | _OS_WINDOWS, | ||
| 29 | }; | ||
| 30 | |||
| 31 | // Define layer names | ||
| 32 | enum userspace_layers | ||
| 33 | { | ||
| 34 | _QWERTY = 0, | ||
| 35 | }; | ||
| 36 | |||
| 37 | typedef union { | ||
| 38 | uint32_t raw; | ||
| 39 | struct { | ||
| 40 | uint8_t os_target :2; | ||
| 41 | }; | ||
| 42 | } userspace_config_t; | ||
| 43 | |||
| 44 | enum userspace_custom_keycodes | ||
| 45 | { | ||
| 46 | EPRM = SAFE_RANGE, // Resets EEPROM | ||
| 47 | VRSN, // Prints QMK Firmware and board info | ||
| 48 | KC_QWERTY, // Sets default layer to QWERTY | ||
| 49 | KC_MAKE, // Rebuild the current firmware | ||
| 50 | KC_OS_CUT, | ||
| 51 | KC_OS_COPY, | ||
| 52 | KC_OS_PASTE, | ||
| 53 | KC_OS_UNDO, | ||
| 54 | KC_OS_REDO, | ||
| 55 | KC_OS_LOCK, | ||
| 56 | KC_SCRT, | ||
| 57 | NEW_SAFE_RANGE //use NEW_SAFE_RANGE for keymap specific codes | ||
| 58 | }; | ||
