mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 22:01:22 +01:00
feat(bar): render at notch level on macbooks
This commit uses raw-window-handle to access the NSWindow of the bar and set the window level to `kCGBackstopMenuLevel` (-20), positioning the bar behind the menu bar, and at the same level as the notch on Macbook screens. This approach means the bar occupies space already excluded from the work area by the menu bar, so the automatic work area offset calculation is no longer needed and has been commented out. (I think... Need to validate this on regular non-Macbook external displays...) The explicit user-configured `work_area_offset` option is preserved for users who want more flexibility.
This commit is contained in:
1 parent
6b52e4b3a4
commit
ca94a57dd5
6 files changed
+93
-67
No files matched your search
@@ -2,7 +2,7 @@
|
||||
"$schema": "https://komorebi-for-mac.lgug2z.com/komorebi.bar.0.1.0.schema.json",
|
||||
"monitor": 0,
|
||||
"font_family": "JetBrainsMono Nerd Font",
|
||||
"height": 30,
|
||||
"height": 40,
|
||||
"theme": {
|
||||
"palette": "Base16",
|
||||
"name": "Ashes",
|
||||
|
||||
Reference in new issue
Block a user