diff --git a/files/.config/i3/bin/i3lock b/files/.config/i3/bin/i3lock index 5ac5b2f..7995440 100755 --- a/files/.config/i3/bin/i3lock +++ b/files/.config/i3/bin/i3lock @@ -3,4 +3,11 @@ WPDIR=~/Images/wallpapers/ WALLPAPER=$WPDIR/wallpaper_lock.png +if [ -x /usr/bin/gpg-connect-agent ] ; then + [ -f ~/.bash_sshagent ] && source ~/.bash_sshagent + echo "$SSH_AUTH_SOCK" | grep -q gpg && \ + echo "RELOADAGENT" | gpg-connect-agent > /dev/null + echo "FORGET MEH" | xclip -selection clipboard +fi + /usr/bin/i3lock -tefi "$WALLPAPER"