Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bin/omarchy-hw-npu
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions bin/omarchy-voxtype-install
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions migrations/1774975485.sh
Original file line number Diff line number Diff line change
@@ -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