add possiblity to re-open showEntry after autotyping
This commit is contained in:
parent
b2b533b038
commit
4dfe3c305c
@ -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
|
||||
|
10
rofi-pass
10
rofi-pass
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user