Skip to content
This repository was 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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

86c874b · Apr 5, 2021

History

44 Commits
Apr 5, 2021
Apr 5, 2021
Nov 18, 2019
Jun 7, 2019
Apr 5, 2021
Nov 22, 2018
Dec 13, 2020
Mar 29, 2021
Sep 28, 2020
Nov 22, 2018
Dec 13, 2020

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).