carnager/rofi-pass

Press Enter after pass

Opened this issue · 0 comments

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)