10 lines
		
	
	
	
		
			204 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			204 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
echo $(pgrep emacs)
 | 
						|
 | 
						|
emacsrg=$(wlrctl window list | rg -v 'emacs:\sorg-agenda' | rg 'emacs:')
 | 
						|
 | 
						|
emacswin=$(echo $emacsrg | sed 's/.*\: //')
 | 
						|
echo $emacswin
 | 
						|
 | 
						|
wlrctl toplevel focus title:$emacswin
 |