aboutsummaryrefslogtreecommitdiff
path: root/private_dot_local
diff options
context:
space:
mode:
authortwells46 <173561638+twells46@users.noreply.github.com>2025-12-31 17:35:47 -0600
committertwells46 <173561638+twells46@users.noreply.github.com>2025-12-31 17:35:47 -0600
commite0db34ff74766f0f306b55782a2163f7f387e747 (patch)
tree8c1b4c8aa82bccebb9371e3f5ef620a1a2e107a8 /private_dot_local
parent24800b2bb604cf1b7d5ec16ffc2641b41c37465d (diff)
Update gopass commands
Diffstat (limited to 'private_dot_local')
-rw-r--r--private_dot_local/bin/executable_gopassmenu2
-rw-r--r--private_dot_local/bin/executable_gousermenu6
2 files changed, 4 insertions, 4 deletions
diff --git a/private_dot_local/bin/executable_gopassmenu b/private_dot_local/bin/executable_gopassmenu
index 1fa4f5f..f557307 100644
--- a/private_dot_local/bin/executable_gopassmenu
+++ b/private_dot_local/bin/executable_gopassmenu
@@ -1,6 +1,6 @@
#!/bin/sh
-PW="$(gopass ls --flat | wmenu -l 10 -p 'Password: ' -f 'Liberation Mono 12px' | xargs -r gopass show -o)"
+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}"
diff --git a/private_dot_local/bin/executable_gousermenu b/private_dot_local/bin/executable_gousermenu
index 34bbcf9..cffac84 100644
--- a/private_dot_local/bin/executable_gousermenu
+++ b/private_dot_local/bin/executable_gousermenu
@@ -1,11 +1,11 @@
#!/bin/sh
-uname="$(gopass ls --flat | wmenu -l 10 -p 'Username: ' -f 'Liberation Mono 12px')"
+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##*/}"
+ wtype "${uname}"
else
- wl-copy "${uname##*/}"
+ wl-copy "${uname}"
( sleep 30 && wl-copy -c ) &
fi
#wl-copy "${uname##*/}"