summaryrefslogtreecommitdiff
path: root/.local/bin/mc-pass
blob: 168e62e24f22a8ef1a8df8de1c6b5f17bf2a6edc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

export NOTIFY_LONG='mc pass'
export NOTIFY_SHORT="${0##*/}"

trap '
	wl-copy </dev/null
	notify "Password Cleared" "The password was cleared from the clipboard."
' INT EXIT TERM

vlt raw Email thomasvoss@live.com | wl-copy
notify 'Password Copied' \
	'The password will be cleared from the clipboard in 10 seconds.'
sleep 10