2022-06-08 20:53:00 +00:00
|
|
|
{ writeShellScriptBin
|
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
, gopass
|
|
|
|
, zenity
|
|
|
|
}:
|
|
|
|
|
|
|
|
writeShellScriptBin "gopass-await" ''
|
2023-03-30 05:09:19 +00:00
|
|
|
${gopass}/bin/gopass show "$@" 2> >( \
|
2022-06-08 20:53:00 +00:00
|
|
|
${zenity}/bin/zenity --progress --auto-close --no-cancel --pulsate \
|
|
|
|
--title 'Please tap the hardware key' \
|
|
|
|
--text "gopass show $*" \
|
2023-03-30 05:09:19 +00:00
|
|
|
>&2 \
|
2022-06-08 20:53:00 +00:00
|
|
|
)
|
|
|
|
''
|