Skip to content

Commit

Permalink
feat(helix): Reload config to have changes applied
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Claven committed Jun 28, 2023
1 parent eba12e8 commit 6e4cb4f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Sources/AppearanceNotifier/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,18 @@ func respond(theme: Theme) {
}
}

DispatchQueue.global().async {
print("\(Date()) helix: reloading config")

let arguments = ["-USR1", "hx"]

do {
try shellOut(to: "pkill", arguments: arguments)
} catch {
print("\(Date()) helix: config reloadg failed")
}
}

DispatchQueue.global().async {
// Emacs ----------------------------------------------------------------
DispatchQueue.global().async {
Expand Down

0 comments on commit 6e4cb4f

Please sign in to comment.