Added feh handler
This commit is contained in:
parent
d9593769c0
commit
e070e55cd2
@ -6,12 +6,12 @@ Simple tool that selects random wallpapers and applies them as your background
|
|||||||
|
|
||||||
Whats needed to get feature parity
|
Whats needed to get feature parity
|
||||||
- d-bus communications with Plasma [✓]
|
- d-bus communications with Plasma [✓]
|
||||||
- Support for simple background engines like feh []
|
- Support for simple background engines like feh [✓]
|
||||||
- Support for [ultrawide, horizontal, vertical] displays [✓]
|
- Support for [ultrawide, horizontal, vertical] displays [✓]
|
||||||
|
|
||||||
What still needs to be done
|
What still needs to be done
|
||||||
- Code cleanup []
|
- Code cleanup []
|
||||||
- Handler for feh []
|
- Handler for feh [✓]
|
||||||
|
|
||||||
|
|
||||||
What I want to add
|
What I want to add
|
||||||
|
|||||||
@ -1,5 +1,15 @@
|
|||||||
use crate::Wallpapers;
|
use crate::Wallpapers;
|
||||||
|
|
||||||
|
use std::process::Command;
|
||||||
|
|
||||||
pub fn change_wallpapers(wallpapers: &Wallpapers) {
|
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());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user