Added hyprpaper support

This commit is contained in:
benjamyn committed 2025-07-02 01:01:19 -04:00
1 parent b5c4bb351d
commit 65b84198f4
4 files changed
+126 -1

No files matched your search

+18
View File
@@ -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),
}
}
+1
View File
@@ -2,3 +2,4 @@ pub mod dbus_plasma_interface;
pub mod feh;
pub mod gnome;
pub mod plasma;
pub mod hyprpaper;