fix: improved startup notifications
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user