1
0
mirror of https://github.com/balkian/dotfiles.git synced 2024-11-14 00:32:28 +00:00
dotfiles/scripts/.bin/passmenu
J. Fernando Sánchez f395ed8f03 Add rofi themes and bluetooth menu
+ Fixed dunst
2020-12-28 16:21:25 +01:00

20 lines
404 B
Bash
Executable File

#!/bin/bash
shopt -s nullglob globstar
if command -v myrofi >/dev/null 2>&1;
then
program="myrofi -no-show-icons -dmenu"
else
program="dmenu"
fi
password_files=( ~/.password-store/**/*.gpg )
password_files=( "${password_files[@]##*/.password-store/}" )
password_files=( "${password_files[@]%.gpg}" )
password=$(printf '%s\n' "${password_files[@]}" | $program "$@")
pass show -c "$password"