Attach to authentication splits now works

This commit is contained in:
gardouille 2023-05-17 10:54:37 +02:00
parent 365544d343
commit f51aae7bc2
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 4 additions and 2 deletions

View File

@ -27,7 +27,7 @@ TIME=1
if [ "${gpg_agent_info}" -eq 0 ]; then
## Start a terminal emulator
## Create new tmux splits to ask for gpg passphrase
"${TERM_EMULATOR}" --title "${TERM_TITLE}" -e bash -c 'tmux source-file "${HOME}"/.tmux/splitAUTHENTICATION && tmux attach-session' &
"${TERM_EMULATOR}" --title "${TERM_TITLE}" -e bash -c 'tmux source-file "${HOME}"/.tmux/splitAUTHENTICATION' &
# Minimum time to enter my passphrases
sleep 5
@ -63,8 +63,10 @@ if [ "${gpg_agent_info}" -eq 0 ]; then
fi
# If gpg-agent already have a key in cache {{{
else
elif [ "${gpg_agent_info}" -gt 0 ]; then
# Then, call real rofi-pass
"${HOME}"/repos/rofi-pass/rofi-pass
else # Not supposed to happen
exit 2
fi
# }}}