Skip to content

Commit

Permalink
Remove killall dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaizombie1 committed Jan 22, 2025
1 parent 37af122 commit abcd6c6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/wallpaper_changers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -950,13 +950,15 @@ impl WallpaperChanger for WallpaperChangers {
}
fn kill(&self) {
match self {
Self::Hyprpaper => Command::new("killall")
Self::Hyprpaper => Command::new("pkill")
.arg("-9")
.arg("hyprpaper")
.spawn()
.unwrap()
.wait()
.unwrap(),
Self::Swaybg(_, _) => Command::new("killall")
Self::Swaybg(_, _) => Command::new("pkill")
.arg("-9")
.arg("swaybg")
.spawn()
.unwrap()
Expand All @@ -968,7 +970,8 @@ impl WallpaperChanger for WallpaperChangers {
.unwrap()
.wait()
.unwrap(),
Self::Swww(_, _, _, _, _, _, _, _, _, _, _, _) => Command::new("killall")
Self::Swww(_, _, _, _, _, _, _, _, _, _, _, _) => Command::new("pkill")
.arg("-9")
.arg("swww-daemon")
.spawn()
.unwrap()
Expand Down

0 comments on commit abcd6c6

Please sign in to comment.