mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Run Voxtype configure from dictation indicator
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user