notifications for dmenu_pass
This commit is contained in:
parent
5c2c99db25
commit
d0b9f13d8a
1 changed files with 7 additions and 0 deletions
|
@ -19,6 +19,13 @@ password=$(printf '%s\n' "${password_files[@]}" | dmenu -p pass "$@")
|
|||
|
||||
if [[ $typeit -eq 0 ]]; then
|
||||
pass show -c "$password" 2>/dev/null
|
||||
returns=$?
|
||||
if (( returns )); then
|
||||
msg="failed"
|
||||
else
|
||||
msg="copied"
|
||||
fi
|
||||
notify-send -a "pass" "$msg" "$password"
|
||||
else
|
||||
pass show "$password" | { read -r pass; printf %s "$pass"; } | xdotool type --clearmodifiers --file -
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue