diff options
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/dmpass | 12 |
1 files changed, 10 insertions, 2 deletions
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 |