#!/bin/sh

entry=$(gopass list --flat | ~/.config/rofi/launchers.d/rofi_launcher_pass.sh)

if [ -n "$entry" ]; then
    gopass show -c "$entry" 2>/dev/null || notify-send "Gopass Error" "Failed to copy: $entry"
fi
