fix: improved startup notifications

This commit is contained in:
2026-07-03 08:08:13 +02:00
parent 3b9ded9cfd
commit 61c1ece03d
+5 -4
View File
@@ -18,16 +18,17 @@ if read_docked and laptop_config then
is_docked = true is_docked = true
end end
hl.notification.create({
text = "Config for " .. (laptop_config and "laptop" or "desktop") .. " loaded",
timeout = 5000,
})
if is_docked and #hl.get_monitors() <= 1 then if is_docked and #hl.get_monitors() <= 1 then
hl.notification.create({ hl.notification.create({
text = "Emergency docked mode fallback initiated: No external displays detected", text = "Emergency docked mode fallback initiated: No external displays detected",
timeout = 5000, timeout = 5000,
}) })
is_docked = false is_docked = false
else
hl.notification.create({
text = "Config for " .. (laptop_config and "laptop" or "desktop") .. " loaded",
timeout = 5000,
})
end end
-- Core -- Core