diff options
author | ubq323 <ubq323@ubq323.website> | 2024-04-01 02:33:33 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-04-01 02:33:33 +0100 |
commit | 0ab0cbfe43c27577a5f7c709d447ef9714b9b3ff (patch) | |
tree | 0ba7b0b0994ce8f43fa029ada7bb53f66d650194 | |
parent | 755e8f8771bb1d481dba77d92919fe7bb687f1c8 (diff) |
launch john
-rw-r--r-- | john.lua | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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) |