add show windows script
This commit is contained in:
		
							parent
							
								
									8792a02e33
								
							
						
					
					
						commit
						a385073cd3
					
				| 
						 | 
				
			
			@ -0,0 +1,14 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
bspc query -D -d .occupied | while read _desktop_id ; do
 | 
			
		||||
	bspc query -D -d $_desktop_id --names
 | 
			
		||||
 | 
			
		||||
	bspc query -N -d "$_desktop_id" -n .window | while read _node_id ; do
 | 
			
		||||
		_node_id="$(bspc query -N -n $_node_id)"
 | 
			
		||||
		_title="$(xtitle $_node_id)"
 | 
			
		||||
		_wm_class="$(xprop -id $_node_id | grep WM_CLASS | cut -d\" -f2)"
 | 
			
		||||
		echo "  $_wm_class: $_title"
 | 
			
		||||
	done
 | 
			
		||||
 | 
			
		||||
	echo
 | 
			
		||||
done
 | 
			
		||||
		Loading…
	
		Reference in New Issue