diff options
author | Rasmus Steinke <rasi@xssn.at> | 2015-11-23 17:12:41 +0100 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2015-11-23 17:12:41 +0100 |
commit | 1e739215824511ea688edd1303a2c1428c993b5b (patch) | |
tree | d90becab884e290ed1294a4720c85dba309e5d4c | |
parent | 409586740044f808b77b4fd966bd8b6a00b9da10 (diff) | |
download | rofi-pass-1e739215824511ea688edd1303a2c1428c993b5b.tar.gz |
fix --last-used
-rwxr-xr-x | rofi-pass | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -37,6 +37,8 @@ autopass () { if [[ ${selected_password} == "[ Add Entry ]>" ]]; then insertPass; elif [[ ${selected_password} == "---" ]]; then mainMenu; 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 echo -n "${stuff["${USERNAME_field}"]}" | xdotool type --clearmodifiers --file - xdotool key Tab |