diff options
author | Benno Schulenberg <bensberg@telfort.nl> | 2022-07-05 09:23:10 +0200 |
---|---|---|
committer | Sergey Udaltsov <sergey.udaltsov@gmail.com> | 2022-07-07 09:30:08 +0000 |
commit | 17bd4e4d1d68e4f8aadaf4c30bb1469b6b9b6d3e (patch) | |
tree | 9a276a2f89436e50527285271631124d9811dd2b /symbols/group | |
parent | 9976c34ae771ea04b133cc01a7e1ef036666757e (diff) |
rename three group options, to be distinct from "while-pressed" options
In general, options whose name ends in "_switch" do something *while*
the relevant key or key combination is being held -- see, for example,
grp:menu_switch, lv3:ralt_switch, or lv5:rctrl_switch.
The renamed three options, however, set a group when they are pressed,
and this group remains set when the relevant key is released.
Keep the old names around as aliases, for backward compatibility.
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
Diffstat (limited to 'symbols/group')
-rw-r--r-- | symbols/group | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/symbols/group b/symbols/group index 87a5bc99..684798a9 100644 --- a/symbols/group +++ b/symbols/group @@ -85,16 +85,6 @@ xkb_symbols "shift_caps_toggle" { }; }; -// Pressing Caps_Lock selects the first group, -// pressing Shift+Caps_Lock selects the second group. -partial modifier_keys -xkb_symbols "shift_caps_switch" { - key <CAPS> { - type[group1] = "TWO_LEVEL", - [ ISO_First_Group, ISO_Last_Group ] - }; -}; - // Pressing Alt+Space switches to the next group. partial modifier_keys xkb_symbols "alt_space_toggle" { @@ -122,10 +112,18 @@ xkb_symbols "ctrl_space_toggle" { }; }; + +// Pressing Caps_Lock selects the first group, +// pressing Shift+Caps_Lock selects the second group. +partial modifier_keys +xkb_symbols "caps_select" { + key <CAPS> {[ ISO_First_Group, ISO_Last_Group ], type[group1] = "TWO_LEVEL" }; +}; + // Pressing the left Win key selects the first group, // pressing the right Win key or the Menu key selects the second group. partial modifier_keys -xkb_symbols "win_menu_switch" { +xkb_symbols "win_menu_select" { key <LWIN> {[ ISO_First_Group ]}; key <RWIN> {[ ISO_Last_Group ]}; key <MENU> {[ ISO_Last_Group ]}; @@ -134,7 +132,7 @@ xkb_symbols "win_menu_switch" { // Pressing the left Ctrl key selects the first group, // pressing the right Ctrl key selects the second group. partial modifier_keys -xkb_symbols "lctrl_rctrl_switch" { +xkb_symbols "ctrl_select" { key <LCTL> {[ ISO_First_Group ]}; key <RCTL> {[ ISO_Last_Group ]}; }; |