aboutsummaryrefslogtreecommitdiff
path: root/private_dot_local/bin/executable_gousermenu
blob: cffac84471475b081e9fed4d3b36d4b3e9c1eb67 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

uname="$(gopass ls --flat | wmenu -l 10 -p 'Username: ' -f 'Liberation Mono 12px' | xargs -r gopass show | sed -n '2p')"
# [t]ype or copy
if [ "$1" = "-t" ] ; then
	wtype "${uname}"
else
	wl-copy "${uname}"
	( sleep 30 && wl-copy -c ) &
fi
#wl-copy "${uname##*/}"