2013-10-26 11:49:57 -06:00
|
|
|
// These partial variants assign ISO_Level3_Shift to various XKB keycodes
|
|
|
|
// so that the third shift level can be reached.
|
2009-06-06 11:52:23 -06:00
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// The default behaviour:
|
|
|
|
// the right Alt key (AltGr) chooses the third symbol engraved on a key.
|
|
|
|
default partial modifier_keys
|
2009-06-06 11:52:23 -06:00
|
|
|
xkb_symbols "ralt_switch" {
|
|
|
|
key <RALT> {
|
|
|
|
type[Group1]="ONE_LEVEL",
|
|
|
|
symbols[Group1] = [ ISO_Level3_Shift ]
|
2013-10-26 11:49:57 -06:00
|
|
|
};
|
|
|
|
include "level3(modifier_mapping)"
|
|
|
|
};
|
|
|
|
|
|
|
|
// Ensure a mapping to a real modifier for LevelThree.
|
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "modifier_mapping" {
|
|
|
|
replace key <LVL3> {
|
|
|
|
type[Group1] = "ONE_LEVEL",
|
|
|
|
symbols[Group1] = [ ISO_Level3_Shift ]
|
|
|
|
};
|
|
|
|
modifier_map Mod5 { <LVL3> };
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// The right Alt key never chooses the third level.
|
|
|
|
// This option attempts to undo the effect of a layout's inclusion of
|
|
|
|
// 'ralt_switch'. You may want to also select another level3 option
|
|
|
|
// to map the level3 shift to some other key.
|
2009-06-06 11:52:23 -06:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "ralt_alt" {
|
2013-10-26 11:49:57 -06:00
|
|
|
key <RALT> {
|
2009-06-06 11:52:23 -06:00
|
|
|
type[Group1]="TWO_LEVEL",
|
|
|
|
type[Group2]="TWO_LEVEL",
|
|
|
|
type[Group3]="TWO_LEVEL",
|
|
|
|
type[Group4]="TWO_LEVEL",
|
2013-10-26 11:49:57 -06:00
|
|
|
symbols[Group1] = [ Alt_R, Meta_R ],
|
|
|
|
symbols[Group2] = [ Alt_R, Meta_R ],
|
|
|
|
symbols[Group3] = [ Alt_R, Meta_R ],
|
2009-06-06 11:52:23 -06:00
|
|
|
symbols[Group4] = [ Alt_R, Meta_R ]
|
2013-10-26 11:49:57 -06:00
|
|
|
};
|
|
|
|
modifier_map Mod1 { <RALT> };
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// The right Alt key (while pressed) chooses the third shift level,
|
|
|
|
// and Compose is mapped to its second level.
|
2009-06-06 11:52:23 -06:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "ralt_switch_multikey" {
|
|
|
|
key <RALT> {
|
|
|
|
type[Group1]="TWO_LEVEL",
|
|
|
|
symbols[Group1] = [ ISO_Level3_Shift, Multi_key ]
|
2013-10-26 11:49:57 -06:00
|
|
|
};
|
|
|
|
include "level3(modifier_mapping)"
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// A special case of the right-Alt switch -- for use with grp:alts_toggle.
|
2014-12-28 09:41:04 -07:00
|
|
|
hidden partial modifier_keys
|
2009-06-06 11:52:23 -06:00
|
|
|
xkb_symbols "ralt_switch_for_alts_toggle" {
|
2013-10-26 11:49:57 -06:00
|
|
|
virtual_modifiers LAlt, AltGr;
|
2009-06-06 11:52:23 -06:00
|
|
|
key <LALT> {
|
|
|
|
type[Group1]="PC_RALT_LEVEL2",
|
2013-10-26 11:49:57 -06:00
|
|
|
symbols[Group1] = [ Alt_L, ISO_Prev_Group, ISO_Prev_Group ],
|
2009-06-06 11:52:23 -06:00
|
|
|
virtualMods= LAlt
|
|
|
|
};
|
|
|
|
key <RALT> {
|
|
|
|
type[Group1]="PC_ALT_LEVEL2",
|
|
|
|
symbols[Group1] = [ ISO_Level3_Shift, ISO_Next_Group ],
|
|
|
|
virtualMods= AltGr
|
|
|
|
};
|
2013-10-26 11:49:57 -06:00
|
|
|
include "level3(modifier_mapping)"
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// Either Alt key (while pressed) chooses the third shift level.
|
|
|
|
// (To be used mostly to imitate Mac OS functionality.)
|
2009-06-06 11:52:23 -06:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "alt_switch" {
|
|
|
|
include "level3(lalt_switch)"
|
|
|
|
include "level3(ralt_switch)"
|
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// The left Alt key (while pressed) chooses the third shift level.
|
2009-06-06 11:52:23 -06:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "lalt_switch" {
|
|
|
|
key <LALT> {
|
|
|
|
type[Group1]="ONE_LEVEL",
|
|
|
|
symbols[Group1] = [ ISO_Level3_Shift ]
|
2013-10-26 11:49:57 -06:00
|
|
|
};
|
|
|
|
include "level3(modifier_mapping)"
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// The right Ctrl key (while pressed) chooses the third shift level.
|
2009-06-06 11:52:23 -06:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "switch" {
|
|
|
|
key <RCTL> {
|
|
|
|
type[Group1]="ONE_LEVEL",
|
|
|
|
symbols[Group1] = [ ISO_Level3_Shift ]
|
2013-10-26 11:49:57 -06:00
|
|
|
};
|
|
|
|
include "level3(modifier_mapping)"
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// The Menu key (while pressed) chooses the third shift level.
|
2009-06-06 11:52:23 -06:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "menu_switch" {
|
|
|
|
key <MENU> {
|
|
|
|
type[Group1]="ONE_LEVEL",
|
|
|
|
symbols[Group1] = [ ISO_Level3_Shift ]
|
2013-10-26 11:49:57 -06:00
|
|
|
};
|
|
|
|
include "level3(modifier_mapping)"
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// Either Win key (while pressed) chooses the third shift level.
|
2009-06-06 11:52:23 -06:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "win_switch" {
|
|
|
|
include "level3(lwin_switch)"
|
|
|
|
include "level3(rwin_switch)"
|
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// The left Win key (while pressed) chooses the third shift level.
|
2009-06-06 11:52:23 -06:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "lwin_switch" {
|
|
|
|
key <LWIN> {
|
|
|
|
type[Group1]="ONE_LEVEL",
|
|
|
|
symbols[Group1] = [ ISO_Level3_Shift ]
|
2013-10-26 11:49:57 -06:00
|
|
|
};
|
|
|
|
include "level3(modifier_mapping)"
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// The right Win key (while pressed) chooses the third shift level.
|
|
|
|
// (When using this map, you should set your keyboard as pc101 or pc102
|
|
|
|
// instead of pc104 or pc105.)
|
2009-06-06 11:52:23 -06:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "rwin_switch" {
|
|
|
|
key <RWIN> {
|
|
|
|
type[Group1]="ONE_LEVEL",
|
|
|
|
symbols[Group1] = [ ISO_Level3_Shift ]
|
2013-10-26 11:49:57 -06:00
|
|
|
};
|
|
|
|
include "level3(modifier_mapping)"
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// The Enter key on the kepypad (while pressed) chooses the third shift level.
|
|
|
|
// (This is especially useful for Mac laptops which miss the right Alt key.)
|
2009-06-06 11:52:23 -06:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "enter_switch" {
|
|
|
|
key <KPEN> {
|
|
|
|
type[Group1]="ONE_LEVEL",
|
|
|
|
symbols[Group1] = [ ISO_Level3_Shift ]
|
2013-10-26 11:49:57 -06:00
|
|
|
};
|
|
|
|
include "level3(modifier_mapping)"
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
2011-01-10 07:25:56 -07:00
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// The CapsLock key (while pressed) chooses the third shift level.
|
2011-01-10 07:25:56 -07:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "caps_switch" {
|
|
|
|
key <CAPS> {
|
|
|
|
type[Group1]="ONE_LEVEL",
|
|
|
|
symbols[Group1] = [ ISO_Level3_Shift ]
|
|
|
|
};
|
2013-10-26 11:49:57 -06:00
|
|
|
include "level3(modifier_mapping)"
|
2011-01-10 07:25:56 -07:00
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// The Backslash key (while pressed) chooses the third shift level.
|
2011-01-10 07:25:56 -07:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "bksl_switch" {
|
|
|
|
key <BKSL> {
|
|
|
|
type[Group1]="ONE_LEVEL",
|
|
|
|
symbols[Group1] = [ ISO_Level3_Shift ]
|
|
|
|
};
|
2013-10-26 11:49:57 -06:00
|
|
|
include "level3(modifier_mapping)"
|
2011-01-10 07:25:56 -07:00
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// The Less/Greater key (while pressed) chooses the third shift level.
|
2011-01-10 07:25:56 -07:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "lsgt_switch" {
|
|
|
|
key <LSGT> {
|
|
|
|
type[Group1]="ONE_LEVEL",
|
|
|
|
symbols[Group1] = [ ISO_Level3_Shift ]
|
|
|
|
};
|
2013-10-26 11:49:57 -06:00
|
|
|
include "level3(modifier_mapping)"
|
2011-01-10 07:25:56 -07:00
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// The CapsLock key (while pressed) chooses the third shift level,
|
|
|
|
// and latches when pressed together with another third-level chooser.
|
2011-01-10 07:25:56 -07:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "caps_switch_latch" {
|
|
|
|
key <CAPS> {
|
|
|
|
type[Group1]="THREE_LEVEL",
|
|
|
|
symbols[Group1] = [ ISO_Level3_Shift, ISO_Level3_Shift, ISO_Level3_Latch ]
|
|
|
|
};
|
2013-10-26 11:49:57 -06:00
|
|
|
include "level3(modifier_mapping)"
|
2011-01-10 07:25:56 -07:00
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// The Backslash key (while pressed) chooses the third shift level,
|
|
|
|
// and latches when pressed together with another third-level chooser.
|
2011-01-10 07:25:56 -07:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "bksl_switch_latch" {
|
|
|
|
key <BKSL> {
|
|
|
|
type[Group1]="THREE_LEVEL",
|
|
|
|
symbols[Group1] = [ ISO_Level3_Shift, ISO_Level3_Shift, ISO_Level3_Latch ]
|
|
|
|
};
|
2013-10-26 11:49:57 -06:00
|
|
|
include "level3(modifier_mapping)"
|
2011-01-10 07:25:56 -07:00
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// The Less/Greater key (while pressed) chooses the third shift level,
|
|
|
|
// and latches when pressed together with another third-level chooser.
|
2011-01-10 07:25:56 -07:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "lsgt_switch_latch" {
|
|
|
|
key <LSGT> {
|
|
|
|
type[Group1]="THREE_LEVEL",
|
|
|
|
symbols[Group1] = [ ISO_Level3_Shift, ISO_Level3_Shift, ISO_Level3_Latch ]
|
|
|
|
};
|
2013-10-26 11:49:57 -06:00
|
|
|
include "level3(modifier_mapping)"
|
2011-01-10 07:25:56 -07:00
|
|
|
};
|