diff --git a/bin/omarchy-voxtype-config b/bin/omarchy-voxtype-config index 68b0e7b3..8b73ec51 100755 --- a/bin/omarchy-voxtype-config +++ b/bin/omarchy-voxtype-config @@ -1,7 +1,8 @@ #!/bin/bash -# omarchy:summary=Open the Voxtype configuration file +# omarchy:summary=Open Voxtype configuration set -e -exec omarchy-launch-editor ~/.config/voxtype/config.toml +omarchy-launch-floating-terminal-with-presentation "voxtype configure" +omarchy-restart-shell diff --git a/shell/plugins/bar/indicators/Dictation.qml b/shell/plugins/bar/indicators/Dictation.qml index 893beaae..77d12058 100644 --- a/shell/plugins/bar/indicators/Dictation.qml +++ b/shell/plugins/bar/indicators/Dictation.qml @@ -31,9 +31,8 @@ BarIndicator { } } - onPressed: function(button) { + onPressed: function() { if (!root.bar) return - if (button === Qt.RightButton) root.bar.run("omarchy-voxtype-config") - else root.bar.run("omarchy-voxtype-model") + root.bar.run("omarchy-voxtype-config") } } diff --git a/test/shell.d/fixtures/indicator-contract/shell.qml b/test/shell.d/fixtures/indicator-contract/shell.qml index 4b4a32ee..842e7bb4 100644 --- a/test/shell.d/fixtures/indicator-contract/shell.qml +++ b/test/shell.d/fixtures/indicator-contract/shell.qml @@ -142,8 +142,8 @@ ShellRoot { root.injectBar(dictation) dictation.triggerPress(Qt.LeftButton) dictation.triggerPress(Qt.RightButton) - root.assertTrue(root.commandCount("omarchy-voxtype-model") === 1, "Dictation left click runs model command") - root.assertTrue(root.commandCount("omarchy-voxtype-config") === 1, "Dictation right click runs config command") + root.assertTrue(root.commandCount("omarchy-voxtype-config") === 2, "Dictation clicks run config command") + root.assertTrue(root.commandCount("omarchy-voxtype-model") === 0, "Dictation clicks do not run model command") } var stayAwake = root.createIndicator("StayAwake")