diff --git a/bin/.bin/dmenu/password-manager b/bin/.bin/dmenu/password-manager index 25ef9e2d..fff8f03c 100755 --- a/bin/.bin/dmenu/password-manager +++ b/bin/.bin/dmenu/password-manager @@ -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