[][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 directory
  • dir_count - number of files within the directory
  • program - Option containing a string for the user defined program. None if user doesn't pass program
  • times - vector of time objects representing the times for each wallpaper in order