From 75f475ceaa7aee6c2bd240fa85f69caf58d272a2 Mon Sep 17 00:00:00 2001 From: nyx Date: Fri, 18 Oct 2024 01:21:54 -0400 Subject: [PATCH] stop swwww from flooding term with useless msges --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8a2389b..675e4b2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -86,7 +86,7 @@ async fn set_swaybg_wallpaper(path: &str) -> Result<(), String> { } async fn set_swww_wallpaper(path: &str) -> Result<(), String> { - let command = format!("swww img \"{}\"", path); + let command = format!("swww img \"{}\" 2>/dev/null", path); spawn_background_process(&command).await } @@ -167,7 +167,7 @@ async fn ensure_swaybg_running() -> Result<(), String> { async fn ensure_swww_running() -> Result<(), String> { if !is_process_running("swww-daemon").await { println!("swww is not running. Attempting to start it..."); - start_process("swww-daemon").await?; + start_process("swww-daemon 2>/dev/null").await?; } Ok(()) }