add auto_enter option
This commit is contained in:
parent
e606f2ee4b
commit
cb207dc4db
@ -14,7 +14,8 @@ BROWSER='chromium'
|
|||||||
|
|
||||||
## Misc settings
|
## Misc settings
|
||||||
|
|
||||||
help_color="#0C73C2"
|
help_color='#0C73C2'
|
||||||
|
auto_enter="'true'
|
||||||
|
|
||||||
# Custom Keybindings
|
# Custom Keybindings
|
||||||
autotype="Alt+1"
|
autotype="Alt+1"
|
||||||
|
13
rofi-pass
13
rofi-pass
@ -127,11 +127,17 @@ ${open_url}: Open URL | ${copy_name}: Copy Username | ${copy_pass}: Copy Passwor
|
|||||||
if [[ -z "${stuff['CustomOrder']}" ]]; then
|
if [[ -z "${stuff['CustomOrder']}" ]]; then
|
||||||
xdotool_type "${stuff[${USERNAME_field}]}"
|
xdotool_type "${stuff[${USERNAME_field}]}"
|
||||||
xdotool_type "$password"
|
xdotool_type "$password"
|
||||||
|
if [[ ${auto_enter} == "true" ]]; then
|
||||||
|
xdotool key Return
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
for word in ${stuff['CustomOrder']}; do
|
for word in ${stuff['CustomOrder']}; do
|
||||||
xdotool_type "${stuff[${word}]}"
|
xdotool_type "${stuff[${word}]}"
|
||||||
done
|
done
|
||||||
xdotool_type "$password"
|
xdotool_type "$password"
|
||||||
|
if [[ ${auto_enter} == "true" ]]; then
|
||||||
|
xdotool key Return
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
@ -139,12 +145,19 @@ ${open_url}: Open URL | ${copy_name}: Copy Username | ${copy_pass}: Copy Passwor
|
|||||||
xdotool_type "${stuff[${USERNAME_field}]}"
|
xdotool_type "${stuff[${USERNAME_field}]}"
|
||||||
xdotool key Tab
|
xdotool key Tab
|
||||||
xdotool_type "$password"
|
xdotool_type "$password"
|
||||||
|
sleep 1
|
||||||
|
if [[ ${auto_enter} == "true" ]]; then
|
||||||
|
xdotool key Return
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
for word in ${stuff['CustomOrder']}; do
|
for word in ${stuff['CustomOrder']}; do
|
||||||
xdotool_type "${stuff[${word}]}"
|
xdotool_type "${stuff[${word}]}"
|
||||||
xdotool key Tab
|
xdotool key Tab
|
||||||
done
|
done
|
||||||
xdotool_type "$password"
|
xdotool_type "$password"
|
||||||
|
if [[ ${auto_enter} == "true" ]]; then
|
||||||
|
xdotool key Return
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user