summaryrefslogtreecommitdiff
path: root/.local/bin/mc-pass
blob: 83b701b53c1194ea327df2183bf2b239f1b8178c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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