nix-config/modules/profiles/dwm/xinitrc
Oliver Davies 14583971ed Configure pam-gnupg
Automatically unlock my GPG key on login to make it easier to work with
pass, neomutt, etc.

See https://github.com/cruegge/pam-gnupg.
2025-04-22 00:37:38 +01:00

10 lines
239 B
Text

systemctl --user import-environment DISPLAY
poweralertd -s &
setbg &
systemctl --user start dwm-status &
export GPG_TTY=$(tty)
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpg-connect-agent updatestartuptty /bye
exec dwm