aboutsummaryrefslogtreecommitdiff
path: root/users/rupa/rupa.h
diff options
context:
space:
mode:
Diffstat (limited to 'users/rupa/rupa.h')
-rw-r--r--[-rwxr-xr-x]users/rupa/rupa.h50
1 files changed, 39 insertions, 11 deletions
diff --git a/users/rupa/rupa.h b/users/rupa/rupa.h
index 9be3a2d62..cfe873ffc 100755..100644
--- a/users/rupa/rupa.h
+++ b/users/rupa/rupa.h
@@ -20,19 +20,55 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
20#include "version.h" 20#include "version.h"
21#include "process_records.h" 21#include "process_records.h"
22#include "unicode.h" 22#include "unicode.h"
23#include "wrappers.h"
23 24
24enum userspace_layers { 25enum userspace_layers {
25 _QWERTY = 0, 26 _QWERTY = 0,
27 _LOWER,
26 _RAISE, 28 _RAISE,
29 _ADJUST
27}; 30};
28 31
29enum userspace_custom_keycodes { 32enum userspace_custom_keycodes {
30 VRSN = SAFE_RANGE, 33 VRSN = SAFE_RANGE,
34 BUGS,
35 CATS,
36 DANCE,
37 DICE,
38 DOMO,
39 FART,
40 FLIP,
41 HUGS,
42 JOY,
43 KISS,
31 LOD, 44 LOD,
45 MUSIC,
46 RNDM,
32 RUPA, 47 RUPA,
48 SHRUG,
49 TADA,
33 U_FRACT, 50 U_FRACT,
51 U_ITALI,
34 U_MONOS, 52 U_MONOS,
53 U_NORML,
54 U_SANSI,
55 U_SANSN,
35 U_SCRPT, 56 U_SCRPT,
57 WAT,
58 YUNO,
59 ZALGO,
60 ZZZZZ,
61 NEXT_SAFE_RANGE
62};
63
64enum userspace_font_choices {
65 F_FRACT = 0,
66 F_ITALI,
67 F_MONOS,
68 F_NORML,
69 F_SANSI,
70 F_SANSN,
71 F_SCRPT
36}; 72};
37 73
38typedef struct font_t { 74typedef struct font_t {
@@ -41,14 +77,6 @@ typedef struct font_t {
41 uint32_t zero_glyph; 77 uint32_t zero_glyph;
42} font_t; 78} font_t;
43 79
44font_t fraktu_bold; 80const font_t* get_script_mode(void);
45font_t monosp_bold; 81bool set_script_mode(int fc);
46font_t script_bold; 82bool script_mode_translate(bool is_shifted, uint32_t keycode);
47
48bool script_mode_translate(font_t *translator, bool is_shifted, uint32_t keycode);
49
50#define RAISE MO(_RAISE)
51#define OS_RGUI OSM(MOD_RGUI)
52#define OS_RALT OSM(MOD_RALT)
53#define OS_RCTL OSM(MOD_RCTL)
54#define OS_RSFT OSM(MOD_RSFT)