diff options
author | Denis Kasak <dkasak@termina.org.uk> | 2017-07-14 18:04:58 +0200 |
---|---|---|
committer | Denis Kasak <dkasak@termina.org.uk> | 2017-07-14 18:13:09 +0200 |
commit | eebcb28ac5cfe19f708201c4c42ac87c491055a4 (patch) | |
tree | 5afead51723e3e97ac2fa8409676cebc96b336bc | |
parent | 0669933453af2a9a53737e0a15ec1aa0dc714fb2 (diff) | |
download | rofi-pass-eebcb28ac5cfe19f708201c4c42ac87c491055a4.tar.gz |
Silence remaining notification when notify is false (ref #76)
-rwxr-xr-x | rofi-pass | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -190,7 +190,14 @@ copyPass () { then notify-send "rofi-pass" "Copied Password\nClearing in 45 seconds" fi - $(sleep 45; echo -n "" | xclip; echo "" | xclip -selection clipboard | notify-send "rofi-pass" "Clipboard cleared") & + + if [[ $notify == "true" ]] + then + (sleep 45; echo -n "" | xclip; echo "" | xclip -selection clipboard | notify-send "rofi-pass" "Clipboard cleared") & + elif [[ $notify == "false" ]] + then + (sleep 45; echo -n "" | xclip; echo "" | xclip -selection clipboard) & + fi } viewEntry () { |