use single awk
This commit is contained in:
parent
9dfcfe2e55
commit
1186d2256a
@ -81,7 +81,7 @@ ${open_url}: Open URL | ${copy_name}: Copy Username | ${copy_pass}: Copy Passwor
|
||||
xdotool_type "${stuff[${USERNAME_field}]}"
|
||||
exit
|
||||
elif [[ $rofi_exit -eq 12 ]]; then
|
||||
pass show "$selected_password" | head -1 | tr -d '\n' | xdotool type --clearmodifiers --file -
|
||||
pass show "$selected_password" | awk 'BEGIN{ORS=""} {print; exit}' |xdotool type --clearmodifiers --file -
|
||||
exit
|
||||
elif [[ $rofi_exit -eq 14 ]]; then
|
||||
echo -n "${stuff[${USERNAME_field}]}" | xclip
|
||||
@ -108,7 +108,7 @@ ${open_url}: Open URL | ${copy_name}: Copy Username | ${copy_pass}: Copy Passwor
|
||||
if [[ -z "${stuff["$AUTOTYPE_field"]}" ]]; then
|
||||
xdotool_type "${stuff[${USERNAME_field}]}"
|
||||
xdotool key Tab
|
||||
pass show "$selected_password" | head -1 | tr -d '\n' | xdotool type --clearmodifiers --file -
|
||||
pass show "$selected_password" | awk 'BEGIN{ORS=""} {print; exit}' | xdotool type --clearmodifiers --file -
|
||||
#xdotool_type "$password"
|
||||
sleep 1
|
||||
if [[ ${auto_enter} == "true" ]]; then
|
||||
@ -119,7 +119,7 @@ ${open_url}: Open URL | ${copy_name}: Copy Username | ${copy_pass}: Copy Passwor
|
||||
if [[ $word == ":tab" ]]; then
|
||||
xdotool key Tab
|
||||
elif [[ $word == "pass" ]]; then
|
||||
pass show "$selected_password" | head -1 | tr -d '\n' | xdotool type --clearmodifiers --file -
|
||||
pass show "$selected_password" | awk 'BEGIN{ORS=""} {print; exit}' | xdotool type --clearmodifiers --file -
|
||||
else
|
||||
xdotool_type "${stuff[${word}]}"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user