Update 2023-11-23 13:23 OpenBSD/amd64-x13
This commit is contained in:
@@ -18,12 +18,12 @@ password_out=$(pass "$password" 2> /dev/null)
|
||||
printf "%s" "$password_out" | head -1 | xclip -r
|
||||
|
||||
# extract additional information
|
||||
password_info=$(printf "%s" "$password_out" | grep -Ei 'login|user')
|
||||
url_info=$(printf "%s" "$password_out" | grep -Ei '^url' | awk -F"[ :]*" '{ $1=""; print $0 }' )
|
||||
password_info=$(printf "%s" "$password_out" | grep -Ei -m 1 'login|user|email')
|
||||
#url_info=$(printf "%s" "$password_out" | grep -Ei '^url' | awk -F"[ :]*" '{ $1=""; print $0 }' )
|
||||
|
||||
# show desktop notification
|
||||
if [[ -n $password_info ]]; then
|
||||
notify-send "$(printf '%s' "$password_info")"
|
||||
$NOTIFY_CMD "$(printf '%s' "$password_info")"
|
||||
else
|
||||
notify-send "No username provided."
|
||||
$NOTIFY_CMD "No username provided."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user