diff options
-rw-r--r-- | linux/X/base | 1 | ||||
-rw-r--r-- | linux/X/de | 10 | ||||
-rw-r--r-- | linux/X/shift | 23 |
3 files changed, 25 insertions, 9 deletions
diff --git a/linux/X/base b/linux/X/base index 1279d18..e87c999 100644 --- a/linux/X/base +++ b/linux/X/base @@ -856,6 +856,7 @@ * misc:typo = +typo(base):4 ! option = symbols + shift:both_capslock = +shift(both_capslock) grp:shift_toggle = +group(shifts_toggle) altwin:menu = +altwin(menu) altwin:meta_alt = +altwin(meta_alt) @@ -254,15 +254,7 @@ xkb_symbols "neo" { // Shift // -------------------------------------------------------------- // Shift + Shift = Caps_Lock - key.type[Group1] = "TWO_LEVEL"; - key <LFSH> { - symbols[Group1] = [ Shift_L, Caps_Lock ], - actions[Group1] = [ SetMods(modifiers=Shift), LockMods(modifiers=Lock) ] - }; - key <RTSH> { - symbols[Group1] = [ Shift_R, Caps_Lock ], - actions[Group1] = [ SetMods(modifiers=Shift), LockMods(modifiers=Lock) ] - }; + include "shift(both_capslock)" // Neo-Mod3 // -------------------------------------------------------------- diff --git a/linux/X/shift b/linux/X/shift index eb7533f..1edf13a 100644 --- a/linux/X/shift +++ b/linux/X/shift @@ -17,3 +17,26 @@ xkb_symbols "breaks_caps" { ] }; }; + +partial modifier_keys +xkb_symbols "lshift_both_capslock" { + key <LFSH> { + type[Group1]="TWO_LEVEL", + symbols[Group1] = [ Shift_L, Caps_Lock ], + actions[Group1] = [ SetMods(modifiers=Shift), LockMods(modifiers=Lock) ] + }; +}; + +partial modifier_keys +xkb_symbols "rshift_both_capslock" { + key <RTSH> { + type[Group1]="TWO_LEVEL", + symbols[Group1] = [ Shift_R, Caps_Lock ], + actions[Group1] = [ SetMods(modifiers=Shift), LockMods(modifiers=Lock) ] + }; +}; +partial modifier_keys +xkb_symbols "both_capslock" { + include "shift(lshift_both_capslock)" + include "shift(rshift_both_capslock)" +}; |