From 2e40a0a23a82d14c802bb32db8def71b7c9df48b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asger=20Geel=20Weirs=C3=B8e?= Date: Wed, 6 May 2026 15:37:53 +0200 Subject: [PATCH] updates readme.md --- readme.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/readme.md b/readme.md index b248141..82a1a89 100644 --- a/readme.md +++ b/readme.md @@ -39,13 +39,13 @@ sudo install -Dm755 /tmp/ahfail-install/libahfail_pam.so /usr/lib/ahfail/libahfa sudo install -Dm755 /tmp/ahfail-install/ahfail-display /usr/lib/ahfail/ahfail-display ``` -Then follow the [Wayland](#linux--wayland-gtklock) or [X11](#linux--x11-i3lock-xscreensaver-etc) configuration below. +Then follow the [Wayland](#Usage-linux--wayland-only-gtklock) or [X11](#usage-linux--x11-i3lock-xscreensaver-etc) configuration below. --- -## Linux — Wayland (gtklock) +## Linux compile -### Install dependencies and build from source (Arch) +### Install dependencies and build from source ```bash sudo pacman -S meson ninja rust gtk3 gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gtklock @@ -58,13 +58,13 @@ Installs: - `/usr/lib/ahfail/libahfail_pam.so` — PAM module (for X11) - `/usr/lib/ahfail/ahfail-display` — standalone display binary -### Run +### Usage Linux - wayland (only gtklock) ```bash gtklock -m /usr/lib/gtklock/ahfail-module.so ``` -### Arguments +#### Arguments Pass module arguments after `--`: @@ -77,8 +77,8 @@ gtklock -m /usr/lib/gtklock/ahfail-module.so -- --deadzone=860,440,200,200 --- -## Linux — X11 (i3lock, xscreensaver, etc.) - +### Usage Linux - X11 (i3lock, xscreensaver, etc.) +First compile as Add the PAM module to your screen locker's PAM service file. Use the full path — `$(libdir)/ahfail` is not in PAM's default search path. **Arch / standard:**