Zzz…
A simple program to suspend or hibernate your computer. It supports hooks before and after suspending.
Refer to zzz(8) for usage information.
Requirements
-
Linux system with
/sys/power/state
and optionally/sys/power/disk
-
C compiler and linker supporting at least C99 (tested with clang and gcc)
-
Asciidoctor (for building man pages)
Installation
Using Pre-Built Binary
-
Download and extract release tarball for your CPU architecture (pick the right link from the list above):
curl -sSLO https://github.com/jirutka/zzz/releases/download/v0.1.1/zzz-0.1.1-x86_64-unknown-linux.tar.gz curl -sSL https://github.com/jirutka/zzz/releases/download/v0.1.1/checksums.txt | sha256sum -c --ignore-missing tar -xzf zzz-0.1.1-*.tar.gz
-
Install
zzz
somewhere on yourPATH
, e.g./usr/local/bin
:install -m 755 zzz-0.1.1-*/zzz /usr/local/bin/
All binaries are statically linked with musl libc, so they work on every Linux system (distro) regardless of used libc.
From Source Tarball
wget https://github.com/jirutka/zzz/archive/v0.1.1/zzz-0.1.1.tar.gz
tar -xzf zzz-0.1.1.tar.gz
cd zzz-0.1.1
make build
make install DESTDIR=/ prefix=/usr/local
License
This project is licensed under MIT License. For the full text of the license, see the LICENSE file.