default alphanumeric_keys modifier_keys xkb_symbols "basic" { name[1] = "Multiple actions"; virtual_modifiers Alt, Super, LevelThree; // Multiple keysyms but no actions: OK key { symbols[1] = [ { Control_L, ISO_Group_Shift } ] }; // Multiple actions but no keysyms: OK, but will use NoSymbol key { actions[1] = [ { SetMods(modifiers=Control), SetGroup(group=+1) } ] }; // Multiple keysyms and matching actions key { virtualModifiers = LevelThree, symbols[1] = [ { ISO_Level3_Shift, ISO_Group_Shift } ], actions[1] = [ { SetMods(modifiers=LevelThree), SetGroup(group=+1) } ] }; // Multiple actions and matching keysyms key { virtualModifiers = LevelThree, actions[1] = [ { SetMods(modifiers=LevelThree), SetGroup(group=+1) } ], symbols[1] = [ { ISO_Level3_Shift, ISO_Group_Shift } ] }; // Different actions and keysyms count key { symbols[1] = [ Alt_L ], actions[1] = [ { SetMods(modifiers=Alt), SetGroup(group=+1) } ] }; key { symbols[1] = [ { Alt_R, ISO_Group_Shift } ], actions[1] = [ SetMods(modifiers=Alt) ] }; key { symbols[1] = [ { Super_L, ISO_Group_Shift } ], actions[1] = [ { SetMods(modifiers=Super), SetGroup(group=+1), NoAction() } ] }; key { symbols[1] = [ { Super_R, ISO_Group_Shift , NoSymbol } ], actions[1] = [ { SetMods(modifiers=Super), SetGroup(group=+1) } ] }; // Incompatible categories key { symbols[1] = [ { Control_L, Shift_L } ] }; modifier_map Control { }; key { symbols[1] = [ { Control_L, Shift_L } ], actions[1] = [ { SetMods(modifiers=Control), SetMods(modifiers=Shift) } ] }; // Various overrides, different keysyms, no explicit actions key { [ x ] }; key { [ { Control_L, ISO_Group_Shift } ] }; key { [ { Control_L, ISO_Group_Shift } ] }; key { [ x ] }; // Various overrides, no keysyms, explicit actions key { actions[1] = [ SetMods(modifiers=LevelThree) ] }; key { actions[1] = [ { SetMods(modifiers=LevelThree), SetGroup(group=+1) } ] }; key { actions[1] = [ { SetMods(modifiers=LevelThree), SetGroup(group=+1) } ] }; key { actions[1] = [ SetMods(modifiers=LevelThree) ] }; // Various overrides, different keysyms & actions key { virtualModifiers = LevelThree, symbols[1] = [ Control_L ], actions[1] = [ SetMods(modifiers=Control) ] }; key { symbols[1] = [ { ISO_Level3_Shift, ISO_Group_Shift } ], actions[1] = [ { SetMods(modifiers=LevelThree), SetGroup(group=+1) } ] }; key { virtualModifiers = LevelThree, symbols[1] = [ { ISO_Level3_Shift, ISO_Group_Shift } ], actions[1] = [ { SetMods(modifiers=LevelThree), SetGroup(group=+1) } ] }; key { symbols[1] = [ Control_L ], actions[1] = [ SetMods(modifiers=Control) ] }; // Various overrides, same keysyms but different actions key { virtualModifiers = LevelThree, symbols[1] = [ { ISO_Level3_Shift, ISO_Group_Shift } ], actions[1] = [ { SetMods(modifiers=Control), Private(type=254, data="foo") } ] }; key { symbols[1] = [ { ISO_Level3_Shift, ISO_Group_Shift } ], actions[1] = [ { SetMods(modifiers=LevelThree), SetGroup(group=+1) } ] }; // Mix various number of keysyms/actions key { symbols[1] = [ ISO_Level3_Shift , { ISO_Level3_Shift, ISO_Group_Shift } ] }; key { actions[1] = [ SetMods(modifiers=LevelThree), { SetMods(modifiers=LevelThree), SetGroup(group=+1) } ] }; key { symbols[1] = [ ISO_Level3_Shift , { ISO_Level3_Shift, ISO_Group_Shift } ], actions[1] = [ SetMods(modifiers=LevelThree), { SetMods(modifiers=LevelThree), SetGroup(group=+1) } ] }; key { symbols[1] = [ { ISO_Level3_Shift, ISO_Group_Shift }, ISO_Level3_Shift ] }; key { actions[1] = [ { SetMods(modifiers=LevelThree), SetGroup(group=+1) }, SetMods(modifiers=LevelThree) ] }; key { symbols[1] = [ { ISO_Level3_Shift, ISO_Group_Shift }, ISO_Level3_Shift ], actions[1] = [ { SetMods(modifiers=LevelThree), SetGroup(group=+1) }, SetMods(modifiers=LevelThree) ] }; key { symbols[1] = [ ISO_Level3_Shift , { ISO_Level3_Shift, ISO_Group_Shift }, { ISO_Level3_Shift, ISO_Group_Shift } ] }; key { actions[1] = [ SetMods(modifiers=LevelThree), { SetMods(modifiers=LevelThree), SetGroup(group=+1) }, { SetMods(modifiers=LevelThree), SetGroup(group=+1) } ] }; key { symbols[1] = [ ISO_Level3_Shift , { ISO_Level3_Shift, ISO_Group_Shift }, { ISO_Level3_Shift, ISO_Group_Shift } ], actions[1] = [ SetMods(modifiers=LevelThree), { SetMods(modifiers=LevelThree), SetGroup(group=+1) }, { SetMods(modifiers=LevelThree), SetGroup(group=+1) } ] }; // Using modifier_map (may trigger multiple interprets) key { symbols[1] = [ { a, b } ] }; modifier_map Shift { }; // Our only alphanum key ✨ key { [ 2, at ] }; };