From b8e6598a7f37bd694f118eba2c512adf534a11f5 Mon Sep 17 00:00:00 2001 From: Opal Date: Thu, 24 Apr 2025 12:02:07 -0700 Subject: [PATCH] fixing pass_user_copy --- .config/mimeapps.list | 1 + .local/bin/pass_user_copy | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.config/mimeapps.list b/.config/mimeapps.list index 2ca761c..57cf9dc 100644 --- a/.config/mimeapps.list +++ b/.config/mimeapps.list @@ -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 diff --git a/.local/bin/pass_user_copy b/.local/bin/pass_user_copy index c5784e5..0a23be5 100755 --- a/.local/bin/pass_user_copy +++ b/.local/bin/pass_user_copy @@ -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 -