|
|
|
@ -2,6 +2,9 @@ |
|
|
|
|
|
|
|
|
|
PASSWORDS="$HOME/.password-store" |
|
|
|
|
|
|
|
|
|
extraArgs="" |
|
|
|
|
|
|
|
|
|
hostname | grep -q 'phone' && extraArgs="-normal-window" |
|
|
|
|
|
|
|
|
|
function type_password(){ |
|
|
|
|
local password="$1" |
|
|
|
@ -56,7 +59,7 @@ if [ -d "$PASSWORDS" ]; then |
|
|
|
|
selection="$1" |
|
|
|
|
ret="${2:-0}" |
|
|
|
|
if [ -z "$selection" ]; then |
|
|
|
|
selection=$((find . -type f -name '*.gpg' | sed 's/.gpg$//' | sed 's/^.\///') | rofi -dmenu -kb-custom-1 "Ctrl-o" -kb-custom-2 "Ctrl-i" -i -l 20) |
|
|
|
|
selection=$(find . -type f -name '*.gpg' | sed 's/.gpg$//' | sed 's/^.\///' | rofi -dmenu -kb-custom-1 "Ctrl-o" -kb-custom-2 "Ctrl-i" -i -l 20 $extraArgs) |
|
|
|
|
ret="$?" |
|
|
|
|
fi |
|
|
|
|
if [ -n "$selection" ]; then |
|
|
|
|