aboutsummaryrefslogtreecommitdiff
path: root/private_dot_local/bin/executable_gousermenu
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_gousermenu
parentff8f50638e4b17a9d7cc88d2f0d9560b7effce39 (diff)
Migrate from stow
Diffstat (limited to 'private_dot_local/bin/executable_gousermenu')
-rw-r--r--private_dot_local/bin/executable_gousermenu11
1 files changed, 11 insertions, 0 deletions
diff --git a/private_dot_local/bin/executable_gousermenu b/private_dot_local/bin/executable_gousermenu
new file mode 100644
index 0000000..34bbcf9
--- /dev/null
+++ b/private_dot_local/bin/executable_gousermenu
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+uname="$(gopass ls --flat | wmenu -l 10 -p 'Username: ' -f 'Liberation Mono 12px')"
+# [t]ype or copy
+if [ "$1" = "-t" ] ; then
+ wtype "${uname##*/}"
+else
+ wl-copy "${uname##*/}"
+ ( sleep 30 && wl-copy -c ) &
+fi
+#wl-copy "${uname##*/}"