This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/fish --private | |
# !!!Security note!!! | |
# This will give any process running as your user access to your password while | |
# key has not expired (2 minutes or revocation by service, whatever comes first) | |
# Proper solution would probably be writing PAM module and transfering key | |
# straight to KeePassXC's own keyring | |
set userid (/usr/bin/id -u "$PAM_USER") | |
if test "$PAM_TYPE" = 'auth' |