From 85c0668fb2a26d303d21d43a5f7bcf0971b2c354 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Mon, 24 Aug 2015 01:17:45 +0200 Subject: [PATCH] add notifications for showEntry menu --- rofi-pass | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rofi-pass b/rofi-pass index a064d17..e7eabca 100755 --- a/rofi-pass +++ b/rofi-pass @@ -253,6 +253,10 @@ showEntry () { else echo -n "${stuff[${word}]}" | doClip fi + notify-send "rofi-pass" "Copied Password\nClearing in 45 seconds" + $(sleep 45; echo -n "" | xclip; echo "" | xclip -selection clipboard | notify-send "rofi-pass" "Clipboard cleared") & + exit + fi elif [[ ${rofi_exit} -eq 10 ]]; then if [[ ${bla} == "0 Return" ]]; then