Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4067579a2f
|
||
|
|
e6c1bc0244
|
@@ -3,7 +3,7 @@
|
|||||||
# 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.1
|
||||||
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')
|
||||||
@@ -16,11 +16,19 @@ depends=('libx11'
|
|||||||
optdepends=('xautolock: xautolock backend'
|
optdepends=('xautolock: xautolock backend'
|
||||||
'xss-lock: xss-lock backend')
|
'xss-lock: xss-lock backend')
|
||||||
makedepends=('git')
|
makedepends=('git')
|
||||||
|
checkdepends=('dbus'
|
||||||
|
'python-pytest')
|
||||||
conflicts=('xautolock-inhibit')
|
conflicts=('xautolock-inhibit')
|
||||||
replaces=('xautolock-inhibit')
|
replaces=('xautolock-inhibit')
|
||||||
source=("git+$url?signed#tag=$pkgver")
|
source=("git+$url?signed#tag=$pkgver")
|
||||||
validpgpkeys=('7E12BC1FF3B6EDB2CD8053EB981A2B2A3BBF5514')
|
validpgpkeys=('7E12BC1FF3B6EDB2CD8053EB981A2B2A3BBF5514')
|
||||||
sha256sums=('fcc12e899f80b596d854049704b1b2c0293bf73b61f837b26660622044a7b877')
|
sha256sums=('3ef1d0547e272047d89240eb89a3a42478d08963bf08ac44536c65807f3b248a')
|
||||||
|
|
||||||
|
check()
|
||||||
|
{
|
||||||
|
cd "$srcdir"/"$pkgname"
|
||||||
|
pytest -p no:cacheprovider
|
||||||
|
}
|
||||||
|
|
||||||
package()
|
package()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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`):
|
||||||
|
|||||||
Reference in New Issue
Block a user