Debian Codegraph @

test/data/compat/merge_modes_defaults

raw
1 xkb_compat {
2 virtual_modifiers M1=0x1000, M2=0x2000, M3=0x4000, M4=0x8000;
3
4 interpret.repeat= False;
5 // Effective: override
6 interpret.repeat= True;
7
8 interpret.virtualmod = M1;
9 // Effective: override
10 interpret.virtualmod = M2;
11 // Ineffective: cannot augment previous value
12 augment interpret.virtualmod = M3;
13
14 SetGroup.group = 1;
15 // Effective: override
16 SetGroup.group = 2;
17 // Ineffective: cannot augment previous value
18 augment SetGroup.group = 3;
19
20
21 // Effective: *override* every explicit field
22 interpret a {
23 virtualmod = M4;
24 action=SetGroup(group=1);
25 };
26 interpret A {
27 repeat = False;
28 virtualmod = M1;
29 action=SetMods(mods=M1);
30 };
31
32
33 // Effective: no previous interpret entry,
34 // so *override* every explicit field
35 augment interpret s {
36 repeat = False;
37 action=SetGroup();
38 };
39 // Only augment fields not set previously (explicit or implicit)
40 augment interpret s {
41 // Ineffective: cannot augment previous implicit value
42 virtualmod = M4;
43 // Ineffective: cannot augment previous explicit value
44 action=SetGroup(group=4);
45 // Effective: no previous value
46 useModMapMods=level1;
47 };
48 augment interpret S {
49 action=SetGroup(group=4);
50 };
51
52 indicator.modifiers = M1;
53 indicator.modifiers = M2;
54 augment indicator.modifiers = M3;
55 indicator.groups = All - 1;
56 indicator.controls = AudibleBell;
57
58 indicator "A" {
59 modifiers = M4;
60 whichmodstate = base;
61 };
62 indicator "A" {
63 whichmodstate = locked;
64 whichgroupstate = locked;
65 controls = SlowKeys;
66 };
67 augment indicator "B" {
68 modifiers = M4;
69 whichmodstate = base;
70 };
71 augment indicator "B" {
72 groups = 4;
73 whichmodstate = locked;
74 whichgroupstate = locked;
75 };
76 };