summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmpass
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2025-03-02 16:57:39 +0100
committerJoe <rbo@gmx.us>2025-03-02 16:57:39 +0100
commiteeb0baed6bfabe9d77d2fbe3c7dcd0e672ec7fab (patch)
tree62c4aa845c4a4a1db4a0448d84978c5cd9ea45be /.local/bin/dmpass
parentup (diff)
downloaddotfiles-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 '')
-rwxr-xr-x.local/bin/dmpass12
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