suspending the laptop when no external screen is connected and lid is closed

This commit is contained in:
2026-02-11 00:54:20 +01:00
parent a6485979d0
commit 534930c9bf

View File

@@ -22,4 +22,5 @@ hyprctl keyword monitor "$INTERNAL, disable"
# Only lock if there is NO external monitor
if [ "$external_count" -eq 0 ]; then
hyprlock
systemctl suspend
fi