feat: add protection against black screen on laptop with no screens connected
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user