From 2f54941a80fdea48c20b0a9e762d236202c0792a Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Mon, 22 Jun 2026 06:53:43 +0200 Subject: [PATCH] feat: add protection against black screen on laptop with no screens connected --- config/hypr/hyprland.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/hypr/hyprland.lua b/config/hypr/hyprland.lua index 7b5de41..994c061 100644 --- a/config/hypr/hyprland.lua +++ b/config/hypr/hyprland.lua @@ -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")