mirror of
				https://gitea.blesmrt.net/mikaela/shell-things.git
				synced 2025-10-31 01:17:20 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			494 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			494 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Copied from `man swayidle`, except the $ScreenLockCmd that I don't
 | |
| # want to repeat.
 | |
| #	This will lock your screen after 300 seconds of inactivity, then turn off
 | |
| #	your displays after another 300 seconds, and turn your screens back on
 | |
| #	when resumed. It will also lock your screen before your computer goes to
 | |
| #	sleep.
 | |
| exec swayidle -w \
 | |
| 	timeout 300 "\"$ScreenLockCmd\"" \
 | |
| 	timeout 600 'swaymsg "output * dpms off"' \
 | |
| 	resume 'swaymsg "output * dpms on"' \
 | |
| 	before-sleep "\"$ScreenLockCmd\""
 |