12 lines
		
	
	
		
			293 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			293 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
# Extract parent window uuid
 | 
						|
WINDOW_ID=$(xdotool getactivewindow)
 | 
						|
WM_NAME=$(xprop -id $WINDOW_ID WM_NAME | cut -d '"' -f 2)
 | 
						|
 | 
						|
# Generate new uuid for new terminal
 | 
						|
uuid=$(uuidgen)
 | 
						|
 | 
						|
alacritty --title $uuid -e sh -c "TERMINAL_UUID=$uuid PARENT_TERMINAL=$WM_NAME exec $SHELL"
 | 
						|
 |