diff --git a/settings.yml b/settings.yml index 91811a3..7fc49a6 100644 --- a/settings.yml +++ b/settings.yml @@ -1 +1,2 @@ -photo_path: "/mnt/c/Users/beaus/Downloads" \ No newline at end of file +photo_path: "/mnt/c/Users/beaus/Downloads" +duration: 30 \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 8f005c3..af63332 100644 --- a/src/main.rs +++ b/src/main.rs @@ -47,7 +47,7 @@ async fn main() -> anyhow::Result<()> { display_frame(&provider)?; - if time.elapsed().as_secs() > 5 { + if time.elapsed() > settings.duration { provider.load_next_image()?; time = Instant::now(); }