Enable ssh-agent

This commit is contained in:
coolneng 2019-11-16 22:20:20 +01:00
parent f61ff65c52
commit c1b22ab72d
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
3 changed files with 8 additions and 2 deletions

View File

@ -35,6 +35,9 @@ urxvtd -q -f -o &
## GPG
(sleep 3; bash -c "secret-tool lookup 'gpg' 'login' | gpg2 --no-tty --pinentry-mode loopback --passphrase-fd 0 -d ~/.password-store/mail/uni.gpg") &
## SSH agent
(sleep 5; ssh-agent fish) &
## Spacemacs daemon
(sleep 6; cd ~/.emacs.d; git pull --rebase; emacs --batch -l ~/.emacs.d/init.el --eval="(configuration-layer/update-packages t)"; emacs --daemon=instance1) &

View File

@ -1,3 +1,4 @@
## GNOME Keyring
dbus-update-activation-environment
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets)
export GPG_TTY=$(tty)
gpg-connect-agent updatestartuptty /bye >/dev/null

2
openbox/.pam_environment Normal file
View File

@ -0,0 +1,2 @@
SSH_AGENT_PID DEFAULT=
SSH_AUTH_SOCK DEFAULT="${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh"