From eeb0baed6bfabe9d77d2fbe3c7dcd0e672ec7fab Mon Sep 17 00:00:00 2001 From: Joe Date: Sun, 2 Mar 2025 16:57:39 +0100 Subject: fix --- .local/bin/dmpass | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to '.local/bin') diff --git a/.local/bin/dmpass b/.local/bin/dmpass index affe65b..475b96e 100755 --- a/.local/bin/dmpass +++ b/.local/bin/dmpass @@ -35,9 +35,17 @@ p="$(pass show "$password")" if [ $full -eq 1 ]; then id=$(printf "%s" "$password" | sed 's/.*___//') printf "%s\n" $id | { IFS= read -r pass; printf %s "$id"; } | $xdotool - xdotool key Tab + if [ -n "$WAYLAND_DISPLAY" ]; then + ydotool key 15:1 15:0 + else + xdotool key Tab + fi printf "%s\n" "$p" | { IFS= read -r pass; printf %s "$pass"; } | $xdotool - xdotool key Return + if [ -n "$WAYLAND_DISPLAY" ]; then + ydotool key 28:1 28:0 + else + xdotool key Return + fi exit fi -- cgit v1.2.3