aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kasak <dkasak@termina.org.uk>2017-07-14 18:04:58 +0200
committerDenis Kasak <dkasak@termina.org.uk>2017-07-14 18:13:09 +0200
commiteebcb28ac5cfe19f708201c4c42ac87c491055a4 (patch)
tree5afead51723e3e97ac2fa8409676cebc96b336bc
parent0669933453af2a9a53737e0a15ec1aa0dc714fb2 (diff)
downloadrofi-pass-eebcb28ac5cfe19f708201c4c42ac87c491055a4.tar.gz
Silence remaining notification when notify is false (ref #76)
-rwxr-xr-xrofi-pass9
1 files changed, 8 insertions, 1 deletions
diff --git a/rofi-pass b/rofi-pass
index 233d766..3e736b2 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -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 () {