about summary refs log tree commit diff
path: root/zzz
diff options
context:
space:
mode:
Diffstat (limited to 'zzz')
-rwxr-xr-xzzz6
1 files changed, 4 insertions, 2 deletions
diff --git a/zzz b/zzz
index ff50d28..7d422a1 100755
--- a/zzz
+++ b/zzz
@@ -6,7 +6,8 @@ USAGE="Usage: ${0##*/} [-nSzZR]
    -S   Low-power idle (ACPI S0)
    -z   suspend to RAM (ACPI S3) [DEFAULT for zzz(8)]
    -Z   hibernate to disk & power off (ACPI S4) [DEFAULT for ZZZ(8)]
-   -R   hibernate to disk & reboot"
+   -R   hibernate to disk & reboot
+   -H   hibernate to disk & suspend (aka suspend-hybrid)"
 
 fail() { echo ${0##*/}: 1>&2 "$*"; exit 1; }
 
@@ -17,13 +18,14 @@ case "$0" in
   *ZZZ) ZZZ_MODE=hibernate;;
 esac
 
-while getopts hnSzRZ: opt; do
+while getopts hnSzHRZ: opt; do
   case "$opt" in
     n) ZZZ_MODE=noop;;
     S) ZZZ_MODE=standby;;
     z) ZZZ_MODE=suspend;;
     Z) ZZZ_MODE=hibernate;;
     R) ZZZ_MODE=hibernate; ZZZ_HIBERNATE_MODE=reboot;;
+    H) ZZZ_MODE=hibernate; ZZZ_HIBERNATE_MODE=suspend;;
     [h?]) fail "$USAGE";;
   esac
 done