aboutsummaryrefslogtreecommitdiff
path: root/Sources/phbar/main.swift
diff options
context:
space:
mode:
authorTommaso Negri <me@tommasongr.com>2026-07-26 16:31:35 +0200
committerTommaso Negri <me@tommasongr.com>2026-07-26 16:31:35 +0200
commit6d165c74a5a6b471c155b12ab15ef833d6b2aa36 (patch)
tree0f6e007aafa0b20ae495bb632fe982ad59991cc2 /Sources/phbar/main.swift
parent0287a7c8960a8023f0a6ada4c305712a95116526 (diff)
downloadbar-6d165c74a5a6b471c155b12ab15ef833d6b2aa36.tar.gz
bar-6d165c74a5a6b471c155b12ab15ef833d6b2aa36.zip
add main file
Diffstat (limited to 'Sources/phbar/main.swift')
-rw-r--r--Sources/phbar/main.swift8
1 files changed, 8 insertions, 0 deletions
diff --git a/Sources/phbar/main.swift b/Sources/phbar/main.swift
new file mode 100644
index 0000000..97fe72a
--- /dev/null
+++ b/Sources/phbar/main.swift
@@ -0,0 +1,8 @@
+import AppKit
+
+// Entry point. Top-level code runs on the main actor.
+let app = NSApplication.shared
+let delegate = AppDelegate()
+app.delegate = delegate
+app.setActivationPolicy(.accessory) // no Dock icon, no menu
+app.run()