feat: docked fallback now displays notification
This commit is contained in:
@@ -22,7 +22,11 @@ hl.notification.create({
|
|||||||
text = "Config for " .. (laptop_config and "laptop" or "desktop") .. " loaded",
|
text = "Config for " .. (laptop_config and "laptop" or "desktop") .. " loaded",
|
||||||
timeout = 5000,
|
timeout = 5000,
|
||||||
})
|
})
|
||||||
if #hl.get_monitors() <= 1 then
|
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
|
is_docked = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user