From a8b2792a89ac82cef951b29ecfdf02d030bf672f Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Mon, 9 Nov 2015 01:18:47 +0100 Subject: [PATCH] add global option for notification --- rofi-pass | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/rofi-pass b/rofi-pass index 36e2a9b..d0677f3 100755 --- a/rofi-pass +++ b/rofi-pass @@ -125,8 +125,18 @@ ${line3}" elif [[ $rofi_exit -eq 12 ]]; then checkIfPass echo -n "${password}" | xdotool type --clearmodifiers --file - - if [[ "${stuff[notify]}" == "true" ]]; then - notify-send "rofi-pass" "finished typing password" + 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 exit