Files
alpfiles/.local/bin/pass_user_copy
2025-04-24 12:02:34 -07:00

12 lines
379 B
Bash
Executable File

#!/bin/sh
entry=$(gopass list --flat | bemenu -p Username: -l 25 -c -M 500 --fn 'Monospace 14' --tf '#ff4e00' --ff '#dbc077' --hf '#ff4e00')
if [ -n "$entry" ]; then
if gopass show -c "$entry" username 2>/dev/null; then
notify-send "Gopass" "Username copied from: $entry"
else
notify-send "Gopass Error" "Failed to copy username from: $entry"
fi
fi