Start xscreensaver if it is not running already
This commit is contained in:
		
					parent
					
						
							
								d975b720c8
							
						
					
				
			
			
				commit
				
					
						7d392377bf
					
				
			
		
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -9,6 +9,9 @@
 | 
			
		|||
# i3lock -i ~/.background.png --dpms --nofork
 | 
			
		||||
 | 
			
		||||
# try to start - if it already runs it will just exit
 | 
			
		||||
xscreensaver &
 | 
			
		||||
if ! pgrep xscreensaver; then
 | 
			
		||||
    xscreensaver -no-splash &
 | 
			
		||||
    sleep 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
xscreensaver-command -lock
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue