scripts: add pass export script
This commit is contained in:
		
							parent
							
								
									66eb08c21f
								
							
						
					
					
						commit
						d4bd1366b4
					
				
					 2 changed files with 11 additions and 0 deletions
				
			
		| 
						 | 
					@ -42,6 +42,7 @@ create_scripts
 | 
				
			||||||
      [ ]; # This will not work unless programs.wshowkeys is enabled systemwide
 | 
					      [ ]; # This will not work unless programs.wshowkeys is enabled systemwide
 | 
				
			||||||
    terminal = [ alacritty ];
 | 
					    terminal = [ alacritty ];
 | 
				
			||||||
    playerctl-status = [ playerctl ];
 | 
					    playerctl-status = [ playerctl ];
 | 
				
			||||||
 | 
					    pass-export = [ pass2csv gnupg ];
 | 
				
			||||||
    wpass = [ final.wdmenu fd pass sd wl-clipboard wtype ];
 | 
					    wpass = [ final.wdmenu fd pass sd wl-clipboard wtype ];
 | 
				
			||||||
    screenshotsh =
 | 
					    screenshotsh =
 | 
				
			||||||
      [ capitaine-cursors grim slurp jq sway wl-clipboard xdg-user-dirs ];
 | 
					      [ capitaine-cursors grim slurp jq sway wl-clipboard xdg-user-dirs ];
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										10
									
								
								scripts/pass-export
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										10
									
								
								scripts/pass-export
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
					@ -0,0 +1,10 @@
 | 
				
			||||||
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if test -z "$PASSWORD_STORE_DIR"; then
 | 
				
			||||||
 | 
					  PASSWORD_STORE_DIR="$HOME/.password-store"
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					pass2csv "$PASSWORD_STORE_DIR" "$HOME/passwords.csv" \
 | 
				
			||||||
 | 
					  -f User '(user|login)(:\s*)?' \
 | 
				
			||||||
 | 
					  -f TOTP 'otpauth(:)?' \
 | 
				
			||||||
 | 
					  -f URL 'url(:\s*)?'
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue