Added hyprpaper support
This commit is contained in:
1 parent
b5c4bb351d
commit
65b84198f4
4 files changed
+126
-1
No files matched your search
@@ -0,0 +1,18 @@
|
||||
use crate::Wallpapers;
|
||||
|
||||
use std::process::Command;
|
||||
|
||||
pub fn change_wallpapers(wallpapers: &Wallpapers) {
|
||||
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.ratio).to_string());
|
||||
}
|
||||
|
||||
let result = command.output();
|
||||
match result {
|
||||
Ok(_) => {}
|
||||
Err(e) => println!("{}", e),
|
||||
}
|
||||
}
|
||||
@@ -2,3 +2,4 @@ pub mod dbus_plasma_interface;
|
||||
pub mod feh;
|
||||
pub mod gnome;
|
||||
pub mod plasma;
|
||||
pub mod hyprpaper;
|
||||
Reference in new issue
Block a user