| 
									
										
										
										
											2020-02-23 17:32:56 +01:00
										 |  |  | [Unit] | 
					
						
							|  |  |  | Description=Idle manager for Wayland | 
					
						
							|  |  |  | Documentation=man:swayidle(1) | 
					
						
							| 
									
										
										
										
											2020-02-25 21:54:42 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | [Install] | 
					
						
							|  |  |  | WantedBy=graphical-session.target | 
					
						
							| 
									
										
										
										
											2020-02-23 17:32:56 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | [Service] | 
					
						
							|  |  |  | Type=simple | 
					
						
							|  |  |  | ExecStart=/usr/bin/swayidle -w \ | 
					
						
							|  |  |  | 	timeout 285 'notify-send -a lockscreen -c lock-warn -u critical -t 14900 -i system-lock-screen "Locking Screen" "Will Lock Screen in 15s"' \ | 
					
						
							|  |  |  | 	timeout 300 '~/.dotfiles/sway/lock.sh' \ | 
					
						
							|  |  |  | 	timeout 600 'swaymsg "output * dpms off"' \ | 
					
						
							|  |  |  | 	resume 'swaymsg "output * dpms on"' \ | 
					
						
							|  |  |  | 	before-sleep '~/.dotfiles/sway/lock.sh' | 
					
						
							| 
									
										
										
										
											2020-02-25 21:54:42 +01:00
										 |  |  | RestartSec=5 | 
					
						
							|  |  |  | Restart=always |