fixing pass_user_copy

This commit is contained in:
2025-04-24 12:02:07 -07:00
parent 5b00715c4b
commit b8e6598a7f
2 changed files with 6 additions and 2 deletions

View File

@@ -21,3 +21,4 @@ x-scheme-handler/chrome=/usr/bin/qutebrowser
x-scheme-handler/about=/usr/bin/qutebrowser
x-scheme-handler/mailto=/usr/bin/qutebrowser
video/x-matroska=org.videolan.VLC.desktop
x-scheme-handler/discord-1352351827206733974=discord-1352351827206733974.desktop

View File

@@ -3,6 +3,9 @@
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
gopass show -c "$entry" username 2>/dev/null || notify-send "Gopass Error" "Failed to copy username from: $entry"
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