aboutsummaryrefslogtreecommitdiff
path: root/private_dot_local/bin/executable_gopassmenu
diff options
context:
space:
mode:
authortwells46 <173561638+twells46@users.noreply.github.com>2025-12-31 13:28:05 -0600
committertwells46 <173561638+twells46@users.noreply.github.com>2025-12-31 13:28:05 -0600
commit2140ab51deed88e90eafebf9520fa5f9995dc7c9 (patch)
tree03cf1dcd2900495c1efb79aaa85f3254ecd5fb87 /private_dot_local/bin/executable_gopassmenu
parentff8f50638e4b17a9d7cc88d2f0d9560b7effce39 (diff)
Migrate from stow
Diffstat (limited to 'private_dot_local/bin/executable_gopassmenu')
-rw-r--r--private_dot_local/bin/executable_gopassmenu15
1 files changed, 15 insertions, 0 deletions
diff --git a/private_dot_local/bin/executable_gopassmenu b/private_dot_local/bin/executable_gopassmenu
new file mode 100644
index 0000000..1fa4f5f
--- /dev/null
+++ b/private_dot_local/bin/executable_gopassmenu
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+PW="$(gopass ls --flat | wmenu -l 10 -p 'Password: ' -f 'Liberation Mono 12px' | xargs -r gopass show -o)"
+# [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 -