Run Voxtype configure from dictation indicator

This commit is contained in:
Ryan Hughes
2026-05-29 14:36:26 -04:00
parent a4bb7a46f1
commit 5bab2dd230
3 changed files with 7 additions and 7 deletions
+3 -2
View File
@@ -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
+2 -3
View File
@@ -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")
}
}
@@ -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")