12 lines
331 B
Bash
Executable File
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
|