fix: improved startup notifications
This commit is contained in:
@@ -18,16 +18,17 @@ if read_docked and laptop_config then
|
||||
is_docked = true
|
||||
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
|
||||
hl.notification.create({
|
||||
text = "Emergency docked mode fallback initiated: No external displays detected",
|
||||
timeout = 5000,
|
||||
})
|
||||
is_docked = false
|
||||
else
|
||||
hl.notification.create({
|
||||
text = "Config for " .. (laptop_config and "laptop" or "desktop") .. " loaded",
|
||||
timeout = 5000,
|
||||
})
|
||||
end
|
||||
|
||||
-- Core
|
||||
|
||||
Reference in New Issue
Block a user