diff options
author | Joe <rbo@gmx.us> | 2025-03-01 22:18:58 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2025-03-01 22:18:58 +0100 |
commit | f144bd1119206c025dc4cc534cb3016e83790e2c (patch) | |
tree | 5121126242148f974e862a9d51f799cda91b96a1 /.local/bin/dmotp | |
parent | waylanded (diff) | |
download | dotfiles-bsd-f144bd1119206c025dc4cc534cb3016e83790e2c.tar.gz dotfiles-bsd-f144bd1119206c025dc4cc534cb3016e83790e2c.tar.bz2 dotfiles-bsd-f144bd1119206c025dc4cc534cb3016e83790e2c.tar.xz dotfiles-bsd-f144bd1119206c025dc4cc534cb3016e83790e2c.tar.zst dotfiles-bsd-f144bd1119206c025dc4cc534cb3016e83790e2c.zip |
up
Diffstat (limited to '.local/bin/dmotp')
-rwxr-xr-x | .local/bin/dmotp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.local/bin/dmotp b/.local/bin/dmotp index 97f015f..243f48c 100755 --- a/.local/bin/dmotp +++ b/.local/bin/dmotp @@ -6,10 +6,10 @@ if echo "$1" | grep '^#' 2>&1; then fi if [ -n "$WAYLAND_DISPLAY" ]; then - dmenu=dmenu-wl - xdotool="ydotool type --file -" + dmenu="wmenu -i -l 15 -S $color" + xdotool="ydotool type --delay 15 --file -" elif [ -n "$DISPLAY" ]; then - dmenu=dmenu + dmenu="dmenu -i -l 15 -sb $color -shb $color" xdotool="xdotool type --delay 15 --clearmodifiers --file -" else echo "Error: No Wayland or X11 display detected" >&2 @@ -19,7 +19,7 @@ fi prefix=${PASSWORD_STORE_DIR-~/.local/share/pass}/otp rprefix=$(printf "%s" $prefix | sed 's/\//\\\//g') password_files=$(ls "$prefix"/*.gpg | sed 's/^'${rprefix}'\///g' | sed 's/\.gpg//g') -password=$(printf "%s\n" "${password_files}" | "$dmenu" -i -l 15 -sb "$color" -shb "$color") +password=$(printf "%s\n" "${password_files}" | $dmenu) [ -n "$password" ] || exit |