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

trap '
	wl-copy </dev/null
	notify "${0##*/}" "mc pass" "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' \
	'The password will be cleared from the clipboard in 10 seconds.'
sleep 10