doc: shuffled around some sections, fixes.
[staging/windowmanager.git] / layers.json
1 {
2    "comment": "Surface ID to Layer ID mapping",
3
4    "main_surface": {
5       "surface_role": "HomeScreen",
6       "comment": "This surface should never be made invisible (The HomeScreen)"
7    },
8
9    "mappings": [
10       {
11          "role": "^HomeScreen$",
12          "name": "HomeScreen",
13          "layer_id": 1000,
14          "area": { "type": "full" },
15          "comment": "Single layer map for the HomeScreen, XXX: type is redundant, could also check existence of id/first_id+last_id"
16       },
17       {
18          "role": "^App.*",
19          "name": "apps",
20          "layer_id": 1001,
21          "area": { "type": "rect", "rect": { "x": 0, "y": 100, "width": -1, "height": -201 } },
22          "comment": "Range of IDs that will always be placed on layer 1001, negative rect values are interpreted as output_size.dimension - $value",
23
24          "split_layouts": [
25             {
26                "name": "Media Player",
27                "main_match": "^App MPlayer Main$",
28                "sub_match": "^App MPlayer Sub",
29                "priority": 500,
30                "comment": "All Media Player sub surfaces can be put in a sub layout with the Media Player"
31             },
32             {
33                "name": "Playlist",
34                "main_match": "",
35                "sub_match": "^App MPlayer Sub Playlist$",
36                "priority": 100,
37                "comment": "Always allow the media player playlist to be displayed as sub surface"
38             },
39             {
40                "name": "Map",
41                "main_match": "^App Navi Map",
42                "sub_match": "^App Navi Guidance",
43                "priority": 1000
44             },
45             {
46                "name": "App1 example",
47                "main_match": "^App1",
48                "sub_match": ".*",
49                "priority": 1000
50             }
51          ]
52       },
53       {
54          "role": "^OnScreen.*",
55          "name": "popups",
56          "layer_id": 9999,
57          "area": { "type": "rect", "rect": { "x": 0, "y": 300, "width": -1, "height": 400 } },
58          "comment": "Range of IDs that will always be placed on the popup layer, that gets a very high 'dummy' id of 9999"
59       }
60    ]
61 }