aboutsummaryrefslogtreecommitdiff
path: root/private_dot_local/bin/executable_gopassmenu
blob: f5573070955a1cca7b2952f601322e1209272769 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

PW="$(gopass ls --flat | wmenu -l 10 -p 'Password: ' -f 'Liberation Mono 12px' | xargs -r gopass show | head -n1)"
# [t]ype or copy
if [ "$1" = "-t" ] ; then
	wtype "${PW}"
else
	wl-copy -o "${PW}"
	( sleep 30 && wl-copy -c ) &
fi

#gopass ls --flat | wofi -dab -k /dev/null -p "Password: " | xargs -r gopass show -o | wl-copy

# X11
#gopass ls --flat | dmenu -p 'Password' | xargs -r gopass show -o | xdotool type --clearmodifiers --file -