suspending the laptop when no external screen is connected and lid is closed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user