* Add selectable dictation backends * Move dictation migration after repository priority update * Extract backend-specific dictation installers * Keep dictation installer dispatcher executable * Call dictation backend installers directly * Drop legacy Superwhisper migration and runtime cleanup * Separate dictation defaults from generic recording protocol * Add backend-specific dictation removers * Preserve existing Voxtype selection during upgrade * Make dictation backend selection safe and retryable * Show the dictation indicator only for selected Voxtype * Allow switching away from stopped Superwhisper * Remove the built-in bar dictation indicator * Store default dictation selection under defaults * Rename dictation backend selector to use * Move dictation removers into their own menu category
34 lines
1.0 KiB
Bash
Executable File
34 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Install and configure Voxtype dictation
|
|
# omarchy:requires-sudo=true
|
|
|
|
set -e
|
|
|
|
if omarchy-cmd-missing voxtype; then
|
|
if gum confirm "Install Voxtype + AI model (~150MB) to enable dictation?"; then
|
|
omarchy-pkg-add wtype voxtype-bin
|
|
else
|
|
exit 0
|
|
fi
|
|
fi
|
|
|
|
config_home="${XDG_CONFIG_HOME:-$HOME/.config}"
|
|
mkdir -p "$config_home/voxtype"
|
|
if [[ ! -e $config_home/voxtype/config.toml ]]; then
|
|
cp "$OMARCHY_PATH/default/voxtype/config.toml" "$config_home/voxtype/"
|
|
if omarchy-hw-vulkan; then
|
|
voxtype setup gpu --enable || true
|
|
fi
|
|
fi
|
|
|
|
# Setup reuses the configured model and downloads it only when missing.
|
|
# Retry these steps even when an earlier attempt already installed the binary.
|
|
voxtype setup --download --no-post-install
|
|
voxtype setup systemd
|
|
systemctl --user enable --now voxtype.service
|
|
|
|
omarchy-dictation-use voxtype
|
|
hyprctl reload >/dev/null
|
|
omarchy-notification-send -g "Voxtype Dictation Ready" "Hold Right Alt or F9 to dictate (or toggle with Super + Ctrl + X)." -t 10000
|