[Keymap] Drashna's Defaults cleanup (#13722)
This commit is contained in:
		
							parent
							
								
									368efb5d2b
								
							
						
					
					
						commit
						eb46c954dc
					
				
					 50 changed files with 986 additions and 1389 deletions
				
			
		| 
						 | 
				
			
			@ -24,51 +24,70 @@
 | 
			
		|||
#endif
 | 
			
		||||
 | 
			
		||||
enum userspace_custom_keycodes {
 | 
			
		||||
    VRSN = PLACEHOLDER_SAFE_RANGE, // Prints QMK Firmware and board info
 | 
			
		||||
    KC_QWERTY,                     // Sets default layer to QWERTY
 | 
			
		||||
    KC_COLEMAK,                    // Sets default layer to COLEMAK
 | 
			
		||||
    KC_DVORAK,                     // Sets default layer to DVORAK
 | 
			
		||||
    KC_WORKMAN,                    // Sets default layer to WORKMAN
 | 
			
		||||
    KC_DIABLO_CLEAR,               // Clears all Diablo Timers
 | 
			
		||||
    KC_MAKE,                       // Run keyboard's customized make command
 | 
			
		||||
    KC_RGB_T,                      // Toggles RGB Layer Indication mode
 | 
			
		||||
    RGB_IDL,                       // RGB Idling animations
 | 
			
		||||
    KC_SECRET_1,                   // test1
 | 
			
		||||
    KC_SECRET_2,                   // test2
 | 
			
		||||
    KC_SECRET_3,                   // test3
 | 
			
		||||
    KC_SECRET_4,                   // test4
 | 
			
		||||
    KC_SECRET_5,                   // test5
 | 
			
		||||
    KC_CCCV,                       // Hold to copy, tap to paste
 | 
			
		||||
    KC_NUKE,                       // NUCLEAR LAUNCH DETECTED!!!
 | 
			
		||||
    UC_FLIP,                       // (ಠ痊ಠ)┻━┻
 | 
			
		||||
    UC_TABL,                       // ┬─┬ノ( º _ ºノ)
 | 
			
		||||
    UC_SHRG,                       // ¯\_(ツ)_/¯
 | 
			
		||||
    UC_DISA,                       // ಠ_ಠ
 | 
			
		||||
    NEW_SAFE_RANGE                 // use "NEWPLACEHOLDER for keymap specific codes
 | 
			
		||||
    VRSN = PLACEHOLDER_SAFE_RANGE,            // Prints QMK Firmware and board info
 | 
			
		||||
    KC_QWERTY,                                // Sets default layer to QWERTY
 | 
			
		||||
    FIRST_DEFAULT_LAYER_KEYCODE = KC_QWERTY,  // Sets default layer to QWERTY
 | 
			
		||||
    KC_COLEMAK_DH,                            // Sets default layer to COLEMAK
 | 
			
		||||
    KC_COLEMAK,                               // Sets default layer to COLEMAK
 | 
			
		||||
    KC_DVORAK,                                // Sets default layer to DVORAK
 | 
			
		||||
    LAST_DEFAULT_LAYER_KEYCODE = KC_DVORAK,   // Sets default layer to WORKMAN
 | 
			
		||||
    KC_DIABLO_CLEAR,                          // Clears all Diablo Timers
 | 
			
		||||
    KC_MAKE,                                  // Run keyboard's customized make command
 | 
			
		||||
    KC_RGB_T,                                 // Toggles RGB Layer Indication mode
 | 
			
		||||
    RGB_IDL,                                  // RGB Idling animations
 | 
			
		||||
    KC_SECRET_1,                              // test1
 | 
			
		||||
    KC_SECRET_2,                              // test2
 | 
			
		||||
    KC_SECRET_3,                              // test3
 | 
			
		||||
    KC_SECRET_4,                              // test4
 | 
			
		||||
    KC_SECRET_5,                              // test5
 | 
			
		||||
    KC_CCCV,                                  // Hold to copy, tap to paste
 | 
			
		||||
    KC_NUKE,                                  // NUCLEAR LAUNCH DETECTED!!!
 | 
			
		||||
    UC_FLIP,                                  // (ಠ痊ಠ)┻━┻
 | 
			
		||||
    UC_TABL,                                  // ┬─┬ノ( º _ ºノ)
 | 
			
		||||
    UC_SHRG,                                  // ¯\_(ツ)_/¯
 | 
			
		||||
    UC_DISA,                                  // ಠ_ಠ
 | 
			
		||||
    NEW_SAFE_RANGE                            // use "NEWPLACEHOLDER for keymap specific codes
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
bool process_record_secrets(uint16_t keycode, keyrecord_t *record);
 | 
			
		||||
bool process_record_keymap(uint16_t keycode, keyrecord_t *record);
 | 
			
		||||
 | 
			
		||||
#define LOWER    MO(_LOWER)
 | 
			
		||||
#define RAISE    MO(_RAISE)
 | 
			
		||||
#define ADJUST   MO(_ADJUST)
 | 
			
		||||
#define TG_MODS  OS_TOGG
 | 
			
		||||
#define TG_GAME  TG(_GAMEPAD)
 | 
			
		||||
#define TG_DBLO  TG(_DIABLO)
 | 
			
		||||
#define OS_LWR   OSL(_LOWER)
 | 
			
		||||
#define OS_RSE   OSL(_RAISE)
 | 
			
		||||
#define LOWER     MO(_LOWER)
 | 
			
		||||
#define RAISE     MO(_RAISE)
 | 
			
		||||
#define ADJUST    MO(_ADJUST)
 | 
			
		||||
#define TG_MODS   OS_TOGG
 | 
			
		||||
#define TG_GAME   TG(_GAMEPAD)
 | 
			
		||||
#define TG_DBLO   TG(_DIABLO)
 | 
			
		||||
#define OS_LWR    OSL(_LOWER)
 | 
			
		||||
#define OS_RSE    OSL(_RAISE)
 | 
			
		||||
 | 
			
		||||
#define KC_SEC1  KC_SECRET_1
 | 
			
		||||
#define KC_SEC2  KC_SECRET_2
 | 
			
		||||
#define KC_SEC3  KC_SECRET_3
 | 
			
		||||
#define KC_SEC4  KC_SECRET_4
 | 
			
		||||
#define KC_SEC5  KC_SECRET_5
 | 
			
		||||
#define KC_SEC1   KC_SECRET_1
 | 
			
		||||
#define KC_SEC2   KC_SECRET_2
 | 
			
		||||
#define KC_SEC3   KC_SECRET_3
 | 
			
		||||
#define KC_SEC4   KC_SECRET_4
 | 
			
		||||
#define KC_SEC5   KC_SECRET_5
 | 
			
		||||
 | 
			
		||||
#define QWERTY   KC_QWERTY
 | 
			
		||||
#define DVORAK   KC_DVORAK
 | 
			
		||||
#define COLEMAK  KC_COLEMAK
 | 
			
		||||
#define WORKMAN  KC_WORKMAN
 | 
			
		||||
#define QWERTY    KC_QWERTY
 | 
			
		||||
#define DVORAK    KC_DVORAK
 | 
			
		||||
#define COLEMAK   KC_COLEMAK
 | 
			
		||||
#define COLEMAKDH KC_COLEMAK_DH
 | 
			
		||||
 | 
			
		||||
#define DEFLYR1   FIRST_DEFAULT_LAYER_KEYCODE
 | 
			
		||||
#define DEFLYR2   (FIRST_DEFAULT_LAYER_KEYCODE + 1)
 | 
			
		||||
#define DEFLYR3   (FIRST_DEFAULT_LAYER_KEYCODE + 2)
 | 
			
		||||
#define DEFLYR4   (FIRST_DEFAULT_LAYER_KEYCODE + 3)
 | 
			
		||||
#if LAST_DEFAULT_LAYER_KEYCODE > (FIRST_DEFAULT_LAYER_KEYCODE + 3)
 | 
			
		||||
#    define DEFLYR5 (FIRST_DEFAULT_LAYER_KEYCODE + 4)
 | 
			
		||||
#    define DEFLYR6 (FIRST_DEFAULT_LAYER_KEYCODE + 5)
 | 
			
		||||
#    define DEFLYR7 (FIRST_DEFAULT_LAYER_KEYCODE + 6)
 | 
			
		||||
#    define DEFLYR8 (FIRST_DEFAULT_LAYER_KEYCODE + 7)
 | 
			
		||||
#    if LAST_DEFAULT_LAYER_KEYCODE > (FIRST_DEFAULT_LAYER_KEYCODE + 7)
 | 
			
		||||
#        define DEFLYR9  (FIRST_DEFAULT_LAYER_KEYCODE + 8)
 | 
			
		||||
#        define DEFLYR10 (FIRST_DEFAULT_LAYER_KEYCODE + 9)
 | 
			
		||||
#        define DEFLYR11 (FIRST_DEFAULT_LAYER_KEYCODE + 10)
 | 
			
		||||
#        define DEFLYR12 (FIRST_DEFAULT_LAYER_KEYCODE + 11)
 | 
			
		||||
#    endif
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#define KC_RESET RESET
 | 
			
		||||
#define KC_RST   KC_RESET
 | 
			
		||||
| 
						 | 
				
			
			@ -77,9 +96,9 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record);
 | 
			
		|||
#    define KC_C1R3 SH_T(KC_TAB)
 | 
			
		||||
#elif defined(DRASHNA_LP)
 | 
			
		||||
#    define KC_C1R3 TG(_GAMEPAD)
 | 
			
		||||
#else // SWAP_HANDS_ENABLE
 | 
			
		||||
#else  // SWAP_HANDS_ENABLE
 | 
			
		||||
#    define KC_C1R3 KC_TAB
 | 
			
		||||
#endif // SWAP_HANDS_ENABLE
 | 
			
		||||
#endif  // SWAP_HANDS_ENABLE
 | 
			
		||||
 | 
			
		||||
#define BK_LWER LT(_LOWER, KC_BSPC)
 | 
			
		||||
#define SP_LWER LT(_LOWER, KC_SPC)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue