diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2021-10-26 08:10:33 -0400 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2021-10-26 08:10:33 -0400 |
| commit | ac66f0df2bec39e0a075fdcc72c5c5636a6fb319 (patch) | |
| tree | 0427b23208241d85e22d71cf5d98f8db07736814 /bin/passmenu | |
| parent | cc99124e7a063934a0b9a1441ae41277fa30c4b6 (diff) | |
| download | dotfiles-ac66f0df2bec39e0a075fdcc72c5c5636a6fb319.tar.gz dotfiles-ac66f0df2bec39e0a075fdcc72c5c5636a6fb319.tar.xz | |
Add ddmenu, and updated snipmenu
Diffstat (limited to 'bin/passmenu')
| -rwxr-xr-x | bin/passmenu | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/bin/passmenu b/bin/passmenu deleted file mode 100755 index 4f4ef1d..0000000 --- a/bin/passmenu +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -shopt -s nullglob globstar - -typeit=0 -if [[ $1 == "--type" ]]; then - typeit=1 - shift -fi - -prefix=${PASSWORD_STORE_DIR-~/.password-store} -password_files=( "$prefix"/**/*.gpg ) -password_files=( "${password_files[@]#"$prefix"/}" ) -password_files=( "${password_files[@]%.gpg}" ) - -password=$(printf '%s\n' "${password_files[@]}" | dmenu "$@") - -[[ -n $password ]] || exit - -if [[ $typeit -eq 0 ]]; then - pass show -c "$password" 2>/dev/null -else - pass show "$password" | { IFS= read -r pass; printf %s "$pass"; } | - xdotool type --clearmodifiers --file - -fi - |
