Double-click the empty space to open the bar settings

This commit is contained in:
David Heinemeier Hansson
2026-05-16 22:38:08 +02:00
parent 0e108c82ae
commit 6858e85659
2 changed files with 18 additions and 1 deletions
@@ -408,6 +408,14 @@ Item {
launcher.startDetached()
}
function openBarSettings() {
if (root.shell && typeof root.shell.summon === "function") {
root.shell.summon("omarchy.settings", "{}")
} else {
root.run("omarchy-launch-bar-settings")
}
}
function runProcess(process) {
if (!process.running)
process.running = true
@@ -1056,6 +1064,15 @@ Item {
Item {
anchors.fill: parent
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton
onDoubleClicked: function(mouse) {
root.openBarSettings()
mouse.accepted = true
}
}
ModuleList {
visible: !centerRoot.hasAnchor
entries: centerRoot.entries
@@ -16,7 +16,7 @@ the shell for its whole session.
The bar config lives under the `bar:` key of [`~/.config/omarchy/shell.json`](../../README.md#shelljson-shape). Out of the box the shell uses [`shell-defaults.json`](../../shell-defaults.json). Once you customize anything via `omarchy launch bar settings` or by editing shell.json directly, your file is canonical — there is no deep-merge.
Launch the visual editor with `omarchy launch bar settings` (or run `omarchy-launch-bar-settings`) to reorder widgets, add/remove them, and tweak per-widget options without editing JSON by hand.
Launch the visual editor with `omarchy launch bar settings` (or run `omarchy-launch-bar-settings`) to reorder widgets, add/remove them, and tweak per-widget options without editing JSON by hand. You can also double-click empty space to the left or right of the centered clock to open it.
Example `shell.json` (bar subtree only shown):