Files
opalfiles/.local/bin/pass_user_copy
2025-08-16 11:35:38 -07:00

12 lines
331 B
Bash
Executable File

#!/bin/sh
entry=$(gopass list --flat | ~/.config/rofi/launchers.d/rofi_launcher_username.sh)
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