Added lockscreen using swaylock & swayidle.
This commit is contained in:
		
							parent
							
								
									23ff6d5896
								
							
						
					
					
						commit
						17abddd21f
					
				
							
								
								
									
										10
									
								
								sway/config
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								sway/config
									
									
									
									
									
								
							| 
						 | 
					@ -46,11 +46,11 @@ output eDP-1 scale 1.4
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# Example configuration:
 | 
					# Example configuration:
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# exec swayidle -w \
 | 
					exec swayidle -w \
 | 
				
			||||||
#          timeout 300 'swaylock -f -c 000000' \
 | 
					         timeout 60 'swaylock -f -c 000000' \
 | 
				
			||||||
#          timeout 600 'swaymsg "output * dpms off"' \
 | 
					         timeout 600 'swaymsg "output * dpms off"' \
 | 
				
			||||||
#               resume 'swaymsg "output * dpms on"' \
 | 
					              resume 'swaymsg "output * dpms on"' \
 | 
				
			||||||
#          before-sleep 'swaylock -f -c 000000'
 | 
					         before-sleep 'swaylock -f -c 000000'
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# This will lock your screen after 300 seconds of inactivity, then turn off
 | 
					# 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
 | 
					# your displays after another 300 seconds, and turn your screens back on when
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user