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
|
# Only lock if there is NO external monitor
|
||||||
if [ "$external_count" -eq 0 ]; then
|
if [ "$external_count" -eq 0 ]; then
|
||||||
hyprlock
|
hyprlock
|
||||||
|
systemctl suspend
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user