aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwells46 <tom@wellsth.com>2026-01-01 07:53:12 -0600
committertwells46 <tom@wellsth.com>2026-01-01 07:53:12 -0600
commit2ad4aeb82d5d33ac1f8068d153b58d410877e80d (patch)
tree61591ea6683024e416f504eb24f700b9c1c6e57c
parent9612b0c012cdb4a4cf71aaa660016fec81270c63 (diff)
Correct X11 passmenu
-rw-r--r--private_dot_local/bin/executable_gopassmenu.tmpl9
-rw-r--r--private_dot_local/bin/executable_gousermenu.tmpl9
2 files changed, 8 insertions, 10 deletions
diff --git a/private_dot_local/bin/executable_gopassmenu.tmpl b/private_dot_local/bin/executable_gopassmenu.tmpl
index 134f1ed..a350763 100644
--- a/private_dot_local/bin/executable_gopassmenu.tmpl
+++ b/private_dot_local/bin/executable_gopassmenu.tmpl
@@ -2,16 +2,15 @@
{{- if eq .chezmoi.hostname "Aragorn" }}
# Home laptop
-PW="$(gopass ls --flat | dmenu -l 10 -p 'Password: ' | xargs -r gopass show | head -n1)"
+PW="$(gopass ls --flat | dmenu -l 15 -p 'Password: ' | xargs -r gopass show | head -n1)"
# [t]ype or copy
if [ "$1" = "-t" ] ; then
- xdotool type --clearmodifiers "${PW}"
+ xdotool type --delay 1 --clearmodifiers "${PW}"
else
- wl-copy -o "${PW}"
- ( sleep 30 && wl-copy -c ) &
+ printf "${PW}" | xsel -ib -t 30000
fi
{{- else }}
-PW="$(gopass ls --flat | wmenu -l 10 -p 'Password: ' -f 'Liberation Mono 12px' | xargs -r gopass show | head -n1)"
+PW="$(gopass ls --flat | wmenu -l 15 -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.tmpl b/private_dot_local/bin/executable_gousermenu.tmpl
index 83109a8..7fe9e48 100644
--- a/private_dot_local/bin/executable_gousermenu.tmpl
+++ b/private_dot_local/bin/executable_gousermenu.tmpl
@@ -2,16 +2,15 @@
{{- if eq .chezmoi.hostname "Aragorn" }}
# Home laptop
-uname="$(gopass ls --flat | dmenu -l 10 -p 'Username: ' | xargs -r gopass show | sed -n '2p')"
+uname="$(gopass ls --flat | dmenu -l 15 -p 'Username: ' | xargs -r gopass show | sed -n '2p')"
# [t]ype or copy
if [ "$1" = "-t" ] ; then
- xdotool type --clearmodifiers "${uname}"
+ xdotool type --delay 1 --clearmodifiers "${uname}"
else
- wl-copy -o "${uname}"
- ( sleep 30 && wl-copy -c ) &
+ printf "${uname}" | xsel -ib -t 30000
fi
{{- else }}
-uname="$(gopass ls --flat | wmenu -l 10 -p 'Username: ' -f 'Liberation Mono 12px' | xargs -r gopass show | sed -n '2p')"
+uname="$(gopass ls --flat | wmenu -l 15 -p 'Username: ' -f 'Liberation Mono 12px' | xargs -r gopass show | sed -n '2p')"
# [t]ype or copy
if [ "$1" = "-t" ] ; then
wtype "${uname}"