[−][src]Function dyn_wall_rs::wallpaper_current_time
pub fn wallpaper_current_time(
dir: &str,
program: Arc<Option<String>>,
times: &[Time]
) -> Result<(), Box<dyn Error>>
function that simply changes wallpaper based on the current time in relation to the vector of times passed as an argument
Arguments
dir
- path to target directorydir_count
- number of files within the directoryprogram
- Option containing a string for the user defined program. None if user doesn't pass programtimes
- vector of time objects representing the times for each wallpaper in order