-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathconfig.launcher.cpy
91 lines (74 loc) · 1.56 KB
/
config.launcher.cpy
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
87
88
89
90
91
struct RMApp:
string bin
string which = "XBXA"
string name = "" // from draft launcher
string term = "" // from draft launcher
string desc = "" // from draft launcher
string resume = ""
bool always_show = false
bool manage_power = true
int bpp = 16
// this will contain a framebuffer snapshot if we have one
char *snapshot = NULL
// proc management stuff below here
// whether this app is currently running
bool is_running = false
int mem_usage = 0 // in KB
vector<int> pids
RMApp APP_XOCHITL = RMApp %{
bin : "xochitl",
which : "xochitl",
name : "Remarkable",
always_show : true,
manage_power : false,
bpp: 16
}
RMApp APP_NICKEL = RMApp %{
bin : "nickel",
which : "nickel",
name : "Nickel",
always_show : true,
manage_power : false,
bpp: 32
}
RMApp APP_NONE = RMApp %{
bin : "/usr/bin/false",
which : "false",
name : "",
always_show : false,
manage_power : false,
}
#ifdef REMARKABLE
RMApp APP_MAIN = APP_XOCHITL
#elif KOBO
RMApp APP_MAIN = APP_NICKEL
#else
RMApp APP_MAIN = APP_NONE
#endif
RMApp APP_KOREADER = RMApp %{
bin:"/home/root/koreader/koreader.sh",
which:"koreader.sh",
name:"KOReader",
}
RMApp APP_FINGERTERM = RMApp %{
bin:"/home/root/apps/fingerterm",
which:"fingerterm",
name:"FingerTerm",
}
RMApp APP_KEYWRITER = RMApp %{
bin:"/home/root/apps/keywriter",
which:"keywriter",
name:"KeyWriter",
}
RMApp APP_EDIT = RMApp %{
bin:"/home/root/apps/edit",
which:"edit",
name:"Edit",
}
vector<RMApp> APPS = %{
APP_MAIN
,APP_KOREADER
,APP_FINGERTERM
,APP_KEYWRITER
,APP_EDIT
}