wmstartup: Add xrdbupdate startup task
This commit is contained in:
		
							
								
								
									
										22
									
								
								.config/dtfscripts/services/0_xrdbupdate.dtf
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										22
									
								
								.config/dtfscripts/services/0_xrdbupdate.dtf
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,22 @@
 | 
				
			|||||||
 | 
					#! /usr/bin/env bash
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# Simple wmstartup service
 | 
				
			||||||
 | 
					# Copyright (C) 2018 salt <salt@lap-th-e560-0>
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# Distributed under terms of the MIT license.
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					service_name="Xresources"
 | 
				
			||||||
 | 
					service_process="xrdbupdate"
 | 
				
			||||||
 | 
					service_kill_on_reload="false"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function start() {
 | 
				
			||||||
 | 
						svc_log "Updating"
 | 
				
			||||||
 | 
						$service_process $service_flags > /dev/null 2>&1 &
 | 
				
			||||||
 | 
						return 0
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function stop() {
 | 
				
			||||||
 | 
						return 1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Reference in New Issue
	
	Block a user