Commit: 32a882a915f566588deaa5b599aa1e0f9bf7a449
Parent: b6b6a2607a152eec8f75a342c4cb452b766b08b7
Author: Randy Palamar
Date: Wed, 2 Nov 2022 20:00:09 -0600
use xdotool in passmenu instead of xclip
this way the password never touches the clipboard and some terrible
programs that mess with the clipboard will still work
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/.config/sys/var/lib/portage/world b/.config/sys/var/lib/portage/world
@@ -86,6 +86,7 @@ x11-misc/slock
x11-misc/slop
x11-misc/tabbed
x11-misc/xbanish
+x11-misc/xdotool
x11-misc/xidle
x11-terms/st
x11-themes/gtk-engines-murrine
diff --git a/bin/passmenu b/bin/passmenu
@@ -7,4 +7,4 @@
password=$(spm search . | cut -d '/' -f 5- | dmenu -i -p "Password:") || exit 0
password=${password%.*}
-spm show "$password" | head -1 | xclip -r -sel clip -l 1 > /dev/null 2>&1
+xdotool type --delay 0 $(spm show "$password" | head -1)