aports/main/acpid/suspend
2024-08-14 21:47:58 +00:00

9 lines
163 B
Bash

#!/bin/sh
if command -v zzz >/dev/null; then
zzz "$@"
elif loginctl suspend --dry-run 2>/dev/null; then
loginctl suspend
else
echo 'mem' > /sys/power/state
fi