2 Commits
Author SHA1 Message Date
Daniele Fucini 4067579a2f Point README installation to the AUR
Drop the xautolock-inhibit upgrade section, which only applied to the local package.
2026-11-11 20:26:04 +01:00
Daniele Fucini e6c1bc0244 Update PKGBUILD
Bump to 0.4.1 and run the test suite in check().
2026-11-09 21:06:47 +01:00
2 changed files with 18 additions and 16 deletions
+10 -2
View File
@@ -3,7 +3,7 @@
# Maintainer: Daniele Fucini <dfucini [at] gmail [dot] com>
pkgname=xidle-inhibit
pkgver=0.4
pkgver=0.4.1
pkgrel=1
pkgdesc='Honor org.freedesktop.ScreenSaver inhibit requests by blocking xautolock or xss-lock'
arch=('any')
@@ -16,11 +16,19 @@ depends=('libx11'
optdepends=('xautolock: xautolock backend'
'xss-lock: xss-lock backend')
makedepends=('git')
checkdepends=('dbus'
'python-pytest')
conflicts=('xautolock-inhibit')
replaces=('xautolock-inhibit')
source=("git+$url?signed#tag=$pkgver")
validpgpkeys=('7E12BC1FF3B6EDB2CD8053EB981A2B2A3BBF5514')
sha256sums=('fcc12e899f80b596d854049704b1b2c0293bf73b61f837b26660622044a7b877')
sha256sums=('3ef1d0547e272047d89240eb89a3a42478d08963bf08ac44536c65807f3b248a')
check()
{
cd "$srcdir"/"$pkgname"
pytest -p no:cacheprovider
}
package()
{
+8 -14
View File
@@ -32,13 +32,18 @@ Formerly `xautolock-inhibit`, which supported only xautolock.
## Installation
Build and install the package with the included PKGBUILD, which builds the signed release tag set in `pkgver`:
Install [`xidle-inhibit`](https://aur.archlinux.org/packages/xidle-inhibit) from the AUR, for example with aurutils:
```
makepkg -si
aur sync xidle-inhibit
pacman -S xidle-inhibit
```
Or, with aurutils, build it into a local repository with `aur build` and install it with pacman.
The PKGBUILD builds the signed release tag, so import the signing key first:
```
gpg --recv-keys 7E12BC1FF3B6EDB2CD8053EB981A2B2A3BBF5514
```
Then start it from your window manager's startup, after the locker. For xmonad with xautolock:
@@ -59,17 +64,6 @@ Without dimming, use `xset s 600 0` and `xss-lock -- slock`. Start xss-lock from
The unit has no `[Install]` section on purpose. Enabling it at login would also start it in a desktop environment, or before X is up; starting it from the window manager limits it to that session. The user service manager needs `DISPLAY` (and `XAUTHORITY`) in its environment, which `/etc/X11/xinit/xinitrc.d/50-systemd-user.sh` sets up for `startx` sessions.
### Upgrading from xautolock-inhibit
The package replaces `xautolock-inhibit`. After upgrading, change the `systemctl --user start` line in your window manager's startup, then switch the running daemon:
```
systemctl --user stop xautolock-inhibit
systemctl --user start xidle-inhibit
```
Requests held by the old daemon are taken over if the new one starts within `--restore-window`.
## Configuration
The backend is set in `~/.config/xidle-inhibit/config` (`$XDG_CONFIG_HOME`):