]> git.donarmstrong.com Git - qmk_firmware.git/blob - users/drashna/drashna.h
Update to drashna keymaps (#4)
[qmk_firmware.git] / users / drashna / drashna.h
1 /*
2 Copyright 2017 Christopher Courtney <drashna@live.com> @drashna
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
18 #ifndef USERSPACE
19 #define USERSPACE
20
21 #include "quantum.h"
22
23 // Define layer names 
24 #define _QWERTY 0
25 #define _NUMLOCK 0
26 #define _COLEMAK 1
27 #define _DVORAK 2
28 #define _WORKMAN 3
29 #define _NAV 5
30 #define _COVECUBE 6
31 #define _SYMB 8
32 #define _OVERWATCH 9
33 #define _DIABLO 10
34 #define _MOUS 11
35 #define _MACROS 12
36 #define _MEDIA 13
37 #define _LOWER 14
38 #define _RAISE 15
39 #define _ADJUST 16
40
41
42 //define modifiers
43 #define MODS_SHIFT_MASK  (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT))
44 #define MODS_CTRL_MASK  (MOD_BIT(KC_LCTL)|MOD_BIT(KC_RCTRL))
45 #define MODS_ALT_MASK  (MOD_BIT(KC_LALT)|MOD_BIT(KC_RALT))
46 #define MODS_GUI_MASK  (MOD_BIT(KC_LGUI)|MOD_BIT(KC_RGUI))
47
48 #ifdef RGBLIGHT_ENABLE
49 #define rgblight_set_blue        rgblight_sethsv (0xFF,  0xFF, 0xFF);
50 #define rgblight_set_red         rgblight_sethsv (0x00,  0xFF, 0xFF);
51 #define rgblight_set_green       rgblight_sethsv (0x78,  0xFF, 0xFF);
52 #define rgblight_set_orange      rgblight_sethsv (0x1E,  0xFF, 0xFF);
53 #define rgblight_set_teal        rgblight_sethsv (0xC3,  0xFF, 0xFF);
54 #define rgblight_set_magenta     rgblight_sethsv (0x12C, 0xFF, 0xFF);
55 #define rgblight_set_yellow      rgblight_sethsv (0x3C,  0xFF, 0xFF);
56 #define rgblight_set_purple      rgblight_sethsv (0x10E, 0xFF, 0xFF);
57 #endif
58
59 extern bool is_overwatch;
60 extern bool rgb_layer_change;
61
62 enum userrpace_custom_keycodes {
63   PLACEHOLDER = SAFE_RANGE, // can always be here
64   EPRM,
65   VRSN,
66   KC_QWERTY,
67   KC_COLEMAK,
68   KC_DVORAK,
69   KC_WORKMAN,
70   LOWER,
71   RAISE,
72   ADJUST,
73   KC_DIABLO_CLEAR,
74   KC_OVERWATCH,
75   KC_SALT,
76   KC_MORESALT,
77   KC_SALTHARD,
78   KC_GOODGAME,
79   KC_SYMM,
80   KC_JUSTGAME,
81   KC_GLHF,
82   KC_TORB,
83   KC_AIM,
84   KC_C9,
85   KC_GGEZ,
86   KC_MAKE,
87   KC_RESET,
88   KC_RGB_T,
89   NEW_SAFE_RANGE //use "NEWPLACEHOLDER for keymap specific codes
90 };
91
92 #ifdef TAP_DANCE_ENABLE
93 enum {
94   TD_D3_1 = 0,
95   TD_D3_2,
96   TD_D3_3,
97   TD_D3_4
98 };
99 #endif
100
101
102
103
104 #endif