ColdIV

masterAppConfig

Jul 16th, 2021 (edited)
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.30 KB | None | 0 0
  1. -- config file for masterApp RC7fbgX5
  2. --  uses the variable:
  3. --      exitProgram : boolean (if set to true, the program will end at next while loop, used in masterApp)
  4.  
  5. apps = {
  6.     -- default apps (basically my setup, change as you want!)
  7.     -- note: width and height are not yet tested properly, change at own risk!
  8.     {
  9.         name = "door Opener",
  10.         color = colors.green,
  11.         width = 10,
  12.         height = 2,
  13.         func = function ()
  14.             shell.run("doorOpener")
  15.         end
  16.     },
  17.     {
  18.         name = "paint",
  19.         color = colors.red,
  20.         width = 10,
  21.         height = 2,
  22.         func = function ()
  23.             local imgName = os.date("%Y%m%d%H%M%S")
  24.             shell.run("fg", "paint image-" .. imgName)
  25.         end
  26.     },
  27.     {
  28.         name = "cldvChat",
  29.         color = colors.blue,
  30.         width = 10,
  31.         height = 2,
  32.         func = function ()
  33.             shell.run("fg", "cldvChat client cldvChat cldvChatServer")
  34.         end
  35.     },
  36.     {
  37.         name = "snake",
  38.         color = colors.orange,
  39.         width = 10,
  40.         height = 2,
  41.         func = function ()
  42.             shell.run("fg", "worm")
  43.         end
  44.     },
  45.     {
  46.         name = "test",
  47.         color = colors.gray,
  48.         width = 10,
  49.         height = 2,
  50.         func = function ()
  51.             --
  52.         end
  53.     },
  54.     {
  55.         name = "test",
  56.         color = colors.cyan,
  57.         width = 10,
  58.         height = 2,
  59.         func = function ()
  60.             --
  61.         end
  62.     },
  63.     {
  64.         name = "update",
  65.         color = colors.purple,
  66.         width = 10,
  67.         height = 2,
  68.         func = function ()
  69.             shell.run("update", "update run")
  70.         end
  71.     },
  72.     {
  73.         name = "quit",
  74.         color = colors.brown,
  75.         width = 10,
  76.         height = 2,
  77.         func = function ()
  78.             exitProgram = true
  79.         end
  80.     }
  81. }
  82.  
  83. -- will be called on `masterApp update`
  84. function masterAppConfigUpdate ()
  85.     -- remove the following line if you modified this file:
  86.     shell.run("pastebin", "run", "FuQ3WvPs F7Czj8j4 config/masterAppConfig run")
  87.    
  88.     -- paste your update scripts for the used programs here
  89.     shell.run("pastebin", "run", "FuQ3WvPs 3iLiWjzs doorOpener")
  90.     shell.run("pastebin", "run", "FuQ3WvPs 4izkdH5g cldvChat")
  91. end
  92.  
  93. return apps
Add Comment
Please, Sign In to add comment