Skip to content

Commit

Permalink
Merge pull request #97 from zootedb0t/main
Browse files Browse the repository at this point in the history
feat: add mako live reload close #96
  • Loading branch information
InioX authored Aug 4, 2024
2 parents 1d09b15 + 5e20275 commit 813616d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/reload/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ pub fn reload(args: &Cli, config: &ConfigFile) -> Result<(), Report> {
reload_gtk_theme(args)?;
}

if reload_apps_list.mako == Some(true) || reload_apps_list.waybar.is_none() {
reload_app("mako", "SIGUSR2")?;
}

Ok(())
}

Expand Down
1 change: 1 addition & 0 deletions src/util/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ pub struct Apps {
pub waybar: Option<bool>,
pub gtk_theme: Option<bool>,
pub dunst: Option<bool>,
pub mako: Option<bool>,
}

#[derive(Serialize, Deserialize, Debug)]
Expand Down

0 comments on commit 813616d

Please sign in to comment.