14 lines
		
	
	
		
			319 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			319 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| if [ ! -z $1 ]; then
 | |
| #   FLOATING_DESKTOP_ID=$(bspc query -D -d '^3')
 | |
|   FLOATING_DESKTOP_ID=$1
 | |
| 
 | |
|   bspc subscribe node_add | while read -a msg ; do
 | |
|     desk_id=${msg[2]}
 | |
|     wid=${msg[4]}
 | |
|     [ "$FLOATING_DESKTOP_ID" = "$desk_id" ] && bspc node "$wid" -t floating
 | |
|   done
 | |
| else
 | |
|   echo "No desktop provided"
 | |
| fi |