feat: add protection against black screen on laptop with no screens connected

This commit is contained in:
2026-06-22 06:53:43 +02:00
parent 4c05ddae93
commit 2f54941a80
+3
View File
@@ -22,6 +22,9 @@ 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
is_docked = false
end
-- Core -- Core
require("hyprland.colors") require("hyprland.colors")