Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.
/ auto-inhibit Public archive

Symlink manager to automate use of systemd-inhibit

License

Notifications You must be signed in to change notification settings

jcrd/auto-inhibit

Repository files navigation

auto-inhibit test

auto-inhibit manages symbolic links to itself named after programs to be run with an inhibition lock via systemd-inhibit.

Usage

usage: auto-inhibit [options] [command]

options:
  -h        Show help message
  -d DIR    Operate on DIR

commands:
  list      List symlinks
  generate  Create symlinks
  check     Check symlinks
  remove    Remove symlinks
  status    List active inhibitors

Configuration

Options in the configuration file /etc/auto-inhibit.conf are passed directly as flags to systemd-inhibit.

Given example.conf:

[aria2c]
why=Download in progress

Running aria2c via the symlink will result in:

systemd-inhibit --why='Download in progress' aria2c

License

This project is licensed under the MIT License (see LICENSE).