diff --git a/bin/omarchy-hw-npu b/bin/omarchy-hw-npu new file mode 100755 index 0000000000..692cf6d072 --- /dev/null +++ b/bin/omarchy-hw-npu @@ -0,0 +1,5 @@ +#!/bin/bash + +# Detect whether an Intel NPU (Neural Processing Unit) is available. + +ls /dev/accel/accel* 1>/dev/null 2>&1 diff --git a/bin/omarchy-voxtype-install b/bin/omarchy-voxtype-install index 6d2e1c42f3..4ebd2f801d 100755 --- a/bin/omarchy-voxtype-install +++ b/bin/omarchy-voxtype-install @@ -14,6 +14,9 @@ if gum confirm "Install Voxtype + AI model (~150MB) to enable dictation?"; then if omarchy-hw-vulkan; then voxtype setup gpu --enable || true fi + if omarchy-hw-npu; then + voxtype setup npu --enable || true + fi voxtype setup systemd omarchy-restart-waybar diff --git a/migrations/1774975485.sh b/migrations/1774975485.sh new file mode 100644 index 0000000000..ae1f413e55 --- /dev/null +++ b/migrations/1774975485.sh @@ -0,0 +1,13 @@ +echo "Enable NPU in voxtype if Intel NPU is available" + +if omarchy-cmd-present voxtype; then + if omarchy-hw-npu; then + echo "NPU is available, enabling NPU in voxtype" + voxtype setup npu --enable || true + fi + + voxtype setup systemd + + systemctl --user restart voxtype + omarchy-restart-waybar +fi