diff options
Diffstat (limited to '.local/bin/mc-pass')
-rwxr-xr-x | .local/bin/mc-pass | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/.local/bin/mc-pass b/.local/bin/mc-pass index 7dc868d..168e62e 100755 --- a/.local/bin/mc-pass +++ b/.local/bin/mc-pass @@ -1,12 +1,14 @@ #!/bin/sh +export NOTIFY_LONG='mc pass' +export NOTIFY_SHORT="${0##*/}" + trap ' wl-copy </dev/null - notify "${0##*/}" "mc pass" "Password Cleared" \ - "The password was cleared from the clipboard." + notify "Password Cleared" "The password was cleared from the clipboard." ' INT EXIT TERM vlt raw Email thomasvoss@live.com | wl-copy -notify "${0##*/}" 'mc pass' 'Password Copied' \ +notify 'Password Copied' \ 'The password will be cleared from the clipboard in 10 seconds.' sleep 10 |