Skip to content
/ zzz Public

A simple program to suspend or hibernate your computer 💤

License

Notifications You must be signed in to change notification settings

jirutka/zzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zzz…

Binaries Workflow Packaging status

A simple program to suspend or hibernate your computer. It supports hooks before and after suspending.

Refer to zzz(8) for usage information.

Requirements

Runtime:
  • Linux system with /sys/power/state and optionally /sys/power/disk

Build:
  • C compiler and linker supporting at least C99 (tested with clang and gcc)

  • GNU Make

  • Asciidoctor (for building man pages)

Installation

On Alpine Linux

Install package zzz on Alpine Linux v3.15 or later:

apk add zzz

On Arch Linux

Install package zzz from AUR:

yay -S zzz

Or use another AUR helper.

Using Pre-Built Binary

  1. 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.2.0/zzz-0.2.0-x86_64-unknown-linux.tar.gz
    curl -sSL https://github.com/jirutka/zzz/releases/download/v0.2.0/checksums.txt | sha256sum -c --ignore-missing
    tar -xzf zzz-0.2.0-*.tar.gz
  2. Install zzz somewhere on your PATH, e.g. /usr/local/bin:

    install -m 755 zzz-0.2.0-*/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.2.0/zzz-0.2.0.tar.gz
tar -xzf zzz-0.2.0.tar.gz
cd zzz-0.2.0

make build
make install DESTDIR=/ prefix=/usr/local

Credits

This program is inspired from zzz(8) (source) in Void Linux written by Leah Neukirchen.

License

This project is licensed under MIT License. For the full text of the license, see the LICENSE file.

About

A simple program to suspend or hibernate your computer 💤

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •