powermenu: route Sleep through suspend-then-hibernate
Aligns the third sleep path (power menu) with the lid handler and the swayidle 30-min timer — all three now suspend immediately and hibernate after HibernateDelaySec (30 min). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -13,6 +13,6 @@ CHOICE=$(printf " Logout\n Restart\n Sleep\n Shutdown" \
|
|||||||
case "$CHOICE" in
|
case "$CHOICE" in
|
||||||
Logout) niri msg action quit ;;
|
Logout) niri msg action quit ;;
|
||||||
Restart) systemctl reboot ;;
|
Restart) systemctl reboot ;;
|
||||||
Sleep) systemctl suspend ;;
|
Sleep) systemctl suspend-then-hibernate ;;
|
||||||
Shutdown) systemctl poweroff ;;
|
Shutdown) systemctl poweroff ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user