2024-10-09 02:19:27 +00:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
SHROOT="${0%/*}"
|
|
|
|
if [ "$SHROOT" = "$0" ]; then
|
|
|
|
SHROOT="$PWD"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Search for entry
|
|
|
|
export prpw_menu_entries_action=1
|
|
|
|
|
|
|
|
# Manage fields
|
|
|
|
export prpw_menu_manage_entry=2
|
|
|
|
|
|
|
|
# Print field content and exit
|
|
|
|
export prpw_menu_field_action=1
|
|
|
|
|
2024-10-09 11:12:40 +00:00
|
|
|
PW="$("$SHROOT"/prpw-tui "$1")"
|
|
|
|
echo -n "$PW" | xclip -selection clipboard
|
|
|
|
echo -n "$PW" | xclip -selection primary
|
|
|
|
#echo -n "$PW" | xclip -selection secondary
|