[Keymap] Update personal userspace and keymaps (#4963)
* Remove duplicated or unnecessary definitions in config.h and rules.mk * Use IS_HOST_LED_ON() macro * Add mouse acceleration to kbd6x:konstantin keymap * Clear and restore mods when sending macros * Make SEND_STRING_CLEAN a config option * Add NO_ACTION_ONESHOT to userspace config
This commit is contained in:
		
							parent
							
								
									5c1d4baec4
								
							
						
					
					
						commit
						6ba0b818e9
					
				
					 7 changed files with 17 additions and 26 deletions
				
			
		| 
						 | 
				
			
			@ -25,6 +25,16 @@
 | 
			
		|||
 | 
			
		||||
#define LCT_CPS LCTL_T(KC_CAPS)
 | 
			
		||||
 | 
			
		||||
#ifdef SEND_STRING_CLEAN
 | 
			
		||||
  #undef  SEND_STRING
 | 
			
		||||
  #define SEND_STRING(...) {            \
 | 
			
		||||
      uint8_t ss_mods = get_mods();     \
 | 
			
		||||
      clear_mods();                     \
 | 
			
		||||
      send_string_P(PSTR(__VA_ARGS__)); \
 | 
			
		||||
      set_mods(ss_mods);                \
 | 
			
		||||
    }
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
enum keycodes_user {
 | 
			
		||||
  CLEAR = SAFE_RANGE,
 | 
			
		||||
#ifdef LAYER_NUMPAD
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue