Add ¥ (Yen symbol)

This commit is contained in:
Björn Struckmeier 2024-12-11 07:33:30 -05:00
commit fa37fd877f
5 changed files with 17 additions and 10 deletions

View file

@ -82,7 +82,7 @@ All base layers share the same thumb cluster:
─── ───┼───┼───┼───┼─── ───┼───┼───┼───┼─── ─── ─── ───┼───┼───┼───┼─── ───┼───┼───┼───┼─── ───
(⌘)│F9 │F10│F11│F12│ ¢ 0 │ 1 │ 2 │ 3 │ , │(⌘) (⌘)│F9 │F10│F11│F12│ ¢ 0 │ 1 │ 2 │ 3 │ , │(⌘)
───┌───┬───┐ ┌───┬───┐─── ───┌───┬───┐ ┌───┬───┐───
$ │Sft│(v)│ │Bsp│Spc│App ¥ │Sft│(v)│ │Bsp│Spc│ $
───└───┴───┘ └ATT┴─⇧─┘─── ───└───┴───┘ └ATT┴─⇧─┘───
``` ```

View file

@ -94,7 +94,7 @@ All base layers share the same thumb cluster:
─── ───┼───┼───┼───┼─── ───┼───┼───┼───┼─── ─── ─── ───┼───┼───┼───┼─── ───┼───┼───┼───┼─── ───
(⌘)│F9 │F10│F11│F12│ ¢ 0 │ 1 │ 2 │ 3 │ , │(⌘) (⌘)│F9 │F10│F11│F12│ ¢ 0 │ 1 │ 2 │ 3 │ , │(⌘)
───┌───┬───┐ ┌───┬───┐─── ───┌───┬───┐ ┌───┬───┐───
$ │Sft│(v)│ │Bsp│Spc│App ¥ │Sft│(v)│ │Bsp│Spc│ $
───└───┴───┘ └ATT┴─⇧─┘─── ───└───┴───┘ └ATT┴─⇧─┘───
``` ```

View file

@ -279,6 +279,13 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
unregister_code16(ALGR(DE_N)); unregister_code16(ALGR(DE_N));
} }
return false; return false;
case DE_YEN:
if (record->event.pressed) {
register_code16(S(ALGR(DE_Z)));
} else {
unregister_code16(S(ALGR(DE_Z)));
}
return false;
case KC_CUT: case KC_CUT:
if (record->event.pressed) { if (record->event.pressed) {
tap_code16(S(KC_DEL)); tap_code16(S(KC_DEL));

View file

@ -331,7 +331,7 @@ void symR_reset(tap_dance_state_t *state, void *user_data);
# define _PR3_6_ _PR3_5_, _ADD_R_3_ # define _PR3_6_ _PR3_5_, _ADD_R_3_
// //
# define _PL4_2_ KC_BTN1, KC_BTN2 # define _PL4_2_ KC_BTN1, KC_BTN2
# define _PL4_3_ MS_GSB1, _PL4_2_ # define _PL4_3_ MS_CSB1, _PL4_2_
# define _PR4_2_ KC_BTN3, KC_BTN1 # define _PR4_2_ KC_BTN3, KC_BTN1
# define _PR4_3_ _PR4_2_, MS_CSB1 # define _PR4_3_ _PR4_2_, MS_CSB1
// //
@ -355,9 +355,9 @@ void symR_reset(tap_dance_state_t *state, void *user_data);
#define _LR3_6_ _LR3_5_, _ADD_R_3_ #define _LR3_6_ _LR3_5_, _ADD_R_3_
// //
#define _LL4_2_ KC_LSFT, KC_TRNS #define _LL4_2_ KC_LSFT, KC_TRNS
#define _LL4_3_ DE_DLR, _LL4_2_ #define _LL4_3_ DE_YEN, _LL4_2_
#define _LR4_2_ ATT(KC_BSPC), SFT_SPC #define _LR4_2_ ATT(KC_BSPC), SFT_SPC
#define _LR4_3_ _LR4_2_, KC_APP #define _LR4_3_ _LR4_2_, DE_DLR
// //
#define _LOWER_3x5_ _LL1_5_, _LR1_5_, _LL2_5_, _LR2_5_, _LL3_5_, _LR3_5_ #define _LOWER_3x5_ _LL1_5_, _LR1_5_, _LL2_5_, _LR2_5_, _LL3_5_, _LR3_5_
#define _LOWER_3x6_ _LL1_6_, _LR1_6_, _LL2_6_, _LR2_6_, _LL3_6_, _LR3_6_ #define _LOWER_3x6_ _LL1_6_, _LR1_6_, _LL2_6_, _LR2_6_, _LL3_6_, _LR3_6_