yubilock

Lock X when YubiKey is detached (OpenBSD)
git clone _git@git.zakaria.org/yubilock.git
Log | Files | Refs | README | LICENSE

commit 0e969d2e34cdad00212e4d034786d4ba4302d73e
parent 95b7cb2b940b332b90232c90d12f12305297e1b5
Author: zakaria <e-zk@users.noreply.github.com>
Date:   Mon, 10 Jan 2022 23:21:03 +1000

Add custom lock_cmd

Diffstat:
Mdetach | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/detach b/detach @@ -17,6 +17,8 @@ # user to run xlock command as ((change this)) xuser=zzz +# lock command to run +lock_cmd='xlock +description -info "KEY DETACHED"' # primary X11 display DISPLAY=:0 @@ -39,7 +41,7 @@ if [ "$event" = "detach" ]; then # actually lock display now export DISPLAY - doas -u $xuser xlock +description -info "KEY DETACHED" & + doas -u $xuser "$lock_cmd" & ;; esac fi