1
0
Fork 0

userspace and keymap changes for rupa (#10489)

* userspace and keymap changes for rupa

* remove layout wrappers and blocker rows from wrappers

handle this in keymaps for now
This commit is contained in:
rupa 2020-11-10 00:04:46 -05:00 committed by GitHub
parent 53f11668a3
commit a9f65b760a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 520 additions and 133 deletions

50
users/rupa/rupa.h Executable file → Normal file
View file

@ -20,19 +20,55 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "version.h"
#include "process_records.h"
#include "unicode.h"
#include "wrappers.h"
enum userspace_layers {
_QWERTY = 0,
_LOWER,
_RAISE,
_ADJUST
};
enum userspace_custom_keycodes {
VRSN = SAFE_RANGE,
BUGS,
CATS,
DANCE,
DICE,
DOMO,
FART,
FLIP,
HUGS,
JOY,
KISS,
LOD,
MUSIC,
RNDM,
RUPA,
SHRUG,
TADA,
U_FRACT,
U_ITALI,
U_MONOS,
U_NORML,
U_SANSI,
U_SANSN,
U_SCRPT,
WAT,
YUNO,
ZALGO,
ZZZZZ,
NEXT_SAFE_RANGE
};
enum userspace_font_choices {
F_FRACT = 0,
F_ITALI,
F_MONOS,
F_NORML,
F_SANSI,
F_SANSN,
F_SCRPT
};
typedef struct font_t {
@ -41,14 +77,6 @@ typedef struct font_t {
uint32_t zero_glyph;
} font_t;
font_t fraktu_bold;
font_t monosp_bold;
font_t script_bold;
bool script_mode_translate(font_t *translator, bool is_shifted, uint32_t keycode);
#define RAISE MO(_RAISE)
#define OS_RGUI OSM(MOD_RGUI)
#define OS_RALT OSM(MOD_RALT)
#define OS_RCTL OSM(MOD_RCTL)
#define OS_RSFT OSM(MOD_RSFT)
const font_t* get_script_mode(void);
bool set_script_mode(int fc);
bool script_mode_translate(bool is_shifted, uint32_t keycode);