From 0b03d3625bb14c4cfa08a89b0c27aa04180fb03e Mon Sep 17 00:00:00 2001 From: voidarc Date: Sun, 23 Aug 2026 09:47:02 +0100 Subject: [PATCH] fixed null safety and added startup apps for mobile03 --- modules/events.lua | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/modules/events.lua b/modules/events.lua index 9b24e5a..1dd5f35 100644 --- a/modules/events.lua +++ b/modules/events.lua @@ -7,16 +7,25 @@ local appList = { } local localAppList +local desktopAppList = { + "wayvnc 0.0.0.0 --output=DP-1", +} +local laptopApplist = { + "way-edges", +} + if Hostname == "HACKSTATION" then -- If on desktop do desktop things - localAppList = { - "wayvnc 0.0.0.0 --output=DP-1", - } + localAppList = desktopAppList elseif Hostname == "mobile02" then -- If on laptop, do laptop things - localAppList = { - "way-edges", - } + localAppList = laptopApplist +elseif Hostname == "mobile03" then + -- If on other laptop, do other laptop things + localAppList = laptopApplist +else + -- Prevents null errors + localAppList = { "echo placeholder" } end for _, command in ipairs(localAppList) do