acpid event handler for non-root users
Project description
acpic - an acpid client
This little daemon extends acpid
event handling capabilities. Normally, event handlers are placed by root in
/etc/acpi/events/
. With acpic, you can place additional handlers in a per-user
~/.config/acpi/events/
directory.
I personally use it to control PulseAudio with hardware volume buttons on my laptop (see examples).
Installation
The easiest way is to install acpic
with pip
:
$ pip install acpic
Then, place your handlers in ~/.config/acpi/events/
and make acpic
somehow
start when you log in, for example by creating an XDG-compliant entry in
~/.config/autostart/acpic.desktop
:
[Desktop Entry]
Name=acpic
Comment=acpid event handler
TryExec=acpic
Exec=acpic
Type=Application
License
Copyright © 2018-2022 Piotr Śliwka
This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the COPYING file for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file acpic-1.0.0.tar.gz
.
File metadata
- Download URL: acpic-1.0.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd0f55c4235b3a6a87218dded70ab5c0d265e72c1f536b66eb6803837bcabdc8 |
|
MD5 | 1c905d14a6ac66367024681a04f41a00 |
|
BLAKE2b-256 | ab95fb84874948086308fb5d3e84dc551ab66e76723bb24612f8b06196f76662 |