Just use single clicks

This commit is contained in:
David Heinemeier Hansson
2026-05-17 08:51:17 +02:00
parent 80da45dd1c
commit d771787e6b
3 changed files with 12 additions and 5 deletions
@@ -262,7 +262,7 @@ Item {
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
acceptedButtons: Qt.LeftButton | Qt.RightButton acceptedButtons: Qt.LeftButton | Qt.RightButton
onDoubleClicked: function(mouse) { onClicked: function(mouse) {
if (mouse.button === Qt.RightButton) root.openThemeSwitcher() if (mouse.button === Qt.RightButton) root.openThemeSwitcher()
else root.openSelector() else root.openSelector()
mouse.accepted = true mouse.accepted = true
@@ -1079,10 +1079,17 @@ Item {
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
acceptedButtons: Qt.LeftButton | Qt.RightButton acceptedButtons: Qt.LeftButton | Qt.RightButton
onClicked: function(mouse) {
if (mouse.button === Qt.RightButton) {
root.openBarSettings()
mouse.accepted = true
}
}
onDoubleClicked: function(mouse) { onDoubleClicked: function(mouse) {
if (mouse.button === Qt.RightButton) root.openBarSettings() if (mouse.button !== Qt.RightButton) {
else root.toggleTransparency() root.toggleTransparency()
mouse.accepted = true mouse.accepted = true
}
} }
} }
@@ -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. You can also double-right-click empty space to the left or right of the centered clock to open it; double-left-click the same empty space to toggle bar transparency. 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 right-click empty space to the left or right of the centered clock to open it; double-left-click the same empty space to toggle bar transparency.
Example `shell.json` (bar subtree only shown): Example `shell.json` (bar subtree only shown):