add global option for notification

This commit is contained in:
Rasmus Steinke 2015-11-09 01:18:47 +01:00
parent 3ae7c83ca0
commit a8b2792a89

View File

@ -125,8 +125,18 @@ ${line3}</span>"
elif [[ $rofi_exit -eq 12 ]]; then elif [[ $rofi_exit -eq 12 ]]; then
checkIfPass checkIfPass
echo -n "${password}" | xdotool type --clearmodifiers --file - echo -n "${password}" | xdotool type --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 if [[ "${stuff[notify]}" == "true" ]]; then
notify-send "rofi-pass" "finished typing password" notify-send "rofi-pass" "finished typing password"
else
:
fi
fi fi
exit exit