3 Commits
Author SHA1 Message Date
Daniele Fucini 75ff083932 Update PKGBUILD
Bump to 0.4.2, add the glib2 dependency and drop the conflicts/replaces on xautolock-inhibit.
2026-11-11 20:27:25 +01:00
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 20 additions and 19 deletions
+12 -5
View File
@@ -3,24 +3,31 @@
# Maintainer: Daniele Fucini <dfucini [at] gmail [dot] com> # Maintainer: Daniele Fucini <dfucini [at] gmail [dot] com>
pkgname=xidle-inhibit pkgname=xidle-inhibit
pkgver=0.4 pkgver=0.4.2
pkgrel=1 pkgrel=1
pkgdesc='Honor org.freedesktop.ScreenSaver inhibit requests by blocking xautolock or xss-lock' pkgdesc='Honor org.freedesktop.ScreenSaver inhibit requests by blocking xautolock or xss-lock'
arch=('any') arch=('any')
url="https://git.shouldnt.work/fuxino/$pkgname" url="https://git.shouldnt.work/fuxino/$pkgname"
license=('GPL-3.0-or-later') license=('GPL-3.0-or-later')
depends=('libx11' depends=('glib2'
'libx11'
'libxss' 'libxss'
'python' 'python'
'python-gobject') 'python-gobject')
optdepends=('xautolock: xautolock backend' optdepends=('xautolock: xautolock backend'
'xss-lock: xss-lock backend') 'xss-lock: xss-lock backend')
makedepends=('git') makedepends=('git')
conflicts=('xautolock-inhibit') checkdepends=('dbus'
replaces=('xautolock-inhibit') 'python-pytest')
source=("git+$url?signed#tag=$pkgver") source=("git+$url?signed#tag=$pkgver")
validpgpkeys=('7E12BC1FF3B6EDB2CD8053EB981A2B2A3BBF5514') validpgpkeys=('7E12BC1FF3B6EDB2CD8053EB981A2B2A3BBF5514')
sha256sums=('fcc12e899f80b596d854049704b1b2c0293bf73b61f837b26660622044a7b877') sha256sums=('e768123eee2cc9620c999d92c805794f8d45cb0f7ca3fdcfcf126ff83a13eaf6')
check()
{
cd "$srcdir"/"$pkgname"
pytest -p no:cacheprovider
}
package() package()
{ {
+8 -14
View File
@@ -32,13 +32,18 @@ Formerly `xautolock-inhibit`, which supported only xautolock.
## Installation ## 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: 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. 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 ## Configuration
The backend is set in `~/.config/xidle-inhibit/config` (`$XDG_CONFIG_HOME`): The backend is set in `~/.config/xidle-inhibit/config` (`$XDG_CONFIG_HOME`):