diff options
author | Joe <rbo@gmx.us> | 2025-03-02 16:57:39 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2025-03-02 16:57:39 +0100 |
commit | eeb0baed6bfabe9d77d2fbe3c7dcd0e672ec7fab (patch) | |
tree | 62c4aa845c4a4a1db4a0448d84978c5cd9ea45be /.local/bin/dmpass | |
parent | up (diff) | |
download | dotfiles-bsd-eeb0baed6bfabe9d77d2fbe3c7dcd0e672ec7fab.tar.gz dotfiles-bsd-eeb0baed6bfabe9d77d2fbe3c7dcd0e672ec7fab.tar.bz2 dotfiles-bsd-eeb0baed6bfabe9d77d2fbe3c7dcd0e672ec7fab.tar.xz dotfiles-bsd-eeb0baed6bfabe9d77d2fbe3c7dcd0e672ec7fab.tar.zst dotfiles-bsd-eeb0baed6bfabe9d77d2fbe3c7dcd0e672ec7fab.zip |
fix
Diffstat (limited to '.local/bin/dmpass')
-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 |