Double-click the empty space to open the bar settings
This commit is contained in:
@@ -408,6 +408,14 @@ Item {
|
|||||||
launcher.startDetached()
|
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) {
|
function runProcess(process) {
|
||||||
if (!process.running)
|
if (!process.running)
|
||||||
process.running = true
|
process.running = true
|
||||||
@@ -1056,6 +1064,15 @@ Item {
|
|||||||
Item {
|
Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
acceptedButtons: Qt.LeftButton
|
||||||
|
onDoubleClicked: function(mouse) {
|
||||||
|
root.openBarSettings()
|
||||||
|
mouse.accepted = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ModuleList {
|
ModuleList {
|
||||||
visible: !centerRoot.hasAnchor
|
visible: !centerRoot.hasAnchor
|
||||||
entries: centerRoot.entries
|
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.
|
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):
|
Example `shell.json` (bar subtree only shown):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user