Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- config file for masterApp RC7fbgX5
- -- uses the variable:
- -- exitProgram : boolean (if set to true, the program will end at next while loop, used in masterApp)
- apps = {
- -- default apps (basically my setup, change as you want!)
- -- note: width and height are not yet tested properly, change at own risk!
- {
- name = "door Opener",
- color = colors.green,
- width = 10,
- height = 2,
- func = function ()
- shell.run("doorOpener")
- end
- },
- {
- name = "paint",
- color = colors.red,
- width = 10,
- height = 2,
- func = function ()
- local imgName = os.date("%Y%m%d%H%M%S")
- shell.run("fg", "paint image-" .. imgName)
- end
- },
- {
- name = "cldvChat",
- color = colors.blue,
- width = 10,
- height = 2,
- func = function ()
- shell.run("fg", "cldvChat client cldvChat cldvChatServer")
- end
- },
- {
- name = "snake",
- color = colors.orange,
- width = 10,
- height = 2,
- func = function ()
- shell.run("fg", "worm")
- end
- },
- {
- name = "test",
- color = colors.gray,
- width = 10,
- height = 2,
- func = function ()
- --
- end
- },
- {
- name = "test",
- color = colors.cyan,
- width = 10,
- height = 2,
- func = function ()
- --
- end
- },
- {
- name = "update",
- color = colors.purple,
- width = 10,
- height = 2,
- func = function ()
- shell.run("update", "update run")
- end
- },
- {
- name = "quit",
- color = colors.brown,
- width = 10,
- height = 2,
- func = function ()
- exitProgram = true
- end
- }
- }
- -- will be called on `masterApp update`
- function masterAppConfigUpdate ()
- -- remove the following line if you modified this file:
- shell.run("pastebin", "run", "FuQ3WvPs F7Czj8j4 config/masterAppConfig run")
- -- paste your update scripts for the used programs here
- shell.run("pastebin", "run", "FuQ3WvPs 3iLiWjzs doorOpener")
- shell.run("pastebin", "run", "FuQ3WvPs 4izkdH5g cldvChat")
- end
- return apps
Add Comment
Please, Sign In to add comment