7 lines
		
	
	
		
			147 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			147 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/bash
 | 
						|
if cat /proc/acpi/button/lid/*/state | grep -q open; then
 | 
						|
    swaymsg output eDP-1 enable
 | 
						|
else
 | 
						|
    swaymsg output eDP-1 disable
 | 
						|
fi
 |