Skip to content

Commit

Permalink
stop swwww from flooding term with useless msges
Browse files Browse the repository at this point in the history
  • Loading branch information
nnyyxxxx committed Oct 18, 2024
1 parent eb1003b commit 75f475c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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(())
}
Expand Down

0 comments on commit 75f475c

Please sign in to comment.