我将 xkb 配置为使用唯一的热键选择每个键盘布局(en = Win+1、de = Win+2、jp = Win+3)
replace key <I156> { [NoSymbol], actions[Group1] = [ LockGroup(group=1) ] };
replace key <I157> { [NoSymbol], actions[Group1] = [ LockGroup(group=2) ] };
replace key <I210> { [NoSymbol], actions[Group1] = [ LockGroup(group=3) ] };
replace key <LWIN> {
symbols[Group1] = [ Super_L ],
actions[Group1] = [ SetControls(controls=overlay1) ]
};
key <AE01> { overlay1 = <I156> };
key <AE02> { overlay1 = <I157> };
key <AE03> { overlay1 = <I210> };
但它会破坏 Win 键的热键(例如 Win + T)。是否可以配置按键来切换覆盖而不破坏热键?