From 8e5883f4d3cb63e295c2f6df9c776971b116531c Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Mon, 12 Feb 2024 19:08:47 +0100 Subject: [PATCH] Start gpg-agent and use pinentry-rofi --- shell/gpg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shell/gpg b/shell/gpg index 3e20921..feec9b5 100755 --- a/shell/gpg +++ b/shell/gpg @@ -2,4 +2,9 @@ #export GPG_TTY #gpg-connect-agent updatestartuptty /bye >/dev/null +if ps -u lloeki | grep -v grep | grep -q gpg-agent; then + : +elif type pinentry-rofi /dev/null 2>&1; then + gpg-agent --homedir /home/lloeki/.gnupg --use-standard-socket --daemon --pinentry-program=/etc/profiles/per-user/lloeki/bin/pinentry-rofi +fi # vim: ft=bash