-
Notifications
You must be signed in to change notification settings - Fork 2
/
endpoints.txt
87 lines (77 loc) · 1.36 KB
/
endpoints.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
API Endpoints
GET /commands
List all known commands
Response format
[
{
name:"Example 1",
description:"Optional description",
windows:1,
args:[
{"name":"arg1", type:"enum", options:["foo", "bar"]},
{"name":"stringarg", type:"string", hint:"your hint"},
...
]
},
...
]
GET /layouts
List all known layouts
Response format
[
{
display:"disp1",
layouts:[
{
name:"Fullscreen",
frames:[
{id:1, x:0, y:0, w:300, h:400, screen:4},
...
],
screens:[
{id:5, width:1920, height:1080},
...
]
},
...
]
},
...
]
GET/POST /status
Get status information on the daemon, such as the
current layout and running commands
Response format:
{
layout:[
{display:"disp1", layout:"name"},
...
],
running:[
"command1",
...
]
}
GET/POST /reset
Stop all running commands and load default layout
GET/POST /stop/name
Stop a running command
GET/POST /layout/display/name
Activate a layout on a display
GET/POST /select/display/id
Select a display frame
GET/POST /move/command/frame
Move a running command to another frame on the display
it is currently running on
POST /command/name
Start a command
Request format
{
display:"disp1",
frame:4,
fullscreen:1,
arguments:{
"arg1":"value1",
...
}
}