summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-04-01 02:33:33 +0100
committerubq323 <ubq323@ubq323.website>2024-04-01 02:33:33 +0100
commit0ab0cbfe43c27577a5f7c709d447ef9714b9b3ff (patch)
tree0ba7b0b0994ce8f43fa029ada7bb53f66d650194
parent755e8f8771bb1d481dba77d92919fe7bb687f1c8 (diff)
launch john
-rw-r--r--john.lua14
1 files changed, 11 insertions, 3 deletions
diff --git a/john.lua b/john.lua
index b1449fe..cab1104 100644
--- a/john.lua
+++ b/john.lua
@@ -1,10 +1,18 @@
local framebuf = require("framebuf")
local fb = framebuf.new()
+local function splitw(str)
+ local res = {}
+ for s in str:gmatch("%S+") do
+ table.insert(res,s)
+ end
+ return res
+end
-local monitors = {
- "monitor_1808", "monitor_1810", "monitor_1809"
-}
+local monitors = splitw(settings.get"john.monitors")
+if monitors == nil or #monitors < 1 then
+ error("need john.monitors setting")
+end
for ix,iname in ipairs(monitors) do
print("doing",ix,iname)