Disconnect all known outputs
This commit is contained in:
		
					parent
					
						
							
								28db94c9fd
							
						
					
				
			
			
				commit
				
					
						85003c7c36
					
				
			
		
					 1 changed files with 3 additions and 1 deletions
				
			
		
							
								
								
									
										4
									
								
								x-off
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								x-off
									
										
									
									
									
								
							| 
						 | 
					@ -1,4 +1,6 @@
 | 
				
			||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
for d in DP1 DP2 HDMI1 HDMI2 VIRTUAL1; do
 | 
					
 | 
				
			||||||
 | 
					# Turn off all outputs besides the primary - connected also matches disconnected ;-)
 | 
				
			||||||
 | 
					for d in $(xrandr | grep -v primary | awk '/connected/ { print $1 }'); do
 | 
				
			||||||
    xrandr --output $d --off
 | 
					    xrandr --output $d --off
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue