fix --last-used

This commit is contained in:
Rasmus Steinke 2015-11-23 17:12:41 +01:00
parent 4095867400
commit 1e73921582

View File

@ -37,6 +37,8 @@ autopass () {
if [[ ${selected_password} == "[ Add Entry ]>" ]]; then insertPass; if [[ ${selected_password} == "[ Add Entry ]>" ]]; then insertPass;
elif [[ ${selected_password} == "---" ]]; then mainMenu; elif [[ ${selected_password} == "---" ]]; then mainMenu;
else else
rm -f "$HOME/.config/rofi-pass/last_used"
echo "${root}: $selected_password" > "$HOME/.config/rofi-pass/last_used"
if [[ -z "${stuff["$AUTOTYPE_field"]}" ]]; then if [[ -z "${stuff["$AUTOTYPE_field"]}" ]]; then
echo -n "${stuff["${USERNAME_field}"]}" | xdotool type --clearmodifiers --file - echo -n "${stuff["${USERNAME_field}"]}" | xdotool type --clearmodifiers --file -
xdotool key Tab xdotool key Tab