#!/usr/local/bin/andy

set -e NOTIFY_LONG  'mc pass'
set -e NOTIFY_SHORT `basename $args[0]

for sig in int exit term {
	func sig$sig {
		wl-copy <_
		notify 'Password Cleared' 'The password was cleared from the clipboard.'
	}
}

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