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",
|
||||
timeout = 5000,
|
||||
})
|
||||
if #hl.get_monitors() <= 1 then
|
||||
is_docked = false
|
||||
end
|
||||
|
||||
-- Core
|
||||
require("hyprland.colors")
|
||||
|
||||
Reference in New Issue
Block a user