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