Qt 6.12 shadows the bare Color singleton, so the bar and every Color role read undefined on fresh installs. Keep our I18n text in the four conflicting files, qualify #14433's notification button color, give the new dictation menu rows and notifications Chinese, and drop table entries for the removed Voxtype and FIDO2 texts.
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 "$(omarchy-text "Voxtype Dictation Ready")" "$(omarchy-text "Hold Right Alt or F9 to dictate (or toggle with Super + Ctrl + X).")" -t 10000
|