1
0
Fork
You've already forked caffeinated
0
No description
  • C 70.7%
  • Makefile 21.3%
  • Roff 8%
Find a file
2025年04月02日 19:54:10 +02:00
.editorconfig Initial commit 2019年11月24日 23:49:19 -05:00
.gitignore Add Wayland idle inhibit support 2020年02月07日 21:06:44 -05:00
caffeinated.1 Add Wayland idle inhibit support 2020年02月07日 21:06:44 -05:00
LICENSE Add Wayland idle inhibit support 2020年02月07日 21:06:44 -05:00
main.c Allow ACQUIREATSTARTUP 2025年04月02日 19:54:10 +02:00
Makefile Auto detect SDBUS if none is set 2021年06月18日 03:02:15 -03:00
README.md Add Wayland idle inhibit support 2020年02月07日 21:06:44 -05:00
version.h Specify signed/unsigned types for better cross-architecture support 2020年07月18日 21:39:52 -04:00

caffeinated

Caffeinated is a small utility which prevents the system from entering an idle state by using systemd logind and Wayland idle inhibitors. It can be run either in the foreground or as a daemon.

Requirements

Caffeinated requires the following software to build:

  • C compiler
  • GNU make
  • libsystemd or libelogind
  • libbsd

Additionally, Wayland idle inhibit support requires:

  • wayland-client
  • wayland-protocols

Installation

Run the following command to build and install caffeinated (as root if necessary):

$ make clean install

Add SDBUS=elogind to use libelogind instead of libsystemd:

$ make SDBUS=elogind clean install

Wayland idle inhibit support can be enabled with WAYLAND=1:

$ make WAYLAND=1 clean install

Usage

See man caffeinated for details.

Authors

caffeinated is written by Corey Hinshaw.

Copyright 2019-2020 Corey Hinshaw

Licensed under the terms of the MIT license. See the license file for details.