mirror of
				https://github.com/9001/copyparty.git
				synced 2025-10-31 04:32:20 -06:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			289 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			289 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/bash
 | |
| set -e
 | |
| 
 | |
| # take a screenshot with flameshot and send it to copyparty;
 | |
| # the image url will be placed on your clipboard
 | |
| 
 | |
| password=wark
 | |
| url=https://a.ocv.me/up/
 | |
| filename=$(date +%Y-%m%d-%H%M%S).png
 | |
| 
 | |
| flameshot gui -s -r |
 | |
| curl -T- $url$filename?pw=$password |
 | |
| tail -n 1 |
 | |
| xsel -ib
 |