14 lines
		
	
	
		
			488 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			488 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| set -e
 | |
| 
 | |
| cd "$PASSWORD_STORE_DIR"
 | |
| pws="$(find -path "*/.*" -prune -o -path "*/cred/*" -name "*.gpg" -printf '%P\n' | sed 's/\.gpg$//')"
 | |
| pw="$(echo "$pws" | ~/.local/bin/menu/vertical.sh -p "pass")"
 | |
| 
 | |
| case "$2" in
 | |
| 	info) ~/.local/bin/menu/run-float-sh.sh sh -c "pass $pw | vim -";;
 | |
| 	otp) pass otp -c "$pw" && notify-send "$pw" -a pass "OTP copied to clipboard, clears in 45s";;
 | |
| 	*) pass -c "$pw" && notify-send "$pw" -a pass "Password copied to clipboard, clears in 45s";;
 | |
| esac
 | |
| 
 |