Added feh handler

This commit is contained in:
benjamyn committed 2024-03-10 22:55:18 +11:00
1 parent d9593769c0
commit e070e55cd2
2 files changed
+13 -3

No files matched your search

+11 -1
View File
@@ -1,5 +1,15 @@
use crate::Wallpapers;
use std::process::Command;
pub fn change_wallpapers(wallpapers: &Wallpapers) {
println!("Not implemented");
let mut command = Command::new("/usr/bin/feh");
command.arg("--no-fehbg").arg("--bg-fill");
for monitor in wallpapers.config.monitors.monitors.iter() {
command.arg(wallpapers.random_selection(monitor).to_string());
}
let _result = command.output();
println!("{:?}", command.get_args());
}