Browse Source

added gpg-agent passphrase cache

Fabian Peter Hammerle 4 years ago
parent
commit
7b15b64aba
1 changed files with 5 additions and 0 deletions
  1. 5 0
      config

+ 5 - 0
config

@@ -2,6 +2,11 @@ command=/usr/share/i3blocks/$BLOCK_NAME
 separator_block_width=32
 markup=none
 
+[key]
+full_text=key
+command=gpg-connect-agent 'GET_PASSPHRASE --no-ask KEYGRIP error prompt desc' /bye | grep --quiet OK || exit 33
+interval=60
+
 [mail]
 label=✉️
 command=python3 -c "import glob, os, sys; num=len(glob.glob(os.path.expanduser('~/.mail/*/inbox/new/*'))); print(num); sys.exit(33 if num else 0)"