Adds phone support to password manager
This commit is contained in:
parent
85ba44a508
commit
f08de9faf5
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue