mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 05:41:16 +01:00
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.
65 lines
1.1 KiB
JSON
65 lines
1.1 KiB
JSON
{
|
|
"$schema": "https://komorebi-for-mac.lgug2z.com/komorebi.bar.0.1.0.schema.json",
|
|
"monitor": 0,
|
|
"font_family": "JetBrainsMono Nerd Font",
|
|
"height": 40,
|
|
"theme": {
|
|
"palette": "Base16",
|
|
"name": "Ashes",
|
|
"accent": "Base0D"
|
|
},
|
|
"left_widgets": [
|
|
{
|
|
"Komorebi": {
|
|
"workspaces": {
|
|
"enable": true,
|
|
"hide_empty_workspaces": false
|
|
},
|
|
"layout": {
|
|
"enable": true
|
|
},
|
|
"focused_container": {
|
|
"enable": true,
|
|
"show_icon": true
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"right_widgets": [
|
|
{
|
|
"Update": {
|
|
"enable": true
|
|
}
|
|
},
|
|
{
|
|
"Storage": {
|
|
"enable": true
|
|
}
|
|
},
|
|
{
|
|
"Memory": {
|
|
"enable": true
|
|
}
|
|
},
|
|
{
|
|
"Network": {
|
|
"enable": true,
|
|
"show_activity": true,
|
|
"show_total_activity": true
|
|
}
|
|
},
|
|
{
|
|
"Date": {
|
|
"enable": true,
|
|
"format": "DayDateMonthYear"
|
|
}
|
|
},
|
|
{
|
|
"Time": {
|
|
"enable": true,
|
|
"format": "TwentyFourHour"
|
|
}
|
|
}
|
|
]
|
|
}
|