add possiblity to re-open showEntry after autotyping

This commit is contained in:
Rasmus Steinke 2015-08-23 23:28:45 +02:00
parent b2b533b038
commit 4dfe3c305c
2 changed files with 14 additions and 0 deletions

View File

@ -24,6 +24,10 @@ BROWSER='chromium'
help_color='#0C73C2'
auto_enter='false'
# seconds to wait before re-opening showEntry-menu
# after autotyping an entry. Set to "off" to disable
count=2
# Clipboard settings
# Possible options: primary, clipboard, both
clip=primary

View File

@ -21,6 +21,10 @@ if [[ -z $BROWSER ]]; then
export BROWSER=xdg-open
fi
if [[ -z ${count} ]]; then
count=2
fi
# check if alternative root directory was given on commandline
if [[ $1 == "--last-used" || $1 == "--show-last" ]]; then
root=$(awk -F ': ' '{ print $1 }' $HOME/.config/rofi-pass/last_used)
@ -261,6 +265,12 @@ showEntry () {
xdotool key ctrl+alt
fi
fi
if [[ ${count} == "off" ]]; then
exit
else
sleep ${count}
fi
showEntry
elif [[ ${rofi_exit} -eq 1 ]]; then
exit
fi