From 2514370379af5db30838aba6f71add27ea22875e Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Sun, 12 Jul 2015 06:57:10 +0200 Subject: [PATCH] clearing password after 45 seconds + notification --- rofi-pass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rofi-pass b/rofi-pass index 2127dba..5cca5ca 100755 --- a/rofi-pass +++ b/rofi-pass @@ -121,6 +121,9 @@ ${open_url}: Open URL | ${copy_name}: Copy Username | ${copy_pass}: Copy Passwor exit elif [[ $rofi_exit -eq 15 ]]; then echo -n "$password" | xclip + xclip -o | xclip -selection clipboard + 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 if [[ $(echo "${password_temp}" | tail -1) == "NOTAB" ]]; then