xlock: Add option

This commit is contained in:
Geoffrey Frogeye 2024-03-09 18:22:30 +01:00
parent c7c2c89f15
commit 14f7199d65
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
6 changed files with 16 additions and 8 deletions

View file

@ -18,11 +18,7 @@ in
(pkgs.writeShellApplication {
name = "xlock";
text = ''
# Remove SSH and GPG keys from keystores
${pkgs.openssh}/bin/ssh-add -D
echo RELOADAGENT | ${pkgs.gnupg}/bin/gpg-connect-agent
${pkgs.coreutils}/bin/rm -rf "/tmp/cached_pass_$UID"
# TODO Should probably be an option and defined where relevant?
${config.frogeye.hooks.lock}
# TODO Maybe we could have a terminal lock? With vlock.
# TODO Does that work for all DMs?