aboutsummaryrefslogtreecommitdiff
path: root/users/badger/ortho.h
diff options
context:
space:
mode:
Diffstat (limited to 'users/badger/ortho.h')
-rw-r--r--users/badger/ortho.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/users/badger/ortho.h b/users/badger/ortho.h
new file mode 100644
index 000000000..207f2e282
--- /dev/null
+++ b/users/badger/ortho.h
@@ -0,0 +1,58 @@
1/*
2Copyright 2020 Dan White <opensource@bluetufa.com>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8This program is distributed in the hope that it will be useful,
9but WITHOUT ANY WARRANTY; without even the implied warranty of
10MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11GNU General Public License for more details.
12You should have received a copy of the GNU General Public License
13along with this program. If not, see <http://www.gnu.org/licenses/>.
14*/
15#pragma once
16
17#include "badger.h"
18
19enum OrthoLayers {
20 _QWERTY_MAC_ORTHO,
21 _MOVE_MAC_ORTHO,
22 _QWERTY_LINUX_ORTHO,
23 _MOVE_LINUX_ORTHO,
24 _RAISE,
25 _LOWER,
26 _ADJUST_ORTHO
27};
28
29enum OrthoKeys {
30 KC_MAC1 = CS_DOWN + 1,
31 KC_MAC2,
32 KC_LYRC,
33 KC_FIRST
34};
35
36#define P_ADJ LT(_ADJUST_ORTHO, KC_BSPC)
37#define RAISE MO(_RAISE)
38#define LOWER MO(_LOWER)
39#define MOMAC LT(_MOVE_MAC_ORTHO, KC_ESC)
40#define MOLNX LT(_MOVE_LINUX_ORTHO, KC_ESC)
41
42void playSongForLayer(int currentLayer);
43
44#ifdef AUDIO_ENABLE
45#define QWERTY_LAYER_SONG H__NOTE(_G6), H__NOTE(_D6), Q__NOTE(_A5), Q__NOTE(_E5),
46#define MAC_LAYER_SONG H__NOTE(_E5), H__NOTE(_A5), Q__NOTE(_D6), Q__NOTE(_G6), \
47 ED_NOTE(_E7), E__NOTE(_CS7), E__NOTE(_E6), E__NOTE(_A6), M__NOTE(_CS7, 20),
48#define LONG_AG_SWAP Q__NOTE(_G5), Q__NOTE(_D6), Q__NOTE(_A6), Q__NOTE(_E7), \
49 SD_NOTE(_B5), SD_NOTE(_A5), SD_NOTE(_B5), SD_NOTE(_A5),
50#define LONG_AG_NORM Q__NOTE(_DS4), Q__NOTE(_DS4), B__NOTE(_C5),
51#define MOVE_LAYER_SONG E__NOTE(_GS6), E__NOTE(_A6), S__NOTE(_REST), ED_NOTE(_E7), \
52 S__NOTE(_REST), ED_NOTE(_GS7),
53#define RAISE_LAYER_SONG W__NOTE(_BF5), Q__NOTE(_A5), W__NOTE(_BF5), Q__NOTE(_A5), W__NOTE(_E6), Q__NOTE(_B5),
54#define LOWER_LAYER_SONG Q__NOTE(_DS4), E__NOTE(_DS4), E__NOTE(_DS6), Q__NOTE(_DS5), \
55 E__NOTE(_DS5), E__NOTE(_DS6), Q__NOTE(_E5), E__NOTE(_E5), E__NOTE(_DS6), Q__NOTE(_DS5),
56#define CAPS_ON W__NOTE(_E5), Q__NOTE(_BF5), W__NOTE(_E5), Q__NOTE(_BF5), W__NOTE(_E5), Q__NOTE(_BF5),
57#define CAPS_OFF W__NOTE(_E5), Q__NOTE(_BF5),
58#endif