Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Press Enter after pass #190

Open
moviuro opened this issue Jun 3, 2020 · 0 comments
Open

Press Enter after pass #190

moviuro opened this issue Jun 3, 2020 · 0 comments

Comments

@moviuro
Copy link
Contributor

moviuro commented Jun 3, 2020

Continuing #113.

@benoliver999 wishes to have the "type pass" item to push the enter key too.

For the time being, one could try using the "notify" switch in config: rofi-pass will notify when it finished typing.

rofi-pass/rofi-pass

Lines 166 to 191 in 97df0b9

typePass () {
checkIfPass
x_repeat_enabled=$(xset q | awk '/auto repeat:/ {print $3}')
xset r off
printf '%s' "${password}" | xdotool type --delay ${xdotool_delay} --clearmodifiers --file -
if [[ $notify == "true" ]]; then
if [[ "${stuff[notify]}" == "false" ]]; then
:
else
notify-send "rofi-pass" "finished typing password";
fi
elif [[ $notify == "false" ]]; then
if [[ "${stuff[notify]}" == "true" ]]; then
notify-send "rofi-pass" "finished typing password";
else
:
fi
fi
xset r "$x_repeat_enabled"
unset x_repeat_enabled
clearUp
}

@carnager would it make sense to add a press_enter_after_pass (or similar) option? This risks conflicting with the already existing autotype: field. Example: autotype: user :tab pass :tab otp :enter + press_enter_after_pass=1 (which is global)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant