Merged

dhh opened omacom/omarchy#20325 at 19:09 UTC. It explains that systemd's login manager treats a closed lid as docked only while an external display has an active output. A Thunderbolt display that briefly re-enumerates therefore made a docked laptop suspend while in use, and sometimes again shortly after waking. The pull request reports this on an XPS 14 connected to a Pro Display XDR.

The fix tells the login manager to ignore the lid while on external power and leaves it to Omarchy's own lid-close handling, which still locks the screen when no external display is attached. On battery, closing the lid suspends as before. At 20:08 UTC dhh noted in review (omacom/omarchy#20325:discussion_r4712962916) that the migration now waits until the new config file is installed, instead of asking for a reboot that wouldn't help. He merged the change at 20:25 UTC as omacom/omarchy@9dfce75c064b. The pull request points out one behavior change: a laptop plugged in with its lid shut and no display now stays on and locked rather than sleeping.