Initial version of xautolock-inhibit

Own org.freedesktop.ScreenSaver on the session bus and translate
Inhibit/UnInhibit into xautolock -disable/-enable. Cookies are tracked
per sender and released when the sender leaves the bus. Inhibits with
an ignored reason ("Playing audio" by default) are logged but don't
block locking. xautolock is re-enabled on exit.

Add systemd user unit, PKGBUILD and LICENSE.
This commit is contained in:
Daniele Fucini
2026-10-09 19:49:08 +02:00
commit 90b8838835
5 changed files with 965 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
# PKGBUILD
# Maintainer: Daniele Fucini <dfucini [at] gmail [dot] com>
pkgname=xautolock-inhibit
pkgver=0.1
pkgrel=1
pkgdesc='Honor org.freedesktop.ScreenSaver inhibit requests by disabling xautolock'
arch=('any')
url="https://git.shouldnt.work/fuxino/${pkgname}"
license=('GPL-3.0-or-later')
depends=('python'
'python-gobject'
'xautolock')
makedepends=('git')
source=(git+${url}?signed#tag=${pkgver})
validpgpkeys=('7E12BC1FF3B6EDB2CD8053EB981A2B2A3BBF5514')
sha256sums=('SKIP')
package()
{
cd "${srcdir}/${pkgname}"
install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 "${pkgname}.service" "${pkgdir}/usr/lib/systemd/user/${pkgname}.service"
}