summaryrefslogtreecommitdiff
path: root/.local/bin/mc-pass
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-11-18 20:21:50 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-11-18 20:21:50 +0100
commitfd2c508cde1393cbaf4d25abdf9eaebbe5f73895 (patch)
treedbb46663dc495da2ffdd5d7da66c2b6c38de5eb4 /.local/bin/mc-pass
parentf8f144c9810fd6f16f843de4297cc20498a11291 (diff)
bin/sbin: Use the new ‘notify’ API
Diffstat (limited to '.local/bin/mc-pass')
-rwxr-xr-x.local/bin/mc-pass8
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