commit 27d3b6913befb95803c4602b6f1ab238888f0cd3
parent 1faf0c68f1eddbcf8dc70364fa573d91c6745040
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Sat, 23 Dec 2023 14:56:27 +0100
Merge branch 'master' of a3nm.net:git/mybin
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/xpass b/xpass
@@ -70,18 +70,18 @@ fi
WINDOW=$(xdotool getactivewindow)
function dologin() {
- echo "type --window $WINDOW $USERDAT" | xdotool -
+ echo "type --window $WINDOW '$USERDAT'" | xdotool -
}
function dofill() {
- echo "type --window $WINDOW $USERDAT" | xdotool -
+ echo "type --window $WINDOW '$USERDAT'" | xdotool -
sleep 0.1
echo "key --window $WINDOW Tab" | xdotool -
sleep 0.1
# delete any password which may already be autocompleted
seq 20 | sed 's/.*/key --window '"$WINDOW"' BackSpace/g' | xdotool -
sleep 0.1
- echo "type --window $WINDOW $PASSWORD" | xdotool -
+ echo "type --window $WINDOW '$PASSWORD'" | xdotool -
}
case $USER in