Adds phone support to password manager

Jonathan Hodgson 4 years ago
parent fd29426b20
commit b64763b89c
  1. 5
      bin/.bin/dmenu/password-manager

@ -2,6 +2,9 @@
PASSWORDS="$HOME/.password-store" PASSWORDS="$HOME/.password-store"
extraArgs=""
hostname | grep -q 'phone' && extraArgs="-normal-window"
function type_password(){ function type_password(){
local password="$1" local password="$1"
@ -56,7 +59,7 @@ if [ -d "$PASSWORDS" ]; then
selection="$1" selection="$1"
ret="${2:-0}" ret="${2:-0}"
if [ -z "$selection" ]; then 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="$?" ret="$?"
fi fi
if [ -n "$selection" ]; then if [ -n "$selection" ]; then

Loading…
Cancel
Save