Update configs
This commit is contained in:
		
							parent
							
								
									72da0ef04a
								
							
						
					
					
						commit
						12349398f3
					
				
					 7 changed files with 18 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -63,12 +63,18 @@ _autostart_manage_sync () {
 | 
			
		|||
	done
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
_get_autostart_cmd () {
 | 
			
		||||
	_query_autostart_toml 'select((.key == "'"$1"'") or (.value.alias == "'"$1"'")) | .value.command'
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
_get_autostart_delay () {
 | 
			
		||||
	_query_autostart_toml 'select((.key == "'"$1"'") or (.value.alias == "'"$1"'")) | .value.delay // 0'
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
_autostart_manage_exec () {
 | 
			
		||||
	cmd=$(_get_autostart_cmd "$1")
 | 
			
		||||
	sleep "$(_get_autostart_delay "$1")"
 | 
			
		||||
	bash -c "$cmd"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue