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:
		
							parent
							
								
									53f11668a3
								
							
						
					
					
						commit
						a9f65b760a
					
				
					 14 changed files with 520 additions and 133 deletions
				
			
		
							
								
								
									
										50
									
								
								users/rupa/rupa.h
									
										
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										50
									
								
								users/rupa/rupa.h
									
										
									
									
									
										
										
										Executable file → Normal 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);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue