9 lines
		
	
	
	
		
			174 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			174 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/sh
 | 
						|
TXT=$(xclip -o)
 | 
						|
CWD=$(readlink /proc/$(pgrep -P $(xdotool getactivewindow getwindowpid))/cwd)
 | 
						|
if [ -f "$CWD/$TXT" ]; then
 | 
						|
	plumb "$CWD/$TXT"
 | 
						|
else
 | 
						|
	plumb "$TXT"
 | 
						|
fi
 | 
						|
 |